Laravel allows connecting multiple databases with different database engines. Laravel has inbuilt support for multiple database systems. While developing a web application sometimes we need to use multiple databases because of project requirement or large scale …
Author: Ambika Sahni
Implicit Route Model Binding in Laravel Implicit Route Model Binding is a powerful feature in Laravel that can save your time and effort when building web applications. It allows you to automatically inject model instances into …
Livewire is a popular package for Laravel developers that enables them to build dynamic interfaces with minimal JavaScript. In this blog, we’ll go through the steps of installing Livewire on a new Laravel 10 project from …
when we are using @push('scripts') in laravel livewire components blade file. @push('scripts') <scripts> // Your JS here. </scripts> @endpush Then following lines need to be added in layout file app.blade.php for @push('scripts') to work. Add these …
Sometimes we need to check the current URL of requests in our application. Either we need to check the complete path or a specific string of current URL. It can be done easily using following methods …
Laravel provides different way to pass data in view files. Data can be passed to view either from controller or directly from route in web file. For simpler view where not much calculation is needed on …
In this tutorial we will see the use of Eloquent Pluck method to fetch specific key values from model and populate values into Select box. pluck() method is for Laravel Collection and more frequently for Eloquent …
Here we will see how we can add a new attribute in an eloquent model. Sometimes When converting models to arrays or JSON,we require additional information based on some calculation/manipulation on columns of models, in that …
Here we will see the maintenance mode and maintenance page customization in Laravel in details. We often require maintenance to be done for our project. Laravel provides easy commands for the same. Using “artisan down” we …
In this article we will take a look on how we can build SQL queries with multiple ‘AND’ and ‘OR’ where statements using Eloquent ORM. Let first start with the simple Where Clauses You may use …