Skip to content

Instantly share code, notes, and snippets.

@cursosdesarrolloweb
Created September 12, 2020 06:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cursosdesarrolloweb/58d7006bc4b82eb9f1942ba5711a1d2a to your computer and use it in GitHub Desktop.
Save cursosdesarrolloweb/58d7006bc4b82eb9f1942ba5711a1d2a to your computer and use it in GitHub Desktop.
<?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