Skip to content

Instantly share code, notes, and snippets.

@cursosdesarrolloweb
Created Sep 12, 2020
Embed
What would you like to do?
<?php
use App\Http\Controllers\UserController;
Route::get("/users", [UserController::class, "index"]);
<?php
Route::get("/users", "App\\Http\\Controllers\\UserController@index");
<?php
Route::namespace("App\\Http\\Controllers")->group(function () {
Route::get("/users", "UserController@index");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment