PHP based air cargo transport platform from China to tanzania
# Psychomillionaire Cargo Transport Platform
A PHP-based Laravel application for air cargo transportation from China to Tanzania.
## Features
✅ **User Registration & Authentication**
- Shipper registration with company details
- Secure login system
- User profile management
✅ **Route Management**
- Display all available routes
- China to Tanzania route listings
- Route pricing and delivery estimates
✅ **Dynamic Pricing System**
- Cargo type-based pricing
- Weight-based calculations
- Surcharge management
- Insurance options
✅ **Shipment Tracking**
- Real-time tracking numbers
- Shipment status updates
- Pickup and delivery dates
- Special handling notes
## Technology Stack
- **Backend**: Laravel 10.x
- **Database**: MongoDB
- **ODM**: jenssegers/laravel-mongodb
- **Language**: PHP 8.1+
## Installation
### Prerequisites
- PHP 8.1 or higher
- Composer
- MongoDB Community Server
- Git
### Setup Steps
1. **Clone the repository**
```bash
git clone
github.com
cd Psychomillionaire-cargo-transport-platform
```
2. **Install dependencies**
```bash
composer install
```
3. **Setup environment**
```bash
cp .env.example .env
php artisan key:generate
```
4. **Configure MongoDB in .env**
```
DB_CONNECTION=mongodb
DB_HOST=127.0.0.1
DB_PORT=27017
DB_DATABASE=cargo_transport
DB_USERNAME=
DB_PASSWORD=
```
5. **Start MongoDB**
```bash
# On Windows
mongod
# On macOS (if installed via Homebrew)
brew services start mongodb-community
# On Linux
sudo systemctl start mongod
```
6. **Run the development server**
```bash
php artisan serve
```
The application will be available at `
localhost`
## API Endpoints
### Authentication
- `POST /api/register` - Register a new shipper
- `POST /api/login` - Login shipper
### Routes
- `GET /api/routes` - List all active routes
- `GET /api/routes/china-tanzania` - List China to Tanzania routes
- `GET /api/routes/{id}` - Get specific route
- `POST /api/ …