A modern, full-featured e-commerce platform for buying and selling motor car products with comprehensive user authentication and inventory management.
Motex is a Laravel-based e-commerce application designed specifically for motor car retailers and enthusiasts. It provides a complete solution for managing a product catalog, handling user authentication, and enabling seamless shopping experiences for customers.
Built with the latest Laravel 11 framework, Motex combines robust backend functionality with an elegant, responsive frontend powered by Blade templates and TailwindCSS.
- 🔐 User Authentication - Secure registration, login, and profile management
- 🛍️ Product Catalog - Browse and manage motor car products with images and pricing
- 📦 Inventory Management - Full CRUD operations for shop items (Create, Read, Update, Delete)
- 🔒 Protected Routes - Role-based access control for admin operations
- 💾 Database Management - Eloquent ORM with migrations and seeders
- 📱 Responsive Design - Mobile-friendly interface with TailwindCSS
- 🎨 Modern UI - Clean, intuitive user interface with Blade templating
| Layer | Technologies |
|---|---|
| Backend | Laravel 11.x, PHP 8.2+ |
| Frontend | Blade Templates, TailwindCSS, JavaScript, Vite |
| Database | Laravel Eloquent ORM |
| Build Tools | Vite, PostCSS, npm |
| Testing | PHPUnit |
motex/
├── app/
│ ├── Http/Controllers/
│ │ ├── AuthController.php # Authentication logic
│ │ └── ShopController.php # Shop CRUD operations
│ └── Models/
│ ├── User.php # User model
│ └── Shop.php # Shop/Product model
├── database/
│ ├── factories/
│ │ ├── UserFactory.php
│ │ └── ShopFactory.php
│ ├── migrations/ # Database schema
│ └── seeders/
│ └── DatabaseSeeder.php
├── resources/
│ └── views/
│ ├── auth/ # Auth templates
│ ├── Dashboard/ # Dashboard templates
│ └── Shop/ # Shop templates
├── routes/
│ └── web.php # Route definitions
├── public/ # Public assets
├── config/ # Configuration files
└── composer.json # PHP dependencies
- PHP 8.2 or higher
- Composer
- Node.js & npm
- SQLite or MySQL
-
Clone the repository
git clone https://github.com/shezanyo/motex.git cd motex -
Install PHP dependencies
composer install
-
Install Node dependencies
npm install
-
Setup environment
cp .env.example .env php artisan key:generate
-
Setup database
php artisan migrate php artisan db:seed
-
Build assets
npm run dev
-
Start the application
php artisan serve
The application will be available at
http://localhost:8000
Users can register and log in with email and password. The application features:
- Secure password hashing
- Session-based authentication
- User profiles
- Protected dashboard
Routes:
GET /register- Registration pagePOST /register- Create new accountGET /login- Login pagePOST /login- Authenticate userPOST /logout- Logout userGET /profile- View user profile (protected)
The shop module allows users to browse products and authenticated users to manage inventory:
Public Routes:
GET /shop- View all products
Protected Routes (Auth Required):
GET /shop/create- Create new productPOST /shop- Store productGET /shop/edit/{id}- Edit product formPUT /shop/{id}- Update productDELETE /shop/{id}- Delete product
Product Attributes:
- Name
- Brand
- Price
- Image (stored as file)
Authenticated users access a personalized dashboard after login, providing easy navigation to shop and profile management.
- id (Primary Key)
- name
- email (Unique)
- password (Hashed)
- email_verified_at
- remember_token
- timestamps
- id (Primary Key)
- name
- brand
- price
- image
- timestamps
php artisan testThe project uses Laravel Pint for code formatting:
composer run pintnpm run devFor production builds:
npm run build- Laravel Framework (11.x) - Core framework
- Laravel Tinker - REPL for Laravel
- FakerPHP - Generate fake data for testing
- PHPUnit - Unit testing
- Tailwind CSS - Utility-first CSS framework
- Vite - Build tool and dev server
- CSRF Protection - Built-in CSRF token validation
- Password Hashing - Bcrypt password hashing
- Authentication Guards - Session-based user authentication
- Authorization - Middleware-based route protection
- Image Validation - File type and size validation for product images
This project is open-source software licensed under the MIT License.
Shezanyo - GitHub Profile
Contributions are welcome! Please feel free to submit a Pull Request or open an Issue for bugs and feature requests.
For issues, questions, or suggestions, please open an issue on the GitHub repository.
Made with ❤️ by the Motex Team