Stevemo\Cpanel\Permission\Form\PermissionFormInterface::create PHP Method

create() public method

Create a new set of permissions
Author: Steve Montambeault
public create ( array $data ) : StdClass
$data array
return StdClass
    public function create(array $data);

Usage Example

Example #1
0
 /**
  * Save new permissions into the database
  *
  * @author Steve Montambeault
  * @link   http://stevemo.ca
  *
  *
  * @return \Illuminate\Http\RedirectResponse
  */
 public function store()
 {
     $inputs = Input::all();
     if ($this->form->create($inputs)) {
         return Redirect::route('cpanel.permissions.index')->with('success', Lang::get('cpanel::permissions.create_success'));
     }
     return Redirect::back()->withInput()->withErrors($this->form->getErrors());
 }
PermissionFormInterface