Easy way to manage widgets in laravel 5.1

Are you the type of person that writes widgets by hand in view files or do you find yourself looking for the best place to store links to pages on your website? then this is for you!

Installation

Open your composer.json file and add the new required package.

    "pingpong/widget" : "~2.0"

Next, open your terminal and run composer update.

After composer updated, add new service provider in config/app.php :

    'Pingpong\Widget\WidgetServiceProvider',

And add facade in the same file

    'Widget' => 'Pingpong\Widget\WidgetFacade'

Done.

 

About the author

Deven Rathore

I'm Deven Rathore, a multidisciplinary & self-taught designer with 3 years of experience. I'm passionate about technology, music, coffee, traveling and everything visually stimulating. Constantly learning and experiencing new things.

Pin It on Pinterest

Shares