todo/app/Todo.php
2020-06-24 00:45:04 +07:00

14 lines
184 B
PHP

<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Todo extends Model
{
public function todoItems()
{
return $this->hasMany('App\TodoItem');
}
}