#laravel #php #security #web

Serving Large Private Files from Laravel

Serving Large Private Files from Laravel (image by pexels) Introduction Let’s suppose you need to show a set of large files to a small group of users. Say a few hundred photographs, 6000 x 4000 JPEGs of about 7 MB each, straight from the camera, and only the members of a team may open them. Nobody else, logged in or not. The reason you want to serve the originals might be scientific: the users need to zoom in and inspect details, so downscaling the images is not always a solution. ...

#git #productivity #web #laravel

Mastering Code Quality in Laravel: Pint with Git Hooks and Docker

Mastering Code Quality in Laravel: Pint with Git Hooks and Docker (image by pexels) Introduction As developers, we all know how important clean, consistent code is for maintaining a large-scale Laravel application. Not only does well-formatted code boost readability, but it also ensures team-wide consistency and helps avoid pesky formatting debates during code reviews. Enter Pint, a powerful tool introduced by the Laravel ecosystem to automatically format PHP code according to opinionated best practices. ...

#web

PHP 8 Is here! A step in the right direction?

post photo by pexels Introduction PHP 8 is finally here! PHP 8.0 is a major update of the PHP language. It contains many new features and optimizations including named arguments, union types, attributes, * *constructor property promotion**, match expression, nullsafe operator, JIT, and improvements in the type system, error handling, and consistency. In this article, we will review all the new features and changes, and share some thoughts about each of the changes, as well as on the roadmap that PHP seems to be carving ahead. ...