Skip to content

Nova 409 error after updating resource 2-nd time #1853

@ArroWsGM

Description

@ArroWsGM
  • Laravel Version: 5.8.33
  • Nova Version: 2.0.11;2.1.1
  • PHP Version: 7.3.5
  • Database Driver and Version: 10.3.15-MariaDB
  • Operating System and Version: Windows 7 6.1.7601 Service Pack 1 build 7601
  • Browser type and version: Chrome 76.0.3809.100
  • Reproduction Repository: https://github.com/ArroWsGM/nova-redirect-bug

Description

Nova throws 409 (Conflict) error after 2-nd resource update

Steps To Reproduce

Install laravel with nova, create resource or use User resource
Override redirectAfterUpdate method:

    public static function redirectAfterUpdate(NovaRequest $request, $resource)
    {
        return '/resources/'.static::uriKey().'/'.$resource->getKey().'/edit';
    }

Go to update page of the resource, change something, hit update (all fine), change something once again or do nothing, hit update and get an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVerified bug by the Nova team

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions