Pass data via URL to all files in the NOVA project
I'm consuming an API through a post route in the web file via an event catcher and I'm passing the data in return redirect('/nova?' . http_build_query([ 'title' => $title, 'text_color' => $text_color, 'background_color' => $background_color, ]))->with([ 'company_title' => $title, 'text_color' => $text_color, 'background_color' => $background_color, ]); They are passed correctly and displayed in a log, but when I call them in a Nova card, they don't display them. In this part, I make the call public function jsonSerialize(): array {
$companyTitle = request()->query('title', 'No title'); $textColor = request()->query('text_color', 'No color'); $backgroundColor = request()->query('background_color', 'No color');
return array_merge(parent::jsonSerialize(), [
'company_title' => $companyTitle,
'text_color' => $textColor,
'background_color' => $backgroundColor,
]);
}
Please or to participate in this conversation.