first work on To Do Lists

This commit is contained in:
2020-04-19 22:46:28 +02:00
parent c71f3ca4d8
commit c6b94aa1f1
17 changed files with 710 additions and 2 deletions

18
app/Models/ToDo.php Normal file
View 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);
}
}