src/Stevemo/Cpanel/Controllers/PermissionsController.php
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());
    }
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());
    }
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 ( ) ) ; }
Save new permissions into the database

@author Steve Montambeault
@link   http://stevemo.ca


@return \Illuminate\Http\RedirectResponse
Save new permissions into the database