Wednesday, April 12, 2017

MongoDb + Laravel Passport problems install

I have installed MongoDb and i can create tables using migration and seeder. My problems are:

  1. When i put the command php artisan migrate, the flow not registered the name of the table into migrations table, in this way the console show me this error: [MongoDB\Driver\Exception\RuntimeException]
    a collection 'victest.users' already exists

where can i fix it?

  1. The command php artisan migrate to create all tables of passport or others tables in migrations is not functional. can i change this in the entire project? use Illuminate\Database\Eloquent\Model to use Jenssegers\Mongodb\Eloquent\Model as Model;

now i have those problems, if someone had problems con mongodb and laravel passport please share you knowledge.

thanks



via VicRome

Advertisement