Recent Posts

Laravel Multiple Database Connections

Hi devs, in this quick tip, i’ll show you how to add multiple database connections to your laravel project. let’s see how we can do this. First, add second database connection variable in .env file. Next, define database connection in config/database.php file.   Now, we are done with configuration. We ...

Dynamically Add Middleware in Laravel

Hi guys, we all know how to to add middlewares in the kernel, but what if we want to add middleware only under certain conditions. So, in this quick tip, i’ll show you how to add dynamic middleware in laravel. In this example, i want to activate middleware ...

Backup & Restore (Storage & Database) and Scheduling With Cron Job In Laravel

Hi guys, in this tutorial, i’ll show you how to easily manage backups of your laravel application with possibility to restore any backup, and also schedule automatic backup with cron job. let’s dive in.   Step 1 : Add PclZip library PclZip is a PHP library that manage ...

React Native Bottom Sheet for Android & IOS

Hi Guys, in this tutorial, i will show you how to integrate a performant interactive bottom sheet with fully configurable options in react native works for both Android and IOS. We will use gorhom/react-native-bottom-sheet package. Let’s dive in : Package Features 🌟 Modal presentation view, Bottom Sheet Modal. Smooth interactions ...

Send Email with Attachment in Laravel

Hi coders. In this tutorial, i’ll show you how to send email with attachment using Mailable class in laravel . You can simply send file in mail by using the attach() method. In this example, i will simply add files as attachment with sending email. Let’s dive in. ...

Validate Custom Date Format with Laravel Validator

Hi artisan, I’m going to share with you how to validate a custom date format in Laravel. In this example, you will see the use date validation rules that is provided by Laravel Let’s dive in: date date_format after:date after_or_equal:date before:date before_or_equal:date 1- Date Validation 2- Date Validation ...

How to check request is ajax or not in Laravel

hi guys, I will let you know how to detect if request is ajax or not in Laravel. Sometime you need to check if request is ajax then response data only and if request is not ajax then response complete view in your application. By using ajax() method in Laravel, ...

Full Text Search On Laravel

Hello artisans, In this tutorial, we will learn how to do Full Text Search On Laravel. We are gonna use nicolaslopezj/searchable Package for full-text search. Searchable Package is a trait that adds a simple search function to Eloquent Models. For more information, you can click on this card bellow. ...