Make $setup available to all blades
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 37s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m46s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s

This commit is contained in:
2024-06-07 15:08:50 +10:00
parent 153e4dc12b
commit b23d9351b5
4 changed files with 7 additions and 6 deletions

View File

@@ -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);
}