This commit is contained in:
2026-08-15 13:27:20 +03:30
commit 0c449ac460
75 changed files with 14097 additions and 0 deletions
+89
View File
@@ -0,0 +1,89 @@
<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
/**
* Class User
*
* @property int $id
* @property string $first_name
* @property string $last_name
* @property string $national_code
* @property int $gender
* @property int $marital_status
* @property string|null $spouse_name
* @property string $mobile
* @property string $email
* @property int|null $image_id
* @property string $username
* @property string $password
* @property string $password_confirmation
* @property string $user_province
* @property string $user_city
* @property int|null $status
* @property Carbon $created_at
* @property Carbon $updatet_at
* @property string $deleted_at
*
* @property File|null $file
* @property Collection|Comment[] $comments
*
* @package App\Models
*/
class User extends Model
{
use SoftDeletes;
protected $table = 'users';
public $timestamps = false;
public static $snakeAttributes = false;
protected $casts = [
'gender' => 'int',
'marital_status' => 'int',
'image_id' => 'int',
'status' => 'int',
'updatet_at' => 'datetime'
];
protected $hidden = [
'password'
];
protected $fillable = [
'first_name',
'last_name',
'national_code',
'gender',
'marital_status',
'spouse_name',
'mobile',
'email',
'image_id',
'username',
'password',
'password_confirmation',
'user_province',
'user_city',
'status',
'updatet_at'
];
public function file()
{
return $this->belongsTo(File::class, 'image_id');
}
public function comments()
{
return $this->hasMany(Comment::class);
}
}