Massivly simplify notes index controller method
This commit is contained in:
parent
36cf131839
commit
0c62e558ec
5 changed files with 200 additions and 197 deletions
|
@ -19,4 +19,13 @@ class MicropubClient extends Model
|
|||
* @var array
|
||||
*/
|
||||
protected $fillable = ['client_url', 'client_name'];
|
||||
|
||||
/**
|
||||
* Define the relationship with notes.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function notes() {
|
||||
return $this->hasMany('App\Note', 'client_id', 'client_url');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue