This is a Laravel-based RESTful API for managing an online shop.
It includes features like product management, category grouping, attributes, image uploads, and more.
- ✅ Product CRUD (with images and attributes)
- ✅ Category grouping
- ✅ Attribute-based filtering
- ✅ Upload and manage product images
- ✅ RESTful API built with Laravel 12
- ✅ API validation with Form Requests
- ✅ Modular structure for future expansions
- ✅ Email confirmation via Event + Listener + Queue
- PHP 8.2+
- Laravel 12
- Composer
- MySQL or compatible database
- Postman (for testing the API)
app/Http/Controllers
: Contains controllers for products, cart, etc.app/Models
: Data models.app/Services
: Business logic layer.app/repositories
: Repository Pattern.
git clone https://github.com/akram-khodami/shop.git
cd shop
composer install
cp .env.example .env
php artisan key:generate
php artisan migrate --seed
php artisan serve
php artisan queue:work # For production
# php artisan queue:listen # For development (restarts after each job)