Backend API for Laravel + Sanctum based product warranty registration system. Supports authentication, email verification, product management, and warranty registration features by users.
- ✅ User Register + Email Verification
- 🔐 Login & Logout (Sanctum token-based)
- 🧾 Product Listing & Admin Product Management
- 🛡️ Product Warranty Registration
- 👮 Role-based Access (Admin/User)
- 📬 Email Verification with signed link
- 📁 Upload proof of purchase
- 🔎 Search, Filter, Pagination (Admin panel)
- Laravel 12 (API Only)
- Sanctum Authentication
- PostgreSQL
- RESTful API Structure
- Role Authorization via Gates / Policies
git clone https://github.com/rachmadsuharja/validity-api.git
cd validity-api
# Install dependencies
composer install
# Copy & edit environment
cp .env.example .env
php artisan key:generateDB_CONNECTION=pgsql
DB_HOST=127.0.0.1
DB_PORT=5432
DB_DATABASE=validity
DB_USERNAME=postgres
DB_PASSWORD=your_passwordphp artisan vendor:publish --provider="Spatie\Backup\BackupServiceProvider"php artisan migrate --seedphp artisan serve