Product belongs to many postings, and I want to sum multiple columns. This example working correctly...
Hello, I've been using a tool for the last decade which allows me to create an ERD for my projects:...
I am creating 2 dropdown with department and specialty. Specialty is linked with Department. When sa...
As part of a Laravel project, I plan to create a site that allows users to add video games to their...
I have an issue that I'm running into and can't seem to find an answer or figure it out myself. So h...
try to use following in Laravel 6 but the 'relations_type' column in 'contactable' table does not re...
DB::table("rates") ->selectRaw("sum (datediff( day, case when $start_date > sta...
I using eloquent model in lumen scheduler but show error Call to a member function connection() on n...
harshalone liked this thread
I have a project model where I want to associate roles and then users. The roles is a subset of the...
After I update my model, the cast is ignored and an old value that comes from classCastCache is show...
https://github.com/bastinald/laravel-automatic-migrations Laravel Automatic Migrations Automatic mig...
Hi everyone, name is Lucas, first post here and I'm learning Laravel and loving it. I'm working in a...
isaacongoma liked this thread
I saw this thread from 7 years ago and thought I should update the answer. To improve on viquanghoa...
I have a 'projects' table that has a polymorphic relationship with a 'departments' table that allows...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminat...
i'm trying to get an authenticated user document shares with their relation in laravel $totalDocShar...
I am making laravel project. There is need to merge two complex eloquent queries, not query result....
I want to distinguish 2 queries when one field is null or not null. Let me see one table named 'repo...
I wanna to show common users verified, not out of date and unbanned: a) all songs b) songs by title...
I'm trying to convert an SQL Query to a relationship in Eloquent, and having great difficulty. This...
Solutions given in the past year. Excluding solutions from thread authors.
Select a tag below to filter the results
The Laravel portal for problem solving, knowledge sharing and community building.
The community