diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index eb6688af..08853bc8 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -34,6 +34,10 @@ public function rows() { $users = User::all(); + if($users->isEmpty()) { + return view('rows', ['users' => 'No content']); + } + return view('rows', compact('users')); }