Laravel Food
A Laravel 4 Package for websites for manufacturers of food based products, with multiple product categories, products, recipes and stockists, (*1)
Pages
- Product categories index
- Product category detail, showing index of products
- Product detail page
- Recipe category index
- Recipe category detail, showing index of recipes
- Recipes by product detail, showing index of recipes (accessible through a product tag cloud)
- Recipe detail page
- Stockists page
Installation
Add the following to you composer.json file, (*2)
"fbf/laravel-food": "dev-master"
Run, (*3)
composer update
Add the following to app/config/app.php, (*4)
'Fbf\LaravelFood\LaravelFoodServiceProvider'
Run the package migration, (*5)
php artisan migrate --package=fbf/laravel-food
Publish the config, (*6)
php artisan config:publish fbf/laravel-food
Create the relevant image upload directories that you specify in your config, e.g., (*7)
public/uploads/packages/fbf/laravel-food/product_categories/main/original
public/uploads/packages/fbf/laravel-food/product_categories/main/resized
public/uploads/packages/fbf/laravel-food/product_categories/stockist/original
public/uploads/packages/fbf/laravel-food/products/main/original
public/uploads/packages/fbf/laravel-food/products/main/resized
public/uploads/packages/fbf/laravel-food/products/main/thumbnail
public/uploads/packages/fbf/laravel-food/recipe_categories/main/original
public/uploads/packages/fbf/laravel-food/recipe_categories/main/resized
public/uploads/packages/fbf/laravel-food/recipes/main/original
public/uploads/packages/fbf/laravel-food/recipes/main/large
public/uploads/packages/fbf/laravel-food/recipes/main/medium
public/uploads/packages/fbf/laravel-food/recipes/main/small
public/uploads/packages/fbf/laravel-food/stockists/logo/original
public/uploads/packages/fbf/laravel-food/stockists/logo/resized
Configuration
Check out the 2 configuration files for the options, these are:, (*8)
src/config/config.php
src/config/images.php
Administrator
You can use the excellent Laravel Administrator package by FrozenNode to administer your blog., (*9)
http://administrator.frozennode.com/docs/installation, (*10)
Several ready-to-use model config files for the models are provided in the src/config/administrator directory of the package, which you can copy into the app/config/administrator directory (or whatever you set as the model_config_path in the administrator config file)., (*11)