Route::view('/', 'welcome')->name('welcome');
Route::get("/page", function(){
return View::make("dir.page");
});
Route::get('/user/{id}/profile', function ($id) {
//
})->name('profile');
$url = route('profile', ['id' => 1, 'photos' => 'yes']);
// /user/1/profile?photos=yes
use IlluminateCacheRateLimitingLimit;
use IlluminateSupportFacadesRateLimiter;
/**
* Configure the rate limiters for the application.
*
* @return void
*/
protected function configureRateLimiting()
{
RateLimiter::for('global', function (Request $request) {
return Limit::perMinute(1000);
});
}