forceCreate() публичный статический Метод

Save a new model and return the instance. Allow mass-assignment.
public static forceCreate ( array $attributes ) : static
$attributes array
Результат static
Пример #1
0
 /**
  * @param array $data
  * @param bool  $force
  * @return mixed
  * @throws RepositoryException
  */
 public function create(array $data, $force = true)
 {
     $model = $force ? $this->model->forceCreate($data) : $this->model->create($data);
     $this->cleanRepository();
     return $model;
 }