Package Data | |
---|---|
Maintainer Username: | glebstar |
Maintainer Contact: | glebstarkov@gmail.com (Gleb Starkov) |
Package Create Date: | 2016-08-24 |
Package Last Update: | 2016-08-24 |
Language: | HTML |
License: | MIT |
Last Refreshed: | 2025-02-09 15:17:55 |
Package Statistics | |
---|---|
Total Downloads: | 22 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 3 |
Total Forks: | 0 |
Total Open Issues: | 0 |
This is a Laravel 5 package - https://github.com/glebstar/laravel5-products
{
"require": {
"glebstar/laravel5-products": "1.0.*"
}
}
or run composer require glebstar/laravel5-products
Then run composer update in your terminal to pull it in.
You will need to add the service provider to the providers array in your app.php config as follows:
GlebStarProducts\ServiceProvider::class,
Add an alias for ProductMiddleware in app/Http/Kernel.php into $routeMiddleware array:
'product' => \GlebStarProducts\Middleware\ProductMiddleware::class,
To publish a the package files, run:
php artisan vendor:publish --provider="GlebStarProducts\ServiceProvider"
Apply migration
php artisan migrate