mstdmstd's avatar

How correctly to add frontend/personal areas into nova app ?

I have Laravel 10 / nova 4.27 app and now I need to add frontend and personal(logged user) pages on the site.

I check that routes/web.php is empty and has only root url. I suppose I need to work as in usual laravel app without having “nova” prefix url in routes/web.php.

Are there something else I have to pay attention at? Say for logged user ?

0 likes
3 replies
jdc1898's avatar

Nova just allows you easier management of your models (Resources) You are free to create whatever pages you want/need to do so. If you for instance are wanting to re-create the Jetstream experience where a user can manage their own information, you simply create a resource tied to the User model and add the necessary policy to restrict access. You can add links into the left navigation or the user menu allowing users direct page access as well. Nova is a great tool and can be easily developed to do most things. J

1 like
mstdmstd's avatar

@jdc1898 Yes, I added frontend pages into Nova app and it mostly works, but what I payed attention that running

nova resource pages I see log debugging messages in "/storage/logs/laravel.log" from fronend pages.

These messages are left in classes which are called from frontend pages.

In config/nova.php I modified option :

    'path' => '/nova-admin',

But the same issue...

If nova part has some files like routes/web.php ?

How to say Nova to render code only under '/nova-admin' ?

What must be checked ?

jdc1898's avatar
jdc1898
Best Answer
Level 21

@mstdmstd

if you run php artisan route:list you should see all of your Nova routes. If you have created new pages, simply uses the named routes, if defined, or the URL as specified. Changing the nova path in the Config shouldn't matter. It only affects the Nova prefix.

Default: /nova Yours: /nova-admin

1 like

Please or to participate in this conversation.