corcel / corcel

Use WordPress backend with Laravel or any PHP application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Corcel and Laravel Voyager incompatibility

sligregni opened this issue · comments

  • Corcel Version: 5.1
  • Framework Name & Version: Laravel Framework 8.83.11
  • Voyager admin panel
  • PHP Version: PHP 7.4.3
  • Database Driver & Version: Mysql 5

Description:

Hello,
I know is not a bug of Corcel, but it seems use Corcel and Voyager are not compatible.

I follow the README changing the user provider in config/auth.php in
'providers' => [ 'users' => [ 'driver' => 'corcel', 'model' => Corcel\Model\User::class, ], ],
cause this error: Call to undefined method Corcel\Laravel\Auth\AuthUserProvider::getModel()

Is there a way to use the Corcel user and Auth facade manually without set the user provider?

Thanks,
Simone

Steps To Reproduce:

Installing Laravel 8
Installing Corcel
Installing Voyager

Hello, Any solution, I'm having the same problem with laravel Jetstream...