*/ protected $fillable = [ 'locale_name', 'iso_code', 'name', 'localized_name', ]; /** |-------------------------------------------------------------------------- | Class Constants |-------------------------------------------------------------------------- | */ // /** |-------------------------------------------------------------------------- | Custom/Private Methods |-------------------------------------------------------------------------- | */ /** * Get the prunable model query. * * @package App\Models\Language * @since 1.0.0 * * @return \Illuminate\Database\Eloquent\Builder */ public function prunable(): Builder { //return static::where('deleted_at', '<=', now()->subMonth()); } /** * Prepare the model for pruning. * * @package App\Models\Language * @since 1.0.0 * * @return void */ protected function pruning(): void { // } /** |-------------------------------------------------------------------------- | Accessors |-------------------------------------------------------------------------- | */ // /** |-------------------------------------------------------------------------- | Mutators |-------------------------------------------------------------------------- | */ // /** |-------------------------------------------------------------------------- | Scopes |-------------------------------------------------------------------------- | */ // /** |-------------------------------------------------------------------------- | Relationships |-------------------------------------------------------------------------- | */ /** * User relationship. * * @package App\Models\Language * @since 1.0.0 * * @return \Illuminate\Database\Eloquent\Relations\HasMany */ public function users(): HasMany { return $this->hasMany(User::class); } }