Laravel Mix



Clean unused CSS with PurgeCSS & Laravel Mix

  • avatar
  • 7.7K Views
  • 4 Likes
  • 5 mins read
Preview post image

PurgeCSS is a tool to remove unused CSS. When you are building a website, you might decide to use a CSS framework like TailwindCSS, Bootstrap, MaterializeCSS, Foundation, etc... You will only use a small set of the framework but a lot of unused CSS styles will be included.

PurgeCSS analyzes your content and your CSS files. Then it matches selectors used in your files with the ones in your content files. It removes unused selectors from your CSS, resulting in smaller CSS files. PurgeCSS comes with a JavaScript API, a CLI and plugins for popular build tools.

Domain Driven Design with Laravel 9

  • avatar
Preview post image

Modern web frameworks teach you to take one group of related concepts and split it across multiple places throughout your codebase. Laravel is a robust framework with a big community behind it. Usually it's standard structure is enough for most starting projects.

Building scalable applications, instead, requires a different approach. Have you ever heard from a client to work on controllers or review the models folder? Probably never - they ask you to work on invoicing, clients management or users. These concept groups are called domains.

Interfaces binding with implementations in Laravel

  • avatar
  • 16.8K Views
  • 17 Likes
  • 9 mins read
Preview post image

An interface is a programming structure that allows the computer to enforce certain properties on an object. In object oriented programming, an interface generally defines the set of methods that an instance of a class that has that interface could respond to. It is actually a concept of abstraction and encapsulation.

 Join Our Monthly Newsletter

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

We never send SPAM nor unsolicited emails

Install PHPStan and configure for Laravel application

  • avatar
  • 12.4K Views
  • 12 Likes
  • 3 mins read
Preview post image

Unlike compiled languages, in PHP if you make a mistake, the program will crash when the line of code with the mistake is executed. When testing a PHP application, whether manually or automatically, developers spend a lot of their time discovering mistakes that wouldn’t even compile in other languages, leaving less time for testing actual business logic.

Containerizing Laravel Application using Docker

  • avatar
Preview post image

In the world of modern web development, containerization has emerged as a popular approach for packaging applications, providing isolated environments, and simplifying deployment processes. Docker, an open-source platform, has gained significant traction in this regard, allowing developers to encapsulate their applications and dependencies into containers. In this article, we will explore the benefits and steps involved in Docker containerization of Laravel applications, a popular PHP framework.

Domain Driven Design with Laravel 9: User domain

  • avatar
  • 9.6K Views
  • 16 Likes
  • 11 mins read
Preview post image

Modern web frameworks take one group of related concepts and split it across multiple places throughout your codebase. Laravel provides a very clear structure with large variety of tools to make the development easier and faster. Along with the huge community it makes Laravel a great option for most starting projects.

Customize Laravel pagination views

  • avatar
  • 8.0K Views
  • 3 Likes
  • 4 mins read
Preview post image

Laravel is a powerful PHP framework that has gained popularity due to its simplicity and flexibility. One of the features that make it stand out is pagination. Pagination is a technique used to break large datasets into smaller, more manageable pieces, allowing users to navigate through them with ease. By default, Laravel provides a pagination system that works well for most use cases. However, sometimes you may need to customize it to meet specific requirements. In this post, we will explore how to customize pagination in Laravel.

Avoid forms spamming in Laravel 9

  • avatar
  • 7.8K Views
  • 8 Likes
  • 4 mins read
Preview post image

Having a public site with forms can become a headache if we do not prevent spam bots from submitting fake information to our application. Luckily, there is a simple and effective way to defer some of the spam using honeypots. This technique is based on creating a hidden input field that should be left empty by the real users of the application but will most likely be filled out by spam bots.

Create Laravel 10 project from scratch

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

Laravel is an open-source PHP web application framework designed for building web applications following the Model-View-Controller (MVC) architectural pattern. It was created in 2011 and become one of the most popular PHP frameworks used for web development.

Laravel provides developers with a number of powerful features and tools, including a simple and expressive syntax, built-in database migration and schema management, automated testing, and a robust ecosystem of third-party packages. Some of the key features of Laravel include its powerful routing engine, which allows developers to easily define application routes using a simple and intuitive syntax, and its comprehensive ORM (Object-Relational Mapping) system, which makes working with databases and models a breeze.

Using Laravel with an SQLite database

  • avatar
  • 6.3K Views
  • 5 Likes
  • 5 mins read
Preview post image

The fast-paced world of web development requires selecting tools that balance efficiency and scalability. The choice of a suitable database management system plays a pivotal role. SQLite, a lightweight yet powerful database engine, often remains overlooked. When integrated with Laravel, a popular PHP web application framework, SQLite offers developers a reliable solution for building efficient applications.