Proposed Documentation Improvement #6464
-
|
Hello, I'd like to propose an enhancement to the documentation regarding custom notifications in Laravel Nova, specifically to clarify the use of the Current Documentation IssueIn the current documentation for custom notifications (https://nova.laravel.com/docs/customization/notifications.html), there is no clear mention that the Proposed Documentation ImprovementUpdate the example in the documentation to clearly demonstrate the need to call the public function toNova()
{
return (new NovaNotification)
->message('Your report is ready to download.')
->action('Download', URL::remote('https://example.com/report.pdf'))
->icon('download')
->type('info');
}Propose exemple: public function toNova()
{
return (new NovaNotification)
->message('Your report is ready to download.')
->action('Download', URL::remote('https://example.com/report.pdf'))
->icon('download')
->type('info')
->toNova(); // Ensure to call toNova() to correctly store additional parameters like iconClass
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
you can try to create a PR here https://github.com/laravel/nova-docs |
Beta Was this translation helpful? Give feedback.
you can try to create a PR here https://github.com/laravel/nova-docs