create() public method

Creates a new instance of the model.
public create ( array $fields ) : Model
$fields array
return Illuminate\Database\Eloquent\Model
 /**
  * Overwrite the parent method to add the requires fields.
  *
  * @param  array    $fields
  * @return Template
  */
 public function create(array $fields)
 {
     return parent::create($fields);
 }
 /**
  * Overwrite the parent method to add the requires fields.
  *
  * @param  array    $fields
  * @return Template
  */
 public function create(array $fields)
 {
     $fields['group_id'] = Template::GROUP_ID;
     $fields['is_template'] = true;
     return parent::create($fields);
 }