Stevemo\Cpanel\Group\Form\GroupFormInterface::create PHP Метод

create() публичный Метод

Create a new Group
Автор: Steve Montambeault
public create ( array $data ) : Bool
$data array
Результат Bool
    public function create(array $data);

Usage Example

Пример #1
0
 /**
  * Store a newly created resource in storage.
  *
  * @author Steve Montambeault
  * @link   http://stevemo.ca
  *
  * @return \Illuminate\Http\RedirectResponse
  */
 public function store()
 {
     if ($this->form->create(Input::all())) {
         return Redirect::route('cpanel.groups.index')->with('success', Lang::get('cpanel::groups.create_success'));
     }
     return Redirect::back()->withInput()->withErrors($this->form->getErrors());
 }