src/Stevemo/Cpanel/Controllers/PermissionsController.php
public function edit($id)
    {
        $permission = $this->permissions->find($id);

        if ( $permission )
        {
            return View::make( Config::get('cpanel::views.permissions_edit') )
                ->with('permission', $permission);
        }
        else
        {
            return Redirect::route('cpanel.permissions.index')
                ->with('error', Lang::get('cpanel::permissions.model_not_found'));
        }
    }
public function edit($id)
    {
        $permission = $this->permissions->find($id);

        if ( $permission )
        {
            return View::make( Config::get('cpanel::views.permissions_edit') )
                ->with('permission', $permission);
        }
        else
        {
            return Redirect::route('cpanel.permissions.index')
                ->with('error', Lang::get('cpanel::permissions.model_not_found'));
        }
    }
public function edit ( $ id ) { $ permission = $ this -> permissions -> find ( $ id ) ; if ( $ permission ) { return View :: make ( Config :: get ( 'cpanel::views.permissions_edit' ) ) -> with ( 'permission' , $ permission ) ; } else { return Redirect :: route ( 'cpanel.permissions.index' ) -> with ( 'error' , Lang :: get ( 'cpanel::permissions.model_not_found' ) ) ; } }
Display the edit permission form

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

@param $id

@return \Illuminate\Http\RedirectResponse|\Illuminate\View\View
Display the edit permission form