Looking to hire Laravel developers? Try LaraJobs
This package is not available.

laravel-custom-router maintained by majie

Author
majie
Last update
2023/02/28 08:09 (dev-main)
Links
Downloads
0

Comments
comments powered by Disqus

LaravelCustomRouter

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',".*");
});