quando rodo a migrate esta dando esse erro | Fórum | School of Net

Deseja poder participar de nosso fórum e tirar todas as suas dúvidas?
Clique aqui e assine nosso plano de acesso ilimitado. Saiba mais.

por Rodrigo

4 meses atrás Rodrigo

quando rodo a migrate esta dando esse erro

undefined ``` Seeding: UsersTableSeeder ErrorException : Array to string conversion at /home/anakin/Documents/singletenanty/database/seeds/UsersTableSeeder.php:25 21| ->make([ 22| 'email' => 'admin@user.com', 23| ])->each(function ($user) use ($self){ 24| \App\Models\Admin::createUser([ > 25| 'user' =>$user->toArray() . ['password' => $self->password] 26| ]); 27| }); 28| 29| \Tenant::setTenant(Company::find(2)); Exception trace: 1 Illuminate\Foundation\Bootstrap\HandleExceptions::handleError("Array to string conversion", "/home/anakin/Documents/singletenanty/database/seeds/UsersTableSeeder.php", [Object(App\Models\User), Object(UsersTableSeeder)]) /home/anakin/Documents/singletenanty/database/seeds/UsersTableSeeder.php:25 2 UsersTableSeeder::{closure}(Object(App\Models\User)) /home/anakin/Documents/singletenanty/vendor/laravel/framework/src/Illuminate/Support/Collection.php:419 Please use the argument -v to see more details. ```

4 Respostas