Laravel

How to use Repository Design Pattern in Laravel

How to use Repository Design Pattern in Laravel

The Repository Pattern is a technique for separating an application’s business logic from its data access layer. By developing a repository class in Laravel that has methods for managing data operations and using that repository class in your controllers rather than directly interacting with the model, you can implement the Repository Pattern. Here is a simple example of how the …

Read More »

Laravel whereIn & whereNotIn Eloquent Query

Laravel whereIn & whereNotIn Eloquent Query

For the creation of web applications, many developers use the Laravel PHP framework. The development process can be sped up and made more effective with the wide range of tools and capabilities it offers. One of these characteristics is the object-oriented syntax interaction with the database that Eloquent ORM (Object-Relational Mapping) enables developers to use. In this article, we will …

Read More »

How To Install Composer On Ubuntu

How To Install Composer On Ubuntu

A dependency management solution for PHP called Composer makes it simple for developers to manage and install packages for their PHP projects. The steps to install Composer on Ubuntu will be covered in this article. Install Composer On Ubuntu First, we need to ensure that our package list is up-to-date by running the following command in the terminal:  sudo apt-get …

Read More »

Laravel Query Optimization

Laravel Query Optimization

A well-liked PHP framework for creating web apps is called Laravel. Laravel’s robust query builder, which makes it simple to connect with databases and get data from tables, is one of its core features. However, it becomes more crucial to monitor the efficiency of your database queries as your data volume increases. We’ll talk about various pointers and techniques for …

Read More »

Laravel Copy Record using Eloquent Replicate

Laravel provides an elegant and simple way to copy a record using the Eloquent replicate method. This method creates a copy of the original model and saves it to the database, allowing you to easily create a new record with the same values as an existing one. To use the replicate method, first retrieve the model you want to copy …

Read More »

Setup Laravel Project with Docker Nginx & phpMyadmin

Setup Laravel Project with Docker Nginx & phpMyadmin Docker provides a tool called Docker Compose for defining the setup process of a docker container. Docker Compose allows developers to define the infrastructure of their application, services, volumes, networks, and any dependencies in one file called the docker-compose file. It can manage multiple Docker containers through its commands such as docker …

Read More »

Laravel Meilisearch Integration

Laravel Meilisearch Integration

In this post, you’ll learn how to integrate meilisearch with laravel Laravel Meilisearch Integration MeiliSearch is an open source search-engine that will improve search experience. Install MeiliSearch cURL curl -L https://install.meilisearch.com | sh ./meilisearch MeiliSearch Dashboard MeiliSearch Doc https://docs.meilisearch.com/learn/getting_started/quick_start.html Install Laravel Scout install Laravel Scout using composer composer require laravel/scout After installing Scout, you should publish the Scout configuration file …

Read More »