wip uni file manager

This commit is contained in:
salam committed 2026-10-28 10:06:55 +01:00
1 parent 51e2659a1e
commit 8eaead42e6
9 files changed
+605 -352

No files matched your search

+4 -3
View File
@@ -13,6 +13,7 @@ use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Illuminate\Support\Facades\Auth;
use Spatie\Permission\Traits\HasRoles;
class User extends Authenticatable implements FilamentUser, HasAppAuthentication, HasAppAuthenticationRecovery, HasEmailAuthentication, MustVerifyEmail
@@ -184,7 +185,7 @@ class User extends Authenticatable implements FilamentUser, HasAppAuthentication
public function bettype_user()
{
return $this->hasMany(BettypeUser::class)->where('sport_id', auth()->user()->sport_id);
return $this->hasMany(BettypeUser::class)->where('sport_id', Auth::user()->sport_id);
}
// Accessor
@@ -195,11 +196,11 @@ class User extends Authenticatable implements FilamentUser, HasAppAuthentication
public function userBookmaker()
{
return Bookmaker::where('id', auth()->user()->bookmaker_id)->select('id', 'name', 'icon', 'svg')->first();
return Bookmaker::where('id', Auth::user()->bookmaker_id)->select('id', 'name', 'icon', 'svg')->first();
}
public static function getUser()
{
return User::with('bookmaker')->find(auth()->user()->id);
return User::with('bookmaker')->find(Auth::user()->id);
}
}