public function edit($id)
    {
        $permission = $this->permissionRepository->findWithoutFail($id);

        if (empty($permission)) {
            Flash::error(trans('l5starter::messages.404_not_found'));

            return redirect(route('admin.permissions.index'));
        }

        return view('permissions::edit')->with([
            'roles' => $this->roleRepository->all(),
            'permission' => $permission,
        ]);
    }
public function edit($id)
    {
        $permission = $this->permissionRepository->findWithoutFail($id);

        if (empty($permission)) {
            Flash::error(trans('l5starter::messages.404_not_found'));

            return redirect(route('admin.permissions.index'));
        }

        return view('permissions::edit')->with([
            'roles' => $this->roleRepository->all(),
            'permission' => $permission,
        ]);
    }
public function edit ( $ id ) { $ permission = $ this -> permissionRepository -> findWithoutFail ( $ id ) ; if ( empty ( $ permission ) ) { Flash :: error ( trans ( 'l5starter::messages.404_not_found' ) ) ; return redirect ( route ( 'admin.permissions.index' ) ) ; } return view ( 'permissions::edit' ) -> with ( [ 'roles' => $ this -> roleRepository -> all ( ) , 'permission' => $ permission , ] ) ; }
Show the form for editing the specified Permission.

@param  int $id

@return Response
Show the form for editing the specified Permission .