Make $setup available to all blades
This commit is contained in:
@@ -6,6 +6,8 @@ use Closure;
|
||||
use Illuminate\Contracts\View\Factory;
|
||||
use Illuminate\Contracts\Auth\Authenticatable;
|
||||
|
||||
use App\Models\Setup;
|
||||
|
||||
class AddUserToView
|
||||
{
|
||||
/**
|
||||
@@ -44,6 +46,7 @@ class AddUserToView
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
$this->factory->share('user',$this->user);
|
||||
$this->factory->share('setup',Setup::find(config('app.id')));
|
||||
|
||||
return $next($request);
|
||||
}
|
||||
|
Reference in New Issue
Block a user