majie/laravel-custom-router

There is no license information available for the latest version (dev-main) of this package.

dev-main 2023-02-28 07:09 UTC

This package is auto-updated.

Last update: 2024-04-28 09:33:10 UTC


README

eg:routes\web.php

Route::middleware([])->group(function (){
    Route::any('{controller}/{action}',function ($controller,$action){
        return (new Majie\LaravelCustomRouter\Route('App\Http\Controllers'))->dispatchRoute($controller,$action,\request()->all());
    })->where('controller',".*");
});