
Using UUIDs in Laravel Models
In this post, we will look at how we can use UUIDs in Laravel Eloquent models instead of incrementing Ids.
The archive keeps all published markdown posts accessible beyond the homepage's latest twelve.

In this post, we will look at how we can use UUIDs in Laravel Eloquent models instead of incrementing Ids.

In this post, I will be going through Laravel Eloquent's whereBetween method which verifies that a column value is between a given range.

In this post, I want to share a quick tip about how to get the last inserted ID inLaravel. While working on your Laravel application, you often need...

In this tutorial, we will learn how to configure your Laravel application with Sentry for better error logging, tracking, and notifications.

Laravel Collection splice method is very useful when you want to remove a portion of a collection and return the removed section.

In this post, we will look at Laravel Notifications, the most beautiful way of handling notifications for your web application through different channels.

Laravel roles and permissions are the most important part of any Laravel based web application in which you want to add restrictions...

Laravel Collection provides the ability to filter a collection's items by using a key value pair by using where() method.

JWT authentication provides a secure way to transmit data between the client and server. In this post, we will look at how we can create a JWT based API.

Laravel Collection provides an easy interface to work with the PHP array. Today, we will be looking at how we can use the toJson() method.

Cloudways is one of the fastest-growing cloud companies in the market, having its data centers in more than 50+ locations around the world.

Recently Laravel 6 has been released which is the latest LTS release. In this post, we will install Laravel 6 on both Windows and Linux.

Laravel Framework provides a robust mechanism to filter all HTTP requests using the Laravel Middleware classes, the most common example is auth middleware.

Laravel Session plays an important role in any web application, it helps you to save data in session which you can retrieve within your application.

This is the last post of Laravel E-Commerce Application Development series.

This is part 25 of the Laravel E-Commerce Application Development series. In this part, we will add the order management section to our admin area.

This is part 24 of the Laravel E-Commerce Application Development series. In this part, we will complete the payment processing for orders using PayPal.

Laravel redirect is a global helper function of Laravel 6 frameword which can be used to redirect a user to different URL.

This is part 23 of the Laravel E-Commerce Application Development series. In this part, we will start implementing the checkout functionality in our application. I assume you...

This is part 22 of the Laravel E-Commerce Application Development series. In this part, we will start implementing the shopping cart functionality.

This is part 21 of the Laravel E-Commerce Application Development series. In this part, we will start implementing the product details page.

In this part, we will work on the Catalog Listing page which means we will loop through all products under a category.

This is part 19 of the Laravel E-Commerce Application Development series. In this part, we will work on Categories Navigation.

Here are the new features that have been included/excluded in Laravel 6 and how you can take advantage of them in your application.

In this part, we will add the frontend Login & Registration pages to our application.

This is part 17 of the Laravel E-Commerce Application Development series. In this part, we will add the product attributes tab to our product edit view.

In this short tutorial, we will implement the user's model status update functionality using JQuery and Switchery.

Laravel Collection provides a fluent, convenient wrapper for working with arrays. In this post, we will learn about each() method method.

This is part 16 of the Laravel E-Commerce Application Development series. In this part, we will add the product images tab to our product edit view.

Laravel provides amazing features to deal with your database records and soft delete is one of them.

In modern web development, file uploads are one of the most commonly used features and Laravel Storage provides an intuitive way to handle the file storage.

This is part 15 of the Laravel E-Commerce Application Development series. In this part, we will add the Products Section to our admin area.

This is part 14 of the Laravel E-Commerce Application Development series. In this part, we will add the models and migrations for Product.

This is part 13 of the Laravel E-Commerce Application Development series. In this part, we will add the brands section to our backend panel.

This is part 12 of the Laravel E-Commerce Application Development series. In this part will add the admin section for our attribute values using VueJS.

This is part 11 of the Laravel E-Commerce Application Development series. In this part will add the admin section for our attributes CRUD.

Laravel provides CSRF protection out of the box on all your application routes but some time we want to disable the CSRF protection on some routes.

