There are some criticism [see below] to the Laravel's extensive use of facade, which seems is an anti-pattern, e.g.
Singleton "facades" only upside is that they are relatively "easy to use", but technical debt introduced from such shortcuts is hard to even estimate.
Sample code:
$value = Cache::get('key');
So, using the above example code, can anyone show me how this code can be better written in PHP, if we are not using facades?
Aucun commentaire:
Enregistrer un commentaire