According to the error message, it is something in your booted() method in the service provider. If you were trying to use a Carbon instance, I think you have the wrong import.
Dec 30, 2016
4
Level 7
Add additional registration field to spark error
Hi all, So I followed the documentation exactly https://spark.laravel.com/docs/3.0/adding-registration-fields#introduction and get the following error when trying to add a new field to the registration form for my laravel spark app.
Symfony\Component\Debug\Exception\FatalThrowableError: Class 'App\Providers\Carbon' not found in /Applications/MAMP/htdocs/laravel53/app/Providers/SparkServiceProvider.php:74
Any ideas on how to fix? Anyone else experience this?
Level 53
Ok, are you importing Carbon\Carbon? I see you are using a Carbon date as identified in the error message.
Please or to participate in this conversation.