4 ms·
Using global variables in a careless fashion is a bad practice indeed. But globals are not universally evil. Laravel uses globals very thoughtfully. Having u
by deweller 8y ago
Using global variables in a careless fashion is a bad practice indeed.
But globals are not universally evil. Laravel uses globals very thoughtfully. Having used the Laravel framework for many years, I agree with many of the choices it has made.
Additionally, Laravel does not force you to use Globals. See https://laravel.com/docs/5.6/requests https://laravel.com/docs/5.6/requests to dig a little deeper.