Inventory (Laravel 5 Package)
This package is under development. Please come back later., (*1)
Installation
In order to install this package, you need laravel 5 and add, (*2)
"ryoyin/inventory": "dev-master"
to your composer.json. Then run composer install
or composer update
., (*3)
or you can run the composer require
command from your terminal:, (*4)
composer require ryoyin/inventory dev-master
Then in your config/app.php add, (*5)
Ryoyin\Inventory\InventoryServiceProvider::class,
in the providers array, and then run, (*6)
composer dump-autoload
Migration & Publish View
Run, (*7)
php artisan migrate
It will install 3 tables to your database "items", "warehouse" and "warehouse_item" for a "many to many" situation., (*8)
To custom template, run, (*9)
php artisan vendor:publish --tag=ryoyin-inventory
two view file will copy to your view directory, (*10)
Routing
inventory/item to access the CRUD item view
How to use
Access Item model:, (*11)
use Ryoyin\Inventory;
$inventory = new Inventory\Item;