php artisan migrate

Posted 2 years ago by zacharynn

Receive the following error

[ErrorException] substr() expects parameter 1 to be string, array given

Exception trace: () at vendor/laravel/framework/src/Illuminate/Support/Str.php:90 Illuminate\Foundation\Bootstrap\HandleExceptions->handleError() at n/a:n/a substr() at vendor/laravel/framework/src/Illuminate/Support/Str.php:90 Illuminate\Support\Str::endsWith() at vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php:88 Illuminate\Database\DatabaseManager->parseConnectionName() at vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php:62 Illuminate\Database\DatabaseManager->connection() at vendor/laravel/framework/src/Illuminate/Database/Migrations/DatabaseMigrationRepository.php:186 Illuminate\Database\Migrations\DatabaseMigrationRepository->getConnection() at vendor/laravel/framework/src/Illuminate/Database/Migrations/DatabaseMigrationRepository.php:154 Illuminate\Database\Migrations\DatabaseMigrationRepository->repositoryExists() at vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php:515 Illuminate\Database\Migrations\Migrator->repositoryExists() at vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php:92 Illuminate\Database\Console\Migrations\MigrateCommand->prepareDatabase() at vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php:58 Illuminate\Database\Console\Migrations\MigrateCommand->fire() at n/a:n/a call_user_func_array() at vendor/laravel/framework/src/Illuminate/Container/Container.php:508 Illuminate\Container\Container->call() at vendor/laravel/framework/src/Illuminate/Console/Command.php:169 Illuminate\Console\Command->execute() at vendor/symfony/console/Command/Command.php:261 Symfony\Component\Console\Command\Command->run() at vendor/laravel/framework/src/Illuminate/Console/Command.php:155 Illuminate\Console\Command->run() at vendor/symfony/console/Application.php:817 Symfony\Component\Console\Application->doRunCommand() at vendor/symfony/console/Application.php:185 Symfony\Component\Console\Application->doRun() at vendor/symfony/console/Application.php:116 Symfony\Component\Console\Application->run() at vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:121 Illuminate\Foundation\Console\Kernel->handle() at artisan:36

Please sign in or create an account to participate in this conversation.