Laravel Macros – Extending Laravel’s Core Classes
LaraShout | Learn Everything
by LaraShout
1y ago
Laravel Macros are a great way of extending Laravel’s core classes and adding extra functionality required for your application. Obviously, we can extend Laravel’s core classes but macros provide a way to add functionality to classes you don’t own. In this post, we will be looking at how we can use Laravel Macros and which […] The post Laravel Macros – Extending Laravel’s Core Classes appeared first on LaraShout ..read more
Visit website
Using Scopes in Laravel
LaraShout | Learn Everything
by LaraShout
1y ago
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. Laravel provides a solution for wrapping your conditions into a readable and reusable statement, called Scopes. In this post, I’ll show you how to easily integrates scopes into your […] The post Using Scopes in Laravel appeared first on LaraShout ..read more
Visit website
Using UUIDs in Laravel Models
LaraShout | Learn Everything
by LaraShout
3y ago
In this post, we will look at how we can use UUIDs in Laravel Eloquent models instead of incrementing Ids. Before diving into this tutorial, we need to understand what UUIDs are, how they are formed, and what are the implications of using them in your application. What are UUIDs? UUIDs stands for Universally Unique […] The post Using UUIDs in Laravel Models appeared first on LaraShout ..read more
Visit website
Using whereBetween Query in Laravel 8
LaraShout | Learn Everything
by LaraShout
3y ago
In this post, I will be going through Laravel Eloquent’s whereBetween() method which verifies that a column value is between a given range. I will be sharing some very simple whereBetween() examples using this method to filter down our database records. The below example will show you how to perform Laravel whereBetween queries with the […] The post Using whereBetween Query in Laravel 8 appeared first on LaraShout ..read more
Visit website
Using whereBetween Query in Laravel 8
LaraShout | Learn Everything
by LaraShout
3y ago
In this post, I will be going through Laravel Eloquent’s whereBetween() method which verifies that a column value is between a given range. I will be sharing some very simple whereBetween() examples using this method to filter down our database records. The below example will show you how to perform Laravel whereBetween queries with the […] The post Using whereBetween Query in Laravel 8 appeared first on LaraShout ..read more
Visit website
Laravel 8 Get Last ID of an Inserted Model
LaraShout | Learn Everything
by LaraShout
3y ago
In this post, I want to share a quick tip about how to get the last inserted ID in Laravel. While working on your Laravel application, you often need to get the recently added model ID to assign it to some other model or processing data. You can achieve this in different ways and also […] The post Laravel 8 Get Last ID of an Inserted Model appeared first on LaraShout ..read more
Visit website
Laravel 8 Error Logging using Sentry
LaraShout | Learn Everything
by LaraShout
3y ago
In a production environment, it would be great to get an instant alert if any error occurred in your application. If you are part of a big team, then it would be ideal that the alert will be passed on to the right person to resolve the issue. Imagin if some error occurred in your […] The post Laravel 8 Error Logging using Sentry appeared first on LaraShout ..read more
Visit website
Laravel Collection – Using splice() Method to Remove Items
LaraShout | Learn Everything
by LaraShout
4y ago
Laravel Collection splice method is very useful when you want to remove a portion of a collection and return the removed section. This method takes three parameters: $offset, $length and $replacement. The $offset dictates the splice method where to begin when removing the items from a collection. If the $offset is negative, items will be […] The post Laravel Collection – Using splice() Method to Remove Items appeared first on LaraShout ..read more
Visit website
Laravel Collection – Using splice() Method to Remove Items
LaraShout | Learn Everything
by LaraShout
4y ago
Laravel Collection splice method is very useful when you want to remove a portion of a collection and return the removed section. This method takes three parameters: $offset, $length and $replacement. The $offset dictates the splice method where to begin when removing the items from a collection. If the $offset is negative, items will be […] The post Laravel Collection – Using splice() Method to Remove Items appeared first on LaraShout ..read more
Visit website
Laravel Notifications – The Ultimate Guide
LaraShout | Learn Everything
by LaraShout
4y ago
The Laravel Notification system allows us to send notifications to users through different channels. In this post, we will look at Laravel Notifications, the most beautiful way of handling notifications for your web application. What are Notifications? During web application development, you often need to notify users about different changes or actions. It could be […] The post Laravel Notifications – The Ultimate Guide appeared first on LaraShout ..read more
Visit website

Follow LaraShout | Learn Everything on FeedSpot

Continue with Google
Continue with Apple
OR