Route::group(['middleware' => 'access'], function () {
Route::resource('some', 'SomeController');
});
namespace App\Http\Middleware;
use Closure;
class AccessMidleware
{
public function handle($request, Closure $next)
{
dd(\Route::currentRouteName()); //К сожалению тут null
//return $next($request);
}
}
protected $routeMiddleware = [
...
'access'=>'App\Http\Middleware\AccessMidleware'
];