%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/shaban/duassis/api/app/Models/
Upload File :
Create Path :
Current File : //var/www/html/shaban/duassis/api/app/Models/Profile.php

<?php

namespace App\Models;

/**
 * @property integer id
 * @property string phone
 * @property mixed birthday
 */
class Profile extends BaseModel
{

    protected $fillable = [
        'phone',
        'birthday',
    ];

    protected $guarded = [
        'user_id',
    ];

    protected $casts = [
        'id'        => 'integer',
        'phone'     => 'string',
        'birthday'  => 'date',
    ];

    protected $dates = [
        'birthday',
    ];

    public function user()
    {
        return $this->belongsTo(User::class);
    }

    public function country()
    {
        return $this->belongsTo(Country::class);
    }

}

Zerion Mini Shell 1.0