Support the ongoing development of Laravel.io →
Authentication
Last updated 1 year ago.
0

You don't need this line:

use Illuminate\Foundation\Auth;
0

Xum,

Okay. I removed that from my app and now I'm getting this error.

FatalErrorException in RegistrationController.php line 155: Class 'App\Http\Controllers\Auth' not found

0

Oh, right, I missed that it was a namespaced class.

You should either add

use Auth;

or write \Auth::attempt instead of Auth::attempt.

Last updated 8 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.