mirror of
https://github.com/supanadit/todo.git
synced 2024-11-10 09:52:19 +00:00
14 lines
178 B
PHP
14 lines
178 B
PHP
|
<?php
|
||
|
|
||
|
namespace App;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
||
|
class TodoItem extends Model
|
||
|
{
|
||
|
public function todo()
|
||
|
{
|
||
|
return $this->hasOne('App\Todo');
|
||
|
}
|
||
|
}
|