#Nova 4 error "Class "hash" does not exist"

3 messages · Page 1 of 1 (latest)

copper smelt
#

Hey everyone, I am using Laravel 10 and Nova 4 and Im currently unable to use any artisan commands or update composer because of the following error:

In Container.php line 912:

Class "hash" does not exist

I searched for where hash was being called, and its not being called anywhere. None of the solutions on google have helped as Im not using Hash::make or anything to do with Hash at all.

errant ice
#

Sounds like you have something going on in one of your service providers, or maybe a third party package that's doing something odd

copper smelt
#

oh my gosh thank you!!!! I found it:

/**
* Register any application services.
*
* @return void
*/
public function register()
{
if(auth()->user()){
Nova::initialPath('/resources/users');
}

}

it was adding auth()->user() inside of NovaServiceProvider. As soon as I removed auth()->user() all was well.