Skip to content

Commit

Permalink
Completed the Blade Basics test tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
KunYuChang committed Nov 26, 2024
1 parent 4b534fd commit 456a81e
Show file tree
Hide file tree
Showing 9 changed files with 1,342 additions and 1,017 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public function users()
{
$usersCount = User::count();

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

// Task 2. Change the View code so alert would not show on the screen
Expand Down
1 change: 1 addition & 0 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ public function register()
public function boot()
{
//
View::share('metaTitle', 'Blade Test');
}
}
Loading

0 comments on commit 456a81e

Please sign in to comment.