Answers for "appserviceprovider laravel auth user"

PHP
0

appserviceprovider laravel auth user

# boot method
public function boot()
{
  	# Share to all view
    view()->composer('*', function($view)
    {
      	# Check Auth Here
        if (Auth::check()) {   
        	//
        }
    });
}
Posted by: Guest on June-01-2021

Browse Popular Code Answers by Language