git add .

git commit "Implement user registration"
This commit is contained in:
2026-08-16 08:52:04 +03:30
parent cd74c1848a
commit 687681744a
22 changed files with 1036 additions and 210 deletions
+21 -7
View File
@@ -8,14 +8,15 @@ namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Database\Eloquent\Model;
/**
* Class User
*
* @property int $id
* @property string $Firstname
* @property string $Lastname
* @property string $first_name
* @property string $last_name
* @property string $national_code
* @property int $gender
* @property int $marital_status
@@ -25,24 +26,28 @@ use Illuminate\Database\Eloquent\Model;
* @property string|null $profile_image
* @property string $username
* @property string $password
* @property string|null $province
* @property string|null $city
* @property int $province_id
* @property int $city_id
* @property int $status
* @property Carbon $created_at
* @property Carbon $updated_at
*
* @property City $city
* @property Collection|Comment[] $comments
* @property Collection|Favorite[] $favorites
*
* @package App\Models
*/
class User extends Model
class User extends Authenticatable
{
protected $table = 'users';
public static $snakeAttributes = false;
protected $casts = [
'gender' => 'int',
'marital_status' => 'int',
'province_id' => 'int',
'city_id' => 'int',
'status' => 'int'
];
@@ -62,11 +67,20 @@ class User extends Model
'profile_image',
'username',
'password',
'province',
'city',
'province_id',
'city_id',
'status'
];
public function city()
{
return $this->belongsTo(City::class);
}
public function province()
{
return $this->belongsTo(Province::class);
}
public function comments()
{
return $this->hasMany(Comment::class);