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

webby0820's avatar

How to remove Laravel / nova from my project

I tried to delete nova from my laravel project but I get an error every time I want to run php artisan. I used the following command(composer remove laravel/nova) and delete the files linked with nova

```
	  Class 'App\Providers\NovaServiceProvider' not found  
```

i need help please...

(sorry for my english :/ )

0 likes
7 replies
automica's avatar

have you ran

composer dump-autoload

as well as clearing your caches?

webby0820's avatar

when I run composer dump-autoload it sends me this again

  Class 'App\Providers\NovaServiceProvider' not found  

php artisan cache:clear it's same

biparso's avatar

@webby0820 I guess you got it figured out after a month - but still, if somebody else stumbles over your question:

Go to config/app.php and just remove

App\Providers\NovaServiceProvider::class
1 like
yordie's avatar

Anyone stumbling across this when trying to deploy to an environment where you cache your config, the above solutions won't work.

You'll need to remove the bootstrap/cache/config.php file which contains the cached config that still includes App\Providers\NovaServiceProvider::class.

Once this cached file is removed you can rerun your deployment i.e. composer install and artisan commands, and this should resolve the issue.

2 likes
Sirik's avatar

I think this should resolve your problem

Please or to participate in this conversation.