What's the best way to hide a specific user from a table in Laravel 4?
I want to know what is the best way to hide a specific user from a table?
In my case, I want to hide a user who is no longer active.
Request in the controller
$users = User::where('id', '!=', '#id of disabled user')->get();
View
@foreach ($users as $user)
// print the table
@endforeach
Do I close at all?
+3
source to share