python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How to get a collection based on column from another collection?
Let's say I have a collection of Cars and a collection of Accidents. Wherein the Accidents collection, there is a column car_id, which specifies what car has had an accident. What would be a fix to th...
Masofke
Votes: 0
Answers: 2
Carbon add hours issue
I'm struggling to understand why Carbon addHours() is not returning the proper time.
This is what i have in my controller :
public function create(Request $request)
{
$locationId = $reque...
Gianmarco
Votes: 0
Answers: 2
Laravel component class attribute not working with tailwindcss
I am trying to pass an arbitrary class for bg image bg-[url('/img/footer-artist-pics.jpg')] for a laravel component but classes for bg-image is not added by tailwindCss JIT.
<x-section class="...
Saqueib
Votes: 0
Answers: 2
In Laravel Eloquent, how do you UPDATE a model with a cast encrypted field in a table with a composite primary key?
I finally found out how to update data in a table with a composite primary key in Laravel. This is how. (Let's say the Vehicles table has a composite primary key of "make" and "model&q...
Magmatic
Votes: 0
Answers: 2