27 lines
462 B
PHP
27 lines
462 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class NatureFichier extends Model
|
|
{
|
|
protected $fillable = [
|
|
'value',
|
|
'label'
|
|
];
|
|
|
|
// * RELATIONSHIPS
|
|
|
|
/**
|
|
* HasMany variantes relation
|
|
*
|
|
* Get the media for the NatureFichier.
|
|
*
|
|
* @return \Illuminate\Database\Eloquent\Relations\HasMany
|
|
*/
|
|
public function mediaList()
|
|
{
|
|
return $this->hasMany(Media::class);
|
|
}
|
|
}
|