Category : Laravel

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
I finally moved a step away from WordPress and now I am using Laravel as the backend for this blog. The blog also got a new frontend design, which is based on Tailwind CSS. Why the move ? I got intr...
Read Article
I always dreaded learning about Mocking in testing assuming it would be something too complex, and I never really had the requirement of using Mocking in my Laravel tests. But now since I have a ba...
Read Article
Introduction Since we are looking into the foundations of working in a team, which also includes defining a set of rules for formatting files. In the previous article, we discussed Fixing the st...
Read Article
If you have a JSON column in your migrations, and you are looking to update the value of one of its fields. Here is how you can do it $booking->update([ 'stripePayment->paymentStatus...
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
Introduction While working on a team consisting of multiple developers, it's really important to have a predefined set of rules about different aspects of the project. Whether it is about the authori...
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
Introduction Database Migrations in Laravel provide a convenient way to interact with the database and help us properly structure our database, so working with the migrations and database is quite si...
Read Article