Единственное что я изменил это в .env файле
DB_CONNECTION=sqlite
# DB_HOST=127.0.0.1
# DB_PORT=3306
# DB_DATABASE=laravel
# DB_USERNAME=root
# DB_PASSWORD=
запускаю:
php artisan migrate
$ php artisan migrate
WARN The SQLite database does not exist: laravel.
Would you like to create it? (yes/no) [no]
❯ yes
Illuminate\Database\QueryException
could not find driver (SQL: PRAGMA foreign_keys = ON;)
at D:\server78\OSPanel\domains\laravel-todo\vendor\laravel\framework\src\Illuminate\Database\Connection.php:760
756▕ // If an exception occurs when attempting to run a query, we'll format the error
757▕ // message to include the bindings with SQL, which will make this exception a
758▕ // lot more helpful to the developer instead of just the database's errors.
759▕ catch (Exception $e) {
➜ 760▕ throw new QueryException(
761▕ $query, $this->prepareBindings($bindings), $e
762▕ );
763▕ }
764▕ }
1 D:\server78\OSPanel\domains\laravel-todo\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:70
PDOException::("could not find driver")
2 D:\server78\OSPanel\domains\laravel-todo\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:70
PDO::__construct("sqlite:D:\server78\OSPanel\domains\laravel-todo\laravel", Object(SensitiveParameterValue), [])