All individual subscriptions are 50% off this week only!

wontoneesaju
1 year ago
249
4
Laravel

Passing variable from middleware to blade

Posted 1 year ago by wontoneesaju

i am passing a variable from middleware to blade. But its not coming. this is my code

public function handle($request, Closure $next) { $profilestatus=AuthUser::getprofiledetails('venue_login','status'); $systemalert="";

    $request->merge(compact('profilestatus'));

    

    
   return $next($request);
}

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