%PDF- %PDF-
Mini Shell

Mini Shell

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

<?php

namespace App\Models;

/**
 * @property integer id
 * @property Project project
 * @property User user
 * @property string message
 */
class ProjectNote extends BaseModel
{
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'message',
    ];

    protected $casts = [
        'project_id' => 'integer',
        'user_id'    => 'integer',
        'message'    => 'string',
    ];

    protected $guarded = [
        'project_id',
        'user_id',
    ];

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

    public function project()
    {
        return $this->belongsTo(Project::class);
    }

}

Zerion Mini Shell 1.0