Skip to content
Sunel Tr edited this page Sep 15, 2015 · 5 revisions

To install this package you will need:

  • Laravel 5
  • PHP 5.5

You must then modify your composer.json file and run composer update to include the latest version of the package in your project.

"require": {
    "sunel/laravel-layout": "0.1.*"
}

Or you can run the composer require command from your terminal.

composer require sunel/laravel-layout

At this time the package is still in a developmental stage and as such does not have a stable release.

Once the package is installed you need to open app/config/app.php and register the required service provider.

'providers' => [
    Layout\Provider\LayoutServiceProvider::class
]

Lastly you will need to publish the configuration of the package and modify it to suit your needs. This is explained in more detail in the next chapter.

$ php artisan vendor:publish --provider="Layout\Provider\LayoutServiceProvider" --tag=config

Configuration →