vendredi 3 mai 2019

Laravel nova tool not working with Class not found error

I'm creating a tool with laravel nova.

I ran this command first,

php artisan nova:tool mytools/cachier

And then in my mai app directory App\Providers\NovaServiceProvider I added,

use Mytools\Cachier\Cachier;

public function tools()
    {
        return [
            new Cachier(),
        ];

    }

But now when I'm trying to access app I'm getting this error.

Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR) Class 'Mytools\Cachier\Cachier' not found

It would be great if someone can help :'(



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire