If you are looking to group by your query results by created_at column and get the total count of records created on each date. Here is how you can achieve that. Consider you have a posts …
Category: Laravel
Here is the detailed tutorial on How to Install Laravel on your Ubuntu Machine running the version 20.04 of Ubuntu. Although there are different ways to get started with the Laravel that includes using XAMPP, using …
I encountered an instance where I was looking to add parameters in the Laravel’s Request Object. You might encounter this when you want to add an additional value to the object before calling the store or …
In this blog post let’s go through the steps involved in building a form in Laravel using VueJS that also has a file input field wherein user can attach an image. This post assumes that you …
In this tutorial, We will cover how to setup a fresh Laravel 7 project along with Vue scaffolding. Let’s get going. # Setup Laravel Project I am using a composer package laravel/installer to set up a …
Laravel Dusk is a free package available in the Laravel ecosystem. In this course, I utilize the package to automate a demo web application and as we go along in the web automation journey we learn how …
I searched around for a simple guide on implementing PayPal Smart Button in a Laravel Website but couldn’t find any. There are a lot of tutorials but they are now outdated as the PayPal API has …
I have been used to calling the AJAX request in my application via jQuery and haven’t got a chance yet to experiment with the latest fetch API of Laravel. There can be a requirement in your …
Here is how you can have multiple where clause in your Eloquent query builder $query->where([ ['column_1', '=', 'value_1'], ['column_2', '<>', 'value_2'], [COLUMN, OPERATOR, VALUE], ... ]) Laravel Eloquent Multiple Where Example This will group the where …
Laravel’s default timestamps are stored in UTC, and if you working with an application in which users who are in a different timezone, they might see a timestamp in the application which does not match the …