Dear all; I am newbie in Laravel 5. I want to use an ACL system in L5. I prepared my all models and migrations. I created my middleware. I want to define my all potantial urls as a resource and build my ACL mechanism based on it. To do this, I should reach requested controller and action name in middleware programatically. How can I do this? Thanks.
on your middleware handle method the first param is the current request object. You can use it?
public function handle($request, Closure $next)
{
if($request->input('color') == 'red') {
return $next($request);
}
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community