This is part 10 of the Laravel E-Commerce Application Development series. In this part will add the model, migrations, and seed for attributes section.

Laravel Blade components and slots reduce the development time and help us building awesome web applications.

This is part 9 of the Laravel E-Commerce Application Development series, in this part will complete the categories section.

In this part will add the model, migrations and model factory for categories section.

This is the seventh part of the Laravel E-Commerce Application Development series, in this part will add the settings section in the admin area.

This is the sixth part of the Laravel E-Commerce Application Development series, in this part will add the settings section model, migration and seed.

In this post, we will learn about how to use Laravel Collections contains() and containsStrict() method.

This is the fifth part of the Laravel E-Commerce Application Development series, in this part we will create a base controller and repository.

This is the fourth part of Laravel E-Commerce Application Development series, in this part will will implement the admin authentication using Laravel guards.

This is the third part of Laravel E-Commerce Application Development tutorial series, in this part we will set up Laravel Migrations and Seeds.

If you are making a lot of changes to your views and configurations then you should run the Laravel clear cache command in your terminal.

This is the second part of Laravel E-Commerce Application Development tutorial series, in this part we will setup the static assests using Laravel Mix.

This is the first part of Laravel E-Commerce Application Development tutorial series, in this part we will create a new Laravel application and set up a Git repository for our...

In this E-commerce Application Development Laravel Tutorial series, we will be creating a complete e-commerce application using Laravel 5.8 with VueJS for frontend.

Laravel Model Factories allow you to generate fake data for your eloquent models. Model Factories are very useful for testing and seeding fake data.

Laravel Collection provides a fluent, convenient wrapper for working with arrays. In this post, we will learn about collapse() method.

In this post, we will look at how we can use the times() method to quickly create numbers of Laravel Collections.

In this post, we will look at how we can use the Adapter Pattern in Laravel. We will look at the usage and benefits of this pattern using a real-world example.

In this post, we will look at one of the mostly yet advanced relationship type Many To Many offered by Laravel Eloquent.

Laravel Macros are a great way of extending Laravel's core classes and add extra functionality required for your application.

Laravel provides a fluent utility to compile all your frontend assets like stylesheets and scripts called Laravel Mix.

Laravel Blade is one of the most powerful and advenced templating engine as compared to other templating engine such as smarty and twig.

This is the fifth part of our Laravel Package Development series. In this post, we will start adding the CRUD (Create, Read, Update, Delete).

Laravel Telescope is a debugging tool by Laravel. It is free and available on Github, you can install it by adding it as a Composer dependency.

This is the fourth part of our Laravel Package Development series. In this post, we will start adding shopping cart methods to Session class.

We all know that Laravel is an awesome framework for web application development. One of the most awesome parts of this framework is Laravel Collection.

This is the third part of our Laravel Package Development series. In this post, we will add a configuration file to our shopping cart package.

In this post, we will look at how we can use the map() method to perform some action on each element of Laravel Collections.

In the last post Laravel Package Development Part 1 – Introduction, we layed out a basic structure of package.

In this series Laravel Package Development, we will look at how we can create Laravel Packages and use them.

In this post we will look at how wrap and unwrap methods can be used when dealing with Laravel Collections.

In this post, we will look at how we can create one to many relationship in Laravel with an example.

This post will give you a quick overview of what JavaScript Arrays are and how we can utilize them to store data.

In this post, we will look at how we can create one to one relationship in Laravel with an example.

Laravel Collections are one of the most powerful features of Laravel. Basically, collections are PHP arrays but it's an Object Oriented approach.

Laravel Collections Illuminate\Support\Collection class provides number of static helper functions that help us to create new instance of collection.

When it comes to blocking bots to post malicious content, Google reCAPTCHA is an awesome solution.

Routing is one of the core elements of any web framework. Laravel Routing is very easy and simple to use because of its flexibility.

Laravel Mail Viewer is a package by Harish Toshniwal which enables you to view all the mailables in your Laravel application from a single page.

Laravel Helpers are very handy in Laravel application development probably you have used some of them throughout the development of your application.

Laravel Eloquent is a feature-rich ORM (Object Relational Model). You can not find all the features in official documentation of Laravel Eloquent.

In this post, we will look at how we can create custom validation rules for Laravel Form Requests. Laravel provides an easy way to create custom validation rules.

Laravel Queues allow you to delay a time-consuming task until a later time. By delaying the time-consuming task, you can improve the Laravel performance.

In an Eloquent model, you can set mutator and accessor on your model properties. You might want to check if a mutator or accessor exists.

Laravel Eloquent provides a convenient way to change the data type of attributes using attribute casting. Let's explore the Laravel Eloquent this feature.

Today, I will show you guys how to add Laravel Image Upload functionality into your application with validation. This one will be a step by step guide.

Laravel Model Observers are very powerful yet useful feature and can make your codebase more maintainable.

Laravel provides an incredible way to handle form requests. Laravel form request handling is very crucial part of any application.

Laravel Blade is a great templating engine which is simple to learn and powerful enough to create modern applications.

In this post, I will take a quick look at some of the new features or important changes that you should be expecting in Laravel 5.8.

Laravel Collection is the best part of the Laravel framework. In this post we will explore the Laravel Pluck method of the Laravel Collections.

Laravel applications which depend heavily on database interaction using Laravel Eloquent often create performance issues.

In this post, I will show you how we can store extra information in a JSON field and make a translation ready model with JSON type data. So let's dive into.

Today I am going to tell you how to send a simple email with Gmail SMTP connection using Laravel Mailable class which was introduced in Laravel 5.3.

In this post I will show you how we can use single action classes in Laravel Controller.

Laravel Policies are a great way to protect actions on your Eloquent Model. Laravel Policies are the part of Laravel Authorization.

In this article, we are going to look into three of the Laravel Eloquent features attributes casting, accessors and mutators.

In this post, I will show you how we can create a multilingual website using Laravel Localization. There are different ways of using localization.

There are many guides available on internet concerning deploying Laravel on shared hosting, but they are not very precise.

In this post, I'm going to show you how you can create scheduled tasks in Laravel and set up cron jobs on the server to run all your tasks.

PHP Traits are very helpful in PHP Programming, Trait means a class can only inherit from one other class. However, a lot of the time it would be beneficial to inherit from...

The Repository Pattern in Laravel is a very useful pattern with a couple of great uses. One of the biggest advantage is the abstraction that it provides.

Custom Facades provide a static interface to a class that gives access to an object from the service container, let's look at Laravel's Custom Facades.

In this post, we will look at how we can use the eloquent touch feature in Laravel and update the timestamps without updating the model record.

The service containers concept in Laravel is one of the most misunderstood parts of the framework.

Service providers are the central element of the initialization process where all the relevant and required code is loaded by PHP.

Laravel’s Query Builder has a method get() to actually get the rows, but what if we want to get random rows in Laravel without using raw SQL.

Have you ever been in a situation, where you have to share same data to multiple views in Laravel application. Here come Laravel View Composer to rescue you from such situation.

Filtering database records in Eloquent Models is a common task and can be achieved using different methods. Let me show you, how I will do model filtering.

In this post, I will be listing some of the best Laravel helpers functions which I use every day and make my developer easier.

In this post, we will understand what is Laravel Eager Loading and what is Lazy Loading and how they work behind the scene.

In this post, we will look at how we can utilize the Laravel's flash helper function to show toastr notifications in our application.

Sometimes you run into a situation when you have to reuse some of the conditions more, let's see how to easily integrates scopes in Laravel models.

When you are developing a project in Laravel, you will need to install and know how to use the composer to manage your third-party dependencies.

There are tons of packages available for Laravel in the community for extending the functionality of the Laravel framework and for blade directives.

Today I will share 13 tips and show you how I optimize Laravel application and imporove laravel performance.

Every PHP framework has its own implementation, features, and capabilities. In this post, we will look into what is Laravel and why you should give a try.

I’m going to try and keep this as jargon-free as possible so it’s easy for beginners to understand the Solid Design Principles in PHP.