Reputation: 3
I created a Building Model and resource, which I did by the following.
php artisan make:model Building -m
php artisan nova:resource Building
created my migrations, and works fine, but I also need Building Types so I created the following.
php artisan make:model BuidlingType -m
php artisan nova:resource BuildingType
But when I want to access the dashboard I get an error:
Class 'App\BuildingType' not found (View: /Users/Username/projects/enest/vendor/laravel/nova/resources/views/layout.blade.php)```
Upvotes: 0
Views: 2552
Reputation: 429
You can correct the model in the resource:
/**
* The model the resource corresponds to.
*
* @var string
*/
public static $model = 'App\BuidlingType';
https://nova.laravel.com/docs/2.0/resources/#defining-resources
Upvotes: 1