あなたは多分またあなたは、テーブル名を変更することができますRegisterController
でバリ方法を変更する必要があります
のconfig/auth.php
/*
|--------------------------------------------------------------------------
| User Providers
|--------------------------------------------------------------------------
|
| All authentication drivers have a user provider. This defines how the
| users are actually retrieved out of your database or other storage
| mechanisms used by this application to persist your user's data.
|
| If you have multiple user tables or models you may configure multiple
| sources which represent each model/table. These sources may then
| be assigned to any extra authentication guards you have defined.
|
| Supported: "database", "eloquent"
|
*/
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => App\User::class,
],
// 'users' => [
// 'driver' => 'database',
// 'table' => 'users',
// ],
],
に行きますマイグレーションfileで変更し、User.phpモデルのテーブル名変数を変更します。
例:
class MyTable extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'my_table';
}
https://laravel.com/docs/5.4/eloquent#eloquent-model-conventions
あなたはuser_adminテーブルを持っている場合は、ちょうどあなたのUserモデル '保護$テーブル= 'user_admin' にこのコードを追加;'ウェブガードの用途として、 'users'プロバイダと' users'プロバイダはUserというモデルクラスを持っています – programmingArrow