Tag: Laravel

Laravel 5 Global Routing Package

Łukasz Piotrowski Comments 0

Hi!

Laravel 5 Global Routing gives You possibility making own controllers and access to them via URL.
Similar feature was released on CakePHP.


Laravel – Simple Query Debug

Łukasz Piotrowski Comments 0

Sometimes We must check exactly what query was generated by Eloquent or DB. Unfortunately it's not simple as we can imagine.

The solution might be install laravel-debugbar, but if we want check only one query it's unnecessary to install it.

I'll give You very simple solution :)


Laravel 5 – Load ServiceProvider depend on .env file

Łukasz Piotrowski Comments 0

We have many situations when We need register some ServiceProviders only on development version depends on .env file
Ofcourse You can add entry to config/app.php. But on situation when You don't have Provider on production env it throws errors.
This kind of situation can ocures after adding entry to require-dev sectioncomposer.json file.

The solution is very simple and elegant. It saves our time and many trouble.


Top