27 lines
480 B
PHP
27 lines
480 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Models;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||
|
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
||
|
|
|
||
|
|
class Material extends Model
|
||
|
|
{
|
||
|
|
use HasFactory, SoftDeletes;
|
||
|
|
|
||
|
|
protected $fillable = [
|
||
|
|
'title',
|
||
|
|
'description',
|
||
|
|
'folder_path',
|
||
|
|
'status',
|
||
|
|
];
|
||
|
|
|
||
|
|
protected $dates = ['deleted_at'];
|
||
|
|
|
||
|
|
public function tasks()
|
||
|
|
{
|
||
|
|
return $this->hasMany(Task::class);
|
||
|
|
}
|
||
|
|
}
|