1
laravel 5.2에서 사용자 정의 드라이버를 만드는 작업이 있습니다. 내 코드는 아래에 있습니다.laravel 5.2의 오류를 수정하는 방법
내 auth.php는
'providers' => [
'users' => [
'driver' => 'bootsgrid',
],
을 가지고 그리고 내 app.php는
App\Bootsgrid\Authentication\AuthServiceProvider::class,
내 사용자 지정 드라이버 컨트롤러
<?php
namespace App\Bootsgrid\Authentication;
use Auth;
use App\Bootsgrid\Authentication\UserProvider;
use Illuminate\Support\ServiceProvider;
class AuthServiceProvider extends ServiceProvider
{
/**
* Perform post-registration booting of services.
*
* @return void
*/
public function boot()
{
Auth::provider('bootsgrid', function($app, array $config) {
return new UserProvider();
});
}
/**
* Register bindings in the container.
*
* @return void
*/
public function register()
{
//
}
}
이 아래에 있고 거기에 내 공급자 파일
(210)이 내 모든 코드입니다하지만 난 당당히 공개하기 위해 출연 해 주신 도와 해결하는 방법을 잘 모릅니다이
Declaration of App\Bootsgrid\Authentication\UserProvider::updateRememberToken() must be compatible with Illuminate\Contracts\Auth\UserProvider::updateRememberToken(Illuminate\Contracts\Auth\Authenticatable $user, $token)
아래에 오류가 발생했습니다.
네임 스페이스 선언 : 'Use Illuminate \ Contracts \ Auth \ Authenticatable;'아래에 이것을 넣을 수 있습니까? 이 문제가 해결되지 않으면 매우 흥미가 있습니다. – Loek
나중에 고정되어 있습니다. 매우 감사드립니다. – murugesh
답변으로 추가하여 알려 드리겠습니다. :) – Loek