jonnybarnes.uk/app/MicropubClient.php

32 lines
563 B
PHP
Raw Normal View History

2016-05-19 15:01:28 +01:00
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class MicropubClient extends Model
2016-05-19 15:01:28 +01:00
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'clients';
/**
* The attributes that are mass assignable.
*
* @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');
}
2016-05-19 15:01:28 +01:00
}