How to create Laravel Nova Lens by customize with your query
Nova lens the similar to the filter. The lens allows you to customize new queries in the resource Eloquent Query.
Lens generated to the folder app/nova/lans
php artisan nova:lens RetireUsers
The given command is a Laravel Artisan command, specifically for the Nova admin panel. The command php artisan nova:lens RetireUsers likely generates a new Nova lens named "RetireUsers." In the context of Laravel Nova, a lens is a way to customize and display specific data in the Nova admin panel. This lens might be designed to focus on or provide insights into retired user data within the application. Laravel Artisan is the command-line tool used for various tasks in a Laravel application, and in this case, it's being used to create a Nova lens with the specified name.
For example, if you want to select who retired this year we need to add more queries in the index query function.
No comments: