2019-08-09 10:51:42 +02:00
|
|
|
<?php
|
|
|
|
|
|
2019-09-12 11:08:25 +02:00
|
|
|
namespace App\Models;
|
2019-08-09 10:51:42 +02:00
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
|
|
class Societe extends Model
|
|
|
|
|
{
|
2022-06-20 14:57:58 +02:00
|
|
|
// * RELATIONSHIPS
|
|
|
|
|
|
2022-04-19 16:07:27 +02:00
|
|
|
/**
|
2022-06-20 14:57:58 +02:00
|
|
|
* BelongsToMany media relation
|
|
|
|
|
*
|
|
|
|
|
* The media that belong to the societes.
|
|
|
|
|
*
|
|
|
|
|
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
|
2022-04-19 16:07:27 +02:00
|
|
|
*/
|
2022-06-20 14:57:58 +02:00
|
|
|
public function mediaList()
|
2022-04-19 16:07:27 +02:00
|
|
|
{
|
2022-06-20 14:57:58 +02:00
|
|
|
return $this->belongsToMany(Media::class);
|
2022-04-19 16:07:27 +02:00
|
|
|
}
|
2019-08-09 10:51:42 +02:00
|
|
|
}
|