Laravelで利用するコマンド集(自分用)
準備
新規プロジェクトをつくる
laravel new project_name
アプリケーションキーを設定
php artisan key:generate
migrate
テーブルを全部削除して、マイグレーションを最初からやりなおす
php artisan migrate:fresh
シーダを指定して実行
php artisan db:seed --class=PhotoTableSeeder
Test
テストファイルを指定して実行
phpunit app/tests/ExampleTest.php