2017 © Pedro Peláez
 

library body-class

quick browser body class service provider for laravel 5

image

rtmatt/body-class

quick browser body class service provider for laravel 5

  • Wednesday, February 3, 2016
  • by RTMatt
  • Repository
  • 1 Watchers
  • 0 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Body Class

Laravel Service provider built around Agent to add browser classes to the body HTML tag., (*1)

Installation

Install using composer:, (*2)

``` bash, (*3)

$ composer require rtmatt/body-class, (*4)


Add service provider to ```config/app.php ``` ``` php Rtmatt\BodyClass\BodyClassServiceProvider::class

Usage

This requires your layout file to be /resources/views/layouts/main.blade.php. Support for multiple or other layouts may come in the future., (*5)

In file mentioned above, add the following to your body tag:, (*6)

``` php, (*7)

<body{!! ($body_class) ? ' class="'.$body_class.'"' : '' !!}>, (*8)

```, (*9)

You are good to go!, (*10)

The Versions

03/02 2016

dev-master

9999999-dev

quick browser body class service provider for laravel 5

  Sources   Download

MIT

The Requires

 

03/02 2016

1.0.1

1.0.1.0

quick browser body class service provider for laravel 5

  Sources   Download

MIT

The Requires

 

03/02 2016

0.1.0

0.1.0.0

quick browser body class service provider for laravel 5

  Sources   Download

MIT

The Requires

 

03/02 2016

1.0.0

1.0.0.0

quick browser body class service provider for laravel 5

  Sources   Download

MIT

The Requires