src/Stevemo/Cpanel/Controllers/PermissionsController.php
public function destroy($id)
    {
        if ( $this->permissions->delete($id) )
        {
            return Redirect::route('cpanel.permissions.index')
                ->with('success', Lang::get('cpanel::permissions.delete_success'));
        }
        else
        {
            return Redirect::route('cpanel.permissions.index')
                ->with('error', Lang::get('cpanel::permissions.model_not_found'));
        }
    }
public function destroy($id)
    {
        if ( $this->permissions->delete($id) )
        {
            return Redirect::route('cpanel.permissions.index')
                ->with('success', Lang::get('cpanel::permissions.delete_success'));
        }
        else
        {
            return Redirect::route('cpanel.permissions.index')
                ->with('error', Lang::get('cpanel::permissions.model_not_found'));
        }
    }
public function destroy ( $ id ) { if ( $ this -> permissions -> delete ( $ id ) ) { return Redirect :: route ( 'cpanel.permissions.index' ) -> with ( 'success' , Lang :: get ( 'cpanel::permissions.delete_success' ) ) ; } else { return Redirect :: route ( 'cpanel.permissions.index' ) -> with ( 'error' , Lang :: get ( 'cpanel::permissions.model_not_found' ) ) ; } }
Delete a permission module

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

@param $id

@return \Illuminate\Http\RedirectResponse
Delete a permission module