Hi Albert,
Did you try this (in your Nova Action)?
return Action::redirect($url); // or return parent::redirect($url);
Regards
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello. I would need to add several functioning to my customer's app in Nova 4. For example, I need the user to click Action and catch $fields and $models and $filters, redirecto to controller class and a specific method which will open a non-nova-resource view (I mean a freshly newly created view under resources/views).
The general idea is to open a view with the data seen by the user then, such as models, fields and filters.
return redirect()->action is not working anymore.
return redirect()->action('\App\Http\Controllers\OpenViewController@openView', compact('fields','models'));
It throws an error saying "...OpenViewController@openView not defined". But, of course, the controller is there under Http\Controllers and the name is correct and the method or function also.
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class OpenViewController extends Controller
{
public function openView() {
dd('Reached here');
return view('test');
}
}
Anybody has achieved to do this?
Thank you all.
Please or to participate in this conversation.