Skip to content

Commit

Permalink
Fixed route:cache
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna committed Jul 21, 2024
1 parent edfd5f9 commit 98bf4bd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,13 @@
Route::view('/', 'pages.welcome')->name('home');
Route::view('/feature', 'pages.feature')->name('feature');
Route::view('/advertising', 'pages.advertising')->name('advertising');
Route::view('/why-laravel', 'pages.why-laravel', ['users' => \App\Models\User::inRandomOrder()->limit(4 * 12)->get()->chunk(12)])
->name('why-laravel');

Route::get('why-laravel/', function () {
return view("pages.why-laravel", [
'users' => \App\Models\User::inRandomOrder()->limit(4 * 12)->get()->chunk(12),
]);
})->name('why-laravel');

Route::view('/ecosystem', 'pages.ecosystem')->name('ecosystem');
Route::view('/contributors', 'pages.contributors')->name('contributors');
Route::view('/rules', 'pages.rules')->name('rules');
Expand Down

0 comments on commit 98bf4bd

Please sign in to comment.