%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/diaspora/api/app/Models/
Upload File :
Create Path :
Current File : /var/www/html/diaspora/api/app/Models/Notification.php

<?php

namespace App\Models;

/**
 * @property integer id
 * @property integer user_id
 * @property integer model_id
 * @property string model_type
 * @property string description
 * @property boolean is_read
 * @property mixed created_at
 * @property mixed updated_at
 * @property mixed model
 */
class Notification extends BaseModel
{
    protected $guarded = [
        'user_id',
    ];

    protected $fillable = [
        'user_id',
        'model_id',
        'model_type',
        'description',
        'is_read',
    ];

    protected $casts = [
        'id'          => 'integer',
        'user_id'     => 'integer',
        'model_id'    => 'integer',
        'model_type'  => 'string',
        'description' => 'string',
        'is_read'     => 'boolean',
    ];

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

    public function model()
    {
        return $this->morphTo();
    }

}



Zerion Mini Shell 1.0