Hi,
I want to controll the redirect after the save.
I want the user to stay on the same form he is editing.
I have done it as the following, but then I loose the "update success" green message.
$form->saved(function(Form $form){
return redirect('/admin/assignments/'.$form->model()->id.'/edit');
});
What is the correct way to redirect after submit.
Thanks
update laravel-admin and use:
admin_toastr('update success');
return redirect('/admin/assignments/'.$form->model()->id.'/edit');
Most helpful comment
update
laravel-adminand use: