scalability



Laravel blade structure for scalable projects

  • avatar
  • 4.7K Views
  • 2 Likes
  • 5 mins read
Preview post image

Projects tend to grow in size and level of complexity resulting in more and more files. A good base structure may help creating developer-friendly, maintainable and scalable product. Blade is a simple and powerful templating engine included with Laravel. Unlike some PHP templating engines, Blade does not restrict you from using plain PHP code in your templates. In fact, all Blade templates are compiled into plain PHP code and cached until they are modified, meaning Blade adds essentially zero overhead to your application. Blade template files use the .blade.php file extension and are typically stored in the resources/views directory.

Repository cache in Laravel

  • avatar
  • 1.3K Views
  • 1 Like
  • 11 mins read
Preview post image

In modern web applications, optimizing data retrieval is crucial to improving performance and user experience. One common practice is caching database queries to reduce redundant calls to the database. While Laravel offers built-in caching features, in some cases, you may want to implement custom repository caching manually to better control your caching mechanism. This article will walk you through implementing repository caching in Laravel 12, explaining the steps involved and how to achieve better performance in your application.

Tag-based cache inside Laravel repositories

Available to Premium members only
  • avatar
  • 92 Views
  • 12 mins read
Preview post image

Working with cache can drastically improve the performance of an application, especially when dealing with data that doesn't change too often. While Laravel provides solid support for caching through multiple drivers, it doesn't offer native support for cache tags. To work around this limitation, we'll integrate Symfony's Cache component, which brings tag support and fits well into the repository pattern we've already established. In this article, we'll build on the existing structure and focus on using cache tags to group and clear related data more efficiently.

 Join Our Monthly Newsletter

Get the latest news and popular articles to your inbox every month

We never send SPAM nor unsolicited emails