{ PHP snippets }

Laravel Shots

Laravel Shots @LaravelShots

When you just want to display a file (an img for example) in the response & not force user to download it, use the "file()" method. #laravel

Jason McCreary

Jason McCreary @gonedark

? Simple, but forgotten refactors which focus your code. Try it when you see pairings of control flow and return… Applies in many languages. https://t.co/8sgDxcAYtk

PHP