/**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     if (Language::get()->count() != 0) {
         return;
     }
     Language::create(['locale' => 'en', 'name' => 'english']);
 }
 /**
  *  Insert a new language entry into the database.
  *  If the attributes are not valid, a null response is given and the errors can be retrieved through validationErrors()
  *
  *  @param  array   $attributes     Model attributes
  *  @return boolean
  */
 public function create(array $attributes)
 {
     return $this->validate($attributes) ? Language::create($attributes) : null;
 }