Skip to content

Commit

Permalink
Update HomeController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali-Sid authored Oct 23, 2024
1 parent 7276dcc commit b019860
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Http/Controllers/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ public function rows()
{
$users = User::all();

if($users->isEmpty()) {
return view('rows', ['users' => 'No content']);
}

return view('rows', compact('users'));
}

Expand Down

0 comments on commit b019860

Please sign in to comment.