2
최근에 Laravel을 사용하기 시작했으며 로그인 및 등록을 위해 artisan make:auth
을 실행했습니다.Laravel 5.2의 로그인 테이블 변경
내가 가지고있는 테이블을 partners
라고하고 users
이라는 새로운 테이블을 만들고 싶습니다.
이 방법이 있습니까? 당신에
최근에 Laravel을 사용하기 시작했으며 로그인 및 등록을 위해 artisan make:auth
을 실행했습니다.Laravel 5.2의 로그인 테이블 변경
내가 가지고있는 테이블을 partners
라고하고 users
이라는 새로운 테이블을 만들고 싶습니다.
이 방법이 있습니까? 당신에
: config/auth.php
이 당신의 파트너 모델에서 다음
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => App\Partner::class, //put the right model name here that will handle the login/registration or you can use database driver
],
],
을
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Partner extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'partners'; // specify table name
//rest of the model
}
이 잘되어야 변경 할