%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/Device.php

<?php

namespace App\Models;

/**
 * @property integer id
 * @property string uuid
 * @property string token
 * @property string language
 * @property string model
 * @property string platform
 * @property string version
 * @property string manufacturer
 */
class Device extends BaseModel
{
    const ANDROID = 'andrdoid';
    const IOS = 'ios';

    protected $fillable = [
        'uuid',
        'token',
        'language',
        'model',
        'platform',
        'version',
        'manufacturer',
    ];

    protected $guarded = [
        'user_id',
    ];

    protected $casts = [
        'id'           => 'integer',
        'uuid'         => 'string',
        'token'        => 'string',
        'language'     => 'string',
        'model'        => 'string',
        'platform'     => 'string',
        'version'      => 'string',
        'manufacturer' => 'string',
    ];

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

Zerion Mini Shell 1.0