Skip to content

Commit

Permalink
Updating formatting from pro85 pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil Crookes committed Feb 3, 2014
1 parent 3140800 commit e714f7e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
22 changes: 12 additions & 10 deletions src/Fbf/LaravelPages/LaravelPagesServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,18 @@ public function boot()
{
$this->package('fbf/laravel-pages');
if (Config::get('laravel-pages::use_built_in_route', true))
include __DIR__.'/../../routes.php';

\App::register('Cviebrock\EloquentSluggable\SluggableServiceProvider');

// Shortcut so developers don't need to add an Alias in app/config/app.php
$this->app->booting(function()
{
$loader = \Illuminate\Foundation\AliasLoader::getInstance();
$loader->alias('Sluggable', 'Cviebrock\EloquentSluggable\Facades\Sluggable');
});
{
include __DIR__.'/../../routes.php';
}

\App::register('Cviebrock\EloquentSluggable\SluggableServiceProvider');

// Shortcut so developers don't need to add an Alias in app/config/app.php
$this->app->booting(function()
{
$loader = \Illuminate\Foundation\AliasLoader::getInstance();
$loader->alias('Sluggable', 'Cviebrock\EloquentSluggable\Facades\Sluggable');
});
}

/**
Expand Down
10 changes: 6 additions & 4 deletions src/config/config.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<?php

return array(
/**
* The parameter to use package built in routes.
*/
'use_built_in_route' => true,

/**
* The parameter to use package built in routes.
*/
'use_built_in_route' => true,

/**
* The pattern to find matching routes. By default it's anything except the root route, i.e. '/'
*/
Expand Down

0 comments on commit e714f7e

Please sign in to comment.