Skip to content

Routes

Class for the routes are included inside the routes folder as web.php.

use

use App\Route;

to include the route class.

Route::post('/login', Controller::class, 'login');
Route::post('/function', function () {
echo "The anonymous callback function has been executed.";
});