Answers for "laravel command handle get method route"

0

execute artisan command from route

Route::get('clear_cache', function () {

    Artisan::call('cache:clear');

    dd("Cache is cleared");

});
Posted by: Guest on May-11-2021
1

laravel available router methods

Route::get($uri, $callback);
Route::post($uri, $callback);
Route::put($uri, $callback);
Route::patch($uri, $callback);
Route::delete($uri, $callback);
Route::options($uri, $callback);
Posted by: Guest on March-04-2021

Code answers related to "laravel command handle get method route"

Browse Popular Code Answers by Language