Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

onaciri's avatar

blank page login

Hello,

i installed nova 4 under laravel 9, my app works fine if i call it locally from myapp.test/nova/login

however I have a blank login page without any error message when I try to call my application from myip/myapp/public/nova/login or from localhost/myapp/public/nova/login

I had the same problem after hosting it

Thank you for your help

0 likes
5 replies
ramonrietdijk's avatar

Have you published Laravel Nova's assets?

php artisan nova:publish
php artisan view:clear

Also, are you getting any errors in your console?

jameswise's avatar
Level 1

From what you've said, it sounds like the issue might be with your Nova route or your Apache/Nginx configuration. Make sure that the Nova route is pointing to the correct location, and that your server is configured to allow access to the Nova route.

onaciri's avatar

Hi, thanks for your replies,

I executed

php artisan nova:publish
php artisan view:clear

without errors in my concole. it still doesn't work,

however, I pointed my domain directly to the laravel public folder, I have the login page, but after logging in, nova redirects me to the page 403 error

onaciri's avatar

Hi, thank you everyone finally it works, for the 403 error it is written in the documentation

/**
 * Register the Nova gate.
 *
 * This gate determines who can access Nova in non-local environments.
 *
 * @return void
 */
protected function gate()
{
    Gate::define('viewNova', function ($user) {
        return in_array($user->email, [
            '[email protected]',
        ]);
    });
}

Please or to participate in this conversation.