Skip to the content.

Creating a nova lens

To create a nova lens, we use the “php artisan make:module:nova-lens ModuleName lensName” command.

php artisan make:module:nova-lens blog BlogLens

This will create a lens in the path modules/blog/src/Lenses/BlogLens.php