A Laravel-based real estate property listing platform where users can browse, list, and manage property listings.
- PHP (>= 8.0)
- Composer (PHP dependency manager)
- MySQL or SQLite (database)
- Node.js & npm (for frontend assets)
# Install PHP dependencies
composer install
# Install frontend dependencies
npm installCopy the example environment file and update the database credentials:
cp .env.example .env
php artisan key:generate# Run migrations to create tables
php artisan migrate
# Seed the database with sample data (8 users, 12 property listings)
php artisan db:seedphp artisan storage:linkThis makes uploaded property images accessible at /storage/properties/.
npm run devphp artisan serveThe application will be available at http://127.0.0.1:8000
After seeding, you can log in with these accounts:
| Role | Password | |
|---|---|---|
| Admin | admin@awd.com | password |
| Seller | seller1@awd.com | password |
| Buyer | buyer1@awd.com | password |
- Buy Page (
/buy) — Browse active property listings (8 per page, 4×2 grid) - Sell Page (
/sell) — List a new property for sale - Property Details (
/property/{id}) — View full property information - User Authentication — Login/Register for buyers and sellers
AWDAssignment/
├── app/ # Application code (Models, Controllers)
├── database/
│ ├── migrations/ # Database schema
│ └── seeders/ # Sample data (8 users, 12 listings)
├── resources/views/ # Blade templates
│ ├── buyPage.blade.php # Property listings page
│ └── components/ # Reusable UI components
├── routes/web.php # Web routes
└── storage/app/public/ # Stored property images
Images not displaying?
php artisan storage:linkDatabase issues?
php artisan migrate:fresh --seedMIT License