File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ Require the package in your composer setup.
1919composer require zschuessler/laravel-route-to-class
2020```
2121
22- Add the service provider to your app configuration
22+ ** Add the service provider to your app configuration**
2323
2424Add the following line under the ` providers ` array key in * app/config.php* :
2525
@@ -30,14 +30,16 @@ Add the following line under the `providers` array key in *app/config.php*:
3030Zschuessler\RouteToClass\ServiceProvider::class,
3131```
3232
33- Publish the configuration file
33+ ** Publish the configuration file**
3434
3535Run the following command in the root directory of your project:
3636
3737``` php
3838php artisan vendor:publish --provider="Zschuessler\RouteToClass\ServiceProvider"
3939```
4040
41+ ** Use In Layout**
42+
4143You now have access to a shared view variable function ` $generate_route_body_classes ` .
4244
4345Use it in any of your views like so:
You can’t perform that action at this time.
0 commit comments