create() public method

Create a new Group
Author: Steve Montambeault
public create ( array $data ) : Bool
$data array
return Bool
コード例 #1
0
ファイル: GroupsController.php プロジェクト: stevemo/cpanel
 /**
  * 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());
 }