2019-06-17 09:22:10 +02:00
|
|
|
<?php
|
|
|
|
|
|
2019-09-12 11:08:25 +02:00
|
|
|
namespace App\Models;
|
2019-06-17 09:22:10 +02:00
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
|
|
class Etiquette extends Model
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* The primary key associated with the table.
|
|
|
|
|
*
|
|
|
|
|
* @var string
|
|
|
|
|
*/
|
|
|
|
|
protected $primaryKey = 'etiquette_id';
|
2019-07-11 11:45:47 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the medias for the etiquette.
|
|
|
|
|
*/
|
|
|
|
|
public function medias()
|
|
|
|
|
{
|
2019-09-12 11:08:25 +02:00
|
|
|
return $this->hasMany('App\Models\Media');
|
2019-07-11 11:45:47 +02:00
|
|
|
}
|
2019-06-17 09:22:10 +02:00
|
|
|
}
|