LoginSignup
0
0

More than 1 year has passed since last update.

Laravelプロジェクトをcloneしてきたらやること

Last updated at Posted at 2022-02-11

Laravelのプロジェクト作成後にやる設定もろもろ忘れることが多いのでメモ。

ライブラリのインストール

composer install

.envの作成・編集

デフォルトだと.envファイルが存在しないので、.env.exampleからコピーする

cp .env.example .env

.envの編集

vi .env

僕はvim使うことが多いので今回はvimで編集。
DBの設定周りの設定をします。

アプリケーションキーを設定

php artisan key:generate

パーミッション変更

chmod -R 777 storage
chmod -R 777 bootstrap/cache

必要であれば

マイグレーション実行

php artisan migrate

シーダーの実行

php artisan db:seed

storageにシンボリックリンクを張る

storage配下扱うときは必ず

php artisan storage:link
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