🖥️ Server: PHP, Laravel
🗄️ Database: MySQL
💻 Client: React, Redux, TailwindCSS
📦 Setup dependence
composer install⚙️ Create .env file and Change DB Credentials
cp .env.example .env🔐 Generate APP Key
php artisan key:generate💻 Start Application
php artisan serve🌐 Start Application with custom IP address and port
php artisan serve --host=0.0.0.0 --port=8080 Create Model, Migration, Controller file
php artisan make:model Test --migration --controller --resource --apiCreate Seeder file
php artisan make:seeder ProductSeeder Create Factory file
php artisan make:factory ProductFactory Change and affect Database
php artisan migratephp artisan migrate:refresh --seed Single seed
php artisan db:seed --class=BrandSeederRun all seeders
php artisan db:seedRollback the last database migration
php artisan migrate:rollbackCreate a migration file
php artisan make:migration create_flights_tablecreate resource api route
php artisan make:controller UserController --apiAPI Resources for Fetching a Single Item and Multiple items
php artisan make:resource UserResourceAPI Collection for Fetching Custom Collection-Level and Multiple items
php artisan make:resource UserCollection# Clear application cache
php artisan cache:clear
# Clear config cache
php artisan config:clear
# Clear route cache
php artisan route:clear
# Clear compiled view files
php artisan view:clearClear all caches (application, route, config, view)
php artisan optimize:clear# Cache the configuration files
php artisan config:cache
# Cache the routes
php artisan route:cache
# Cache the views
php artisan view:cacheList all registered routes
php artisan route:list# For With Docker
$ cp .env.example .env #create .env.production file
# change API_HOST, API_PORT
$ docker compose build --no-cache --force-rm
# build for the production server
$ docker compose up -d
# start the production server
$ docker ps
# Show All Container
$ docker compose down