fix: fix relations and casts in admin and user models

This commit is contained in:
2026-08-17 08:14:24 +03:30
parent ed02b45269
commit 1c7623be8f
2 changed files with 29 additions and 24 deletions
+4 -4
View File
@@ -8,11 +8,11 @@ namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Foundation\Auth\User as Authenticate;
/**
* Class User
*
*
* @property int $id
* @property string $first_name
* @property string $last_name
@@ -24,13 +24,13 @@ use Illuminate\Database\Eloquent\Model;
* @property int $status
* @property Carbon $created_at
* @property Carbon $updated_at
*
*
* @property Collection|Comment[] $comments
* @property Collection|Favorite[] $favorites
*
* @package App\Models
*/
class User extends Model
class User extends Authenticate
{
protected $table = 'users';
public static $snakeAttributes = false;