I'm trying to login or register a user but I always get Class '\App\User' not found even though last time it was working properly..
User.php
<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use Notifiable;
protected $fillable = [
'username', 'email', 'password','tel','ville',
];
protected $hidden = [
'password', 'remember_token',
];
}
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => App\User::class,
],
'admins' => [
'driver' => 'eloquent',
'model' => App\Admin::class,
],
Login.blade
<form action="/login" method="post">
<div class="input-field col s12">
<i class="material-icons prefix">email
</i>
<input id="icon_prefix" name="email" type="text" class="validate">
<label for="icon_prefix" style="color:#fff;">E-Mail</label>
</div>
<div class="input-field col s12">
<i class="material-icons prefix">lock</i>
<input id="icon_prefix" name="password" type="text" class="validate">
<label for="icon_prefix" style="color:#fff;">Mot de passe</label>
</div>
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire