This is a module for the Angel CMS., (*1)
Installation
Add the following requirements to your composer.json
file:, (*2)
"require": {
"angel/carousels": "dev-master"
},
Issue a composer update
to install the package., (*3)
Add the following service provider to your providers
array in app/config/app.php
:, (*4)
'Angel\Carousels\CarouselsServiceProvider'
Issue the following command:, (*5)
php artisan migrate --package="angel/carousels"
php artisan asset:publish angel/carousels
Finally, open up your app/config/packages/angel/core/config.php
and add the module to the menu
array:, (*6)
'menu' => array(
'Pages' => 'pages',
'Menus' => 'menus',
'Carousels' => 'carousels', // <--- Add this line
'Users' => 'users',
'Settings' => 'settings'
),
Usage
<?php
$Carousel = App::make('Carousel');
$carousel = $Carousel::find(1);
?>
@include('carousels::render')
If you need to modify the default display or carousel options:, (*7)
php artisan asset:publish angel/carousels
php artisan view:publish angel/carousels
And edit views/packages/angel/carousels/render.blade.php
, (*8)