composer require ldc/web-status-checker-laravel remove Old static status checker Fix ImportMedia WIP commands OK many fixes Fix and try to optimize folder component Fix front icons + actions based on icons Favico front fix alert Fix Media upload on depot fix folder component buttons Full front fix with perf due tu vuejs Download medias Navigate within medias superfix Move media + loader isLocked boolean and remove media fix Folder scroll fix arcadia link color red Fix panier show external Tons of fixes back as front REwrited all
29 lines
592 B
PHP
29 lines
592 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Langue extends Model
|
|
{
|
|
/**
|
|
* The primary key associated with the table.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $primaryKey = 'langue_id';
|
|
|
|
// * METHODS
|
|
|
|
/**
|
|
* Get default language instance
|
|
*
|
|
* @return self
|
|
* @throws \RuntimeException If fetching default language fails.
|
|
*/
|
|
public static function getDefaultLang(): self
|
|
{
|
|
return self::whereLangueId(1)->first() ??
|
|
throw new \RuntimeException('Failed to fetch default language');
|
|
}
|
|
}
|