/** * * @param CreateRoleRequest $request * @return View */ public function store(CreatePermissionRequest $request) { Permission::create($request->except('id', '_token')); return $this->toIndex('save success'); }
/** * * @param CreateRoleRequest $request * @return View */ public function store(CreatePermissionRequest $request) { Permission::create($request->only(['name', 'readable_name', 'is_nav'])); return redirect()->route('admin.permissions.index'); }