first work on To Do Lists
This commit is contained in:
18
app/Models/ToDo.php
Normal file
18
app/Models/ToDo.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class ToDo extends Model
|
||||
{
|
||||
protected $guarded = [];
|
||||
|
||||
protected $dates = ['checked_at'];
|
||||
|
||||
public function toDoList() :BelongsTo
|
||||
{
|
||||
return $this->belongsTo(ToDoList::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user