for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Backpack\Base\app\Http\ViewComposers;
use Illuminate\Support\Facades\Auth;
use Illuminate\View\View;
class AuthComposer
{
public function compose(View $view)
$guard = config('backpack.base.guard') ? config('backpack.base.guard') : config('auth.defaults.guard');
$view->with([
'backpackAuth' => Auth::guard($guard),
]);
}