public function create(array $attributes = [])
    {
        $model = $this->newModel();
        $model->fill($attributes);

        $this->save($model);

        return $model;
    }
public function create(array $attributes = [])
    {
        $model = $this->newModel();
        $model->fill($attributes);

        $this->save($model);

        return $model;
    }
public function create ( array $ attributes = [ ] ) { $ model = $ this -> newModel ( ) ; $ model -> fill ( $ attributes ) ; $ this -> save ( $ model ) ; return $ model ; }
Create and persist a model given an array of attributes

@param array $attributes
@return mixed
@throws \Exception
Create and persist a model given an array of attributes