Van1310
329
30
Laravel

how to pass id into middleware in laravel

Posted 1 month ago by Van1310

here is my middleware

 public function handle($request, Closure $next)
    {
        if(\Auth::check() && \Auth::signup()->verify())
        {            
                return $next($request);             
        }
        return \Redirect::route('login');
    }

here is my route

Route::group(['middleware'=>'signup'],function()
{
    Route::get('otp/{id}',array('as'=>'otp.view','uses'=>'Signup\[email protected]_view'));

}

how to pass register id in my middleware thank you

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.