<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Dimsav\Translatable\Translatable;

class General extends Model
{
    use Translatable;
    protected $table="general";

    public $translationModel = 'App\GeneralLocale';
    public $translatedAttributes = ['general_title', 'general_content'];

    public function locales(){
      return $this->hasMany('App\GeneralLocale','general_id');
    }

    protected $fillable = [
      'general_title', 'general_content', 'general_url',
      'general_page', 'general_section', 'general_desc'
    ];
}
