0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Laravelでsqliteの設定

Posted at

#.envの修正

#DB_CONNECTION=mysql
#DB_HOST=127.0.0.1
#DB_PORT=8889
#DB_DATABASE=webtools
#DB_USERNAME=webtools
#DB_PASSWORD=

DB_CONNECTION=sqlite
DB_DATABASE=./database/database.sqlite
DB_FOREIGN_KEYS=true

#sqliteファイル作成

touch database/database.sqlite

#キャッシュをクリアし、migrationテスト

php artisan cache:clear
php artisan migrate
sqlite3 database/database.sqlite 
sqlite> .tables
migrations         password_resets    users  
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?