Posts by Author : Ambika Sahni

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...
Read Article
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 adde...
Read Article
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...
Read Article
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 o...
Read Article
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 frequent...
Read Article
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...
Read Article
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 sam...
Read Article
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 the...
Read Article
Often in your laravel application you are loading and fetching the results on the database which doesn't necessarily needs to be fetched on every page reload. Query that takes longer amount to execute...
Read Article
When you have an ajax response which in the array format, and you have to loop through the result and display them in the tabular format. Here is the simple code approach to loop through ajax respo...
Read Article