mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
23 lines
495 B
PHP
23 lines
495 B
PHP
<?php
|
|
|
|
namespace JoeDixon\Translation;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Language extends Model
|
|
{
|
|
protected $guarded = [];
|
|
|
|
public function __construct(array $attributes = [])
|
|
{
|
|
parent::__construct($attributes);
|
|
$this->connection = config('translation.database.connection');
|
|
$this->table = config('translation.database.languages_table');
|
|
}
|
|
|
|
public function translations()
|
|
{
|
|
return $this->hasMany(Translation::class);
|
|
}
|
|
}
|