whitecube / nova-page

Static pages content management for Laravel Nova
https://whitecube.github.io/nova-page
MIT License
238 stars 41 forks source link

Redirect error when updating a resource #50

Open lewis-sixth opened 4 years ago

lewis-sixth commented 4 years ago

When I try to update a resource I get the error Undefined method redirectAfterUpdate().

iFTZ4SW

If I comment out the redirect line in Whitecube\NovaPage\Http\Controllers\ResourceUpdateController everything works as expected

return response()->json([
    'id' => $template->getKey(),
    'resource' => $template->getAttributes(),
    //'redirect' => $resource::redirectAfterUpdate($request, $request->newResourceWith($template)),
]);