Support the ongoing development of →
Authentication Eloquent Architecture
Last updated 2 years ago.

Have you searched the,security section, there are several posts
where folks had similar problems and were solved. Are you using L4 or L5? Have you tried models just to verify it would work there? Have you dumped your autoloads, have you tried

 use Snippet\User;

Did you check namespacing for Snippet, making it exactly like models is setup? etc etc etc.

Last updated 9 years ago.

Im using 4.2.* Laravel. I get my error here: /var/www/snippet/vendor/laravel/framework/src/Illuminate/Auth/EloquentUserProvider.php

	 * @return \Illuminate\Database\Eloquent\Model
	public function createModel()
		$class = '\\'.ltrim($this->model, '\\');
		return new $class; //\Snippet\User

but if i put \Snippet\User instead $class everything is fine.

Last updated 9 years ago.

Having the same problem right now, any updates on a solution?


Have you tried to change the "model" in you auth.php config to Snippet\User ?

'model' => 'Snippet\User',
Last updated 9 years ago.

Can you please post the complete error?


Sign in to participate in this thread!


Your banner here too?

rasparac rasparac Joined 18 Feb 2014


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

Your logo here?

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

© 2024 - All rights reserved.