Laravel helper to check if a connection works.
You can try to make one of the most basic operations in database an check for error using try/catch:
Do you know how to create helpers? no then see the following recipe http://laravel-recipes.com/recipes/50/creating-a-helpers-file
For example you could show in your dashboard app a warning message if your connection not works.
As me you can create your own custom packagist project with your helpers see my project at
and remember this is not only useful for Laravel it could be used in any other PHP project!
Acacha helpers is available in any Laravel project that use adminlte-laravel project:
adminlte-laravel - A Laravel 5 package that switchs default Laravel scaffolding/boilerplate to AdminLTE template and…github.com
Please check the demo: http://demo.adminlte.acacha.org/