app/Http/Controllers/Role/RoleController.php
/**
     * @param  StoreRoleRequest  $request
     *
     * @throws GeneralException
     * @throws Throwable
     * @return mixed
     */
@param  StoreRoleRequest  $request
@throws GeneralException
@throws Throwable
@return mixed
@param StoreRoleRequest $request @throws GeneralException @throws Throwable @return mixed
public function store(StoreRoleRequest $request)
    {
        $this->roleRepository->create($request->only('name', 'description', 'permissions'));
        return redirect()->route('admin.user.role.index')->withFlashSuccess(__('Perfil creado correctamente.'));
    }
public function store ( StoreRoleRequest $ request ) { $ this -> roleRepository -> create ( $ request -> only ( 'name' , 'description' , 'permissions' ) ) ; return redirect ( ) -> route ( 'admin.user.role.index' ) -> withFlashSuccess ( __ ( 'Perfil creado correctamente.' ) ) ; }
@param  StoreRoleRequest  $request
 @throws GeneralException
 @throws Throwable
 @return mixed
@param StoreRoleRequest $request @throws GeneralException @throws Throwable @return mixed