# Smart Mobile Shop ERP - Laravel 12 install commands

# 1) Create a fresh Laravel 12 project
composer create-project laravel/laravel mobile-shop-erp
cd mobile-shop-erp

# 2) Copy all files from this package over the fresh Laravel project
#    Replace/merge routes, app, database, resources, lang, and public folders.

# 3) Install optional PDF / QR / barcode packages
composer require barryvdh/laravel-dompdf picqer/php-barcode-generator endroid/qr-code

# 4) Configure .env for offline local use
# SQLite option:
# DB_CONNECTION=sqlite
# Create database/database.sqlite

# MySQL option:
# DB_CONNECTION=mysql
# DB_DATABASE=mobile_shop_erp
# DB_USERNAME=root
# DB_PASSWORD=

# 5) Register middleware aliases in bootstrap/app.php
# Add inside ->withMiddleware(function (Middleware $middleware) { ... })
# $middleware->alias([
#     'locale' => \App\Http\Middleware\SetLocale::class,
#     'role' => \App\Http\Middleware\RoleMiddleware::class,
# ]);

# 6) Migrate and seed
php artisan migrate:fresh --seed
php artisan storage:link
php artisan optimize:clear

# 7) Login
# URL: http://127.0.0.1:8000/login
# Email: admin@mobile.test
# Password: password
php artisan serve
