Laravel Commands – Fast Help

Storage file into folder with contents

Storage::disk('local')->put("/path-to-file/file.json", json_encode($data));

Run single Migration

php artisan migrate --path=/database/migrations/migration_php_file.php

Run single Seeder

php artisan db:seed --class=Seeder

Recreate containers

docker-compose up --force-recreate --build -V