Download the PHP package rohith016/e-commerce-stock-models without Composer
On this page you can find all versions of the php package rohith016/e-commerce-stock-models. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rohith016/e-commerce-stock-models
More information about rohith016/e-commerce-stock-models
Files in rohith016/e-commerce-stock-models
Package e-commerce-stock-models
Short Description e-commerce package for stock management and stock allocation
License MIT
Informations about the package e-commerce-stock-models
E-commerce Package
A reusable Laravel package providing models, migrations, seeders, and factories for e-commerce applications. This package simplifies setup and accelerates development for common e-commerce functionality.
Features
Predefined Eloquent models for Product, Order, Address, and more. Migration files to create necessary database tables. Seeders and factories to populate tables with dummy data for testing and development.
Installation
Step 1: Require the Package
Install the package via Composer:
Step 2: Publish Resources
The package provides a range of resources (models, migrations, seeders, and factories). You can selectively publish resources using tags.
Step 3: Publish the Service Provider
After requiring the package, Laravel should automatically discover the service provider. If not, register it in config/app.php:
Usage
The package resources can be published to your Laravel application’s default structure as needed.
Publish All Resources
To publish all available resources (models, migrations, seeders, and factories), run:
Selective Publishing
Use the following commands to publish specific resources:
Publish Models:
Publish Migrations:
Publish Seeders:
Publish Factories:
Example Models and Structure
Once published, you can find the models in app/Models, migrations in database/migrations, seeders in database/seeders, and factories in database/factories.
Running Migrations and Seeders
Migrate the Database:
Run the migrations to create the e-commerce tables:
php artisan migrate Seed the Database (optional):
Seed the database tables with sample data:
Example Here’s how to use the Product model:
Contributing
Contributions are welcome! Feel free to submit a pull request or open an issue for suggestions and improvements.
License
This package is open-source software licensed under the MIT license.