Lumen Routes

[Solved] Lumen Routes | Shell - Code Explorer | yomemimo.com
Question : lumen routes

Answered by : snippets

$app->group(['middleware' => 'auth'], function () use ($app) { $app->get('/', function () { // Uses Auth Middleware }); $app->get('user/profile', function () { // Uses Auth Middleware });
});

Source : https://lumen.laravel.com/docs/5.4/routing | Last Update : Wed, 28 Oct 20

Question : lumen routes

Answered by : snippets

$app->get($uri, $callback);
$app->post($uri, $callback);
$app->put($uri, $callback);
$app->patch($uri, $callback);
$app->delete($uri, $callback);
$app->options($uri, $callback);

Source : https://lumen.laravel.com/docs/5.4/routing | Last Update : Wed, 28 Oct 20

Answers related to lumen routes

Code Explorer Popular Question For Shell