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());
 }