use auth web

This commit is contained in:
2025-05-07 15:08:36 +03:30
parent 6995377b6f
commit f0e809996b
9 changed files with 15 additions and 15 deletions

View File

@@ -8,7 +8,7 @@ use Illuminate\Database\Eloquent\Model;
class CallHistory extends Model
{
use HasFactory;
protected $guarded = ['id'];
protected $guarded = [];
public static function recordHistory(Call $call, $event_id): void
{

View File

@@ -8,5 +8,5 @@ use Illuminate\Database\Eloquent\Model;
class Category extends Model
{
use HasFactory;
protected $guarded = ['id'];
protected $guarded = [];
}

View File

@@ -8,5 +8,5 @@ use Illuminate\Database\Eloquent\Model;
class City extends Model
{
use HasFactory;
protected $guarded = ['id'];
protected $guarded = [];
}

View File

@@ -8,5 +8,5 @@ use Illuminate\Database\Eloquent\Model;
class Event extends Model
{
use HasFactory;
protected $guarded = ['id'];
protected $guarded = [];
}

View File

@@ -9,5 +9,5 @@ use Spatie\Permission\Models\Permission as SpatiePermission;
class Permission extends SpatiePermission
{
use HasFactory;
protected $guarded = ['id'];
protected $guarded = [];
}

View File

@@ -8,5 +8,5 @@ use Illuminate\Database\Eloquent\Model;
class Province extends Model
{
use HasFactory;
protected $guarded = ['id'];
protected $guarded = [];
}

View File

@@ -9,5 +9,5 @@ use Spatie\Permission\Models\Role as SpatieRole;
class Role extends SpatieRole
{
use HasFactory;
protected $guarded = ['id'];
protected $guarded = [];
}

View File

@@ -13,7 +13,7 @@ class User extends Authenticatable
{
use HasFactory, Notifiable, HasRoles;
protected $guarded = ['id'];
protected $guarded = [];
protected $hidden = ['password', 'pivot'];
public string $guard_name = 'web';