I found that the Spark app I created was missing multiple files in Illuminate\Foundation\Auth\. I copied the contents of that directory from another project and it worked.
Mar 13, 2020
5
Level 4
Spark Login and Register pages not working
I just installed a fresh Laravel Spark app. Here are the customizations I added to the SparkServiceProvider
public function booted()
{
Spark::noAdditionalTeams();
Spark::identifyTeamsByPath();
Spark::noCardUpFront()->teamTrialDays(10);
Spark::freeTeamPlan()
->features([
'First', 'Second', 'Third'
]);
Spark::teamPlan('Basic', 'provider-id-1')
->price(10)
->features([
'First', 'Second', 'Third'
]);
}
/**
* Register any application services.
*
* @return void
*/
public function register()
{
Spark::ensureEmailIsVerified();
parent::register();
}
I ran npm install, composer install, and migrate. The spark landing page works, but I get an error on the login and register pages.
Login Error
Trait 'Illuminate\Foundation\Auth\AuthenticatesUsers' not found
Register Error
Trait 'Illuminate\Foundation\Auth\RedirectsUsers' not found
This is my first Spark app with Laravel 7.0 and I'm wondering if there is a bug.
Level 9
@ethor88 installing the laravel/ui repo via composer should fix the auth error for laravel 7.
2 likes
Please or to participate in this conversation.