2017 © Pedro Peláez
 

library laravel-carousel

image

fbf/laravel-carousel

  • Thursday, January 23, 2014
  • by neilcrookes
  • Repository
  • 1 Watchers
  • 1 Stars
  • 187 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Laravel Carousel

A Laravel 4 package for adding a carousel to a website, (*1)

Features

  • Supports carousel slides with text panel that is typically a background image overlaid with title, intro para and link, and also supports optional carousel navigation with icon image and title.
  • Bundled FrozenNode/Administrator config file to manage the panel data, including custom actions for reordering
  • Bundled view that you can include as a partial for example on your site's homepage, and a model method for getting all the data to populate that view.

Installation

Add the following to you composer.json file, (*2)

"fbf/laravel-carousel": "dev-master"

Run, (*3)

composer update

Add the following to app/config/app.php, (*4)

'Fbf\LaravelCarousel\LaravelCarouselServiceProvider'

Publish the config, (*5)

php artisan config:publish fbf/laravel-carousel

Run the migration, (*6)

php artisan migrate --package="fbf/laravel-carousel"

Create the relevant image upload directories that you specify in your config, e.g., (*7)

public/uploads/packages/fbf/laravel-carousel/background/original
public/uploads/packages/fbf/laravel-carousel/background/resized
public/uploads/packages/fbf/laravel-carousel/icon/original
public/uploads/packages/fbf/laravel-carousel/icon/resized

Usage

In your controller, (*8)

$panels = Fbf\LaravelCarousel\Panel::getData();
return View::make('home')->with(compact('panels'));

In your blade template:, (*9)

@inlcude('laravel-carousel::carousel')

Administrator

You can use the excellent Laravel Administrator package by frozennode to administer your carousel., (*10)

http://administrator.frozennode.com/docs/installation, (*11)

A ready-to-use model config file for the Panel model (carousel_panels.php) is 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)., (*12)

The Versions

23/01 2014

dev-master

9999999-dev

  Sources   Download

The Requires

 

23/01 2014

v0.1.0

0.1.0.0

  Sources   Download

The Requires