Open aliharis opened 8 years ago
When the refresh service starts the refresh process, it executes the following code:
$model = $this->app->make($className);
if (!$model instanceof StaplerableInterface) {
throw new InvalidClassException("Invalid class: the $className class is not currently using Stapler.", 1);
}
Where $className
is the value of the string you pass in. So it looks like your app (more specifically your application container) isn't resolving an instance of your Form model but is instead creating an instance of some other class (which doesn't implement StaplerableInterface).
Try wrapping the class name in quotes. E.g.
php artisan stapler:refresh "App\Form"
I am using Laravel 5.2.
I have a model called Form, which implements StaperableInterface. Uploading works well. But I am unable to use the refresh command successfully.
I have tried php artisan stapler:refresh Form php artisan stapler:refresh App\Form
I keep receiving the invalid class exception.
Any help is appreciated. Thank you.