python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Exclude Relation Data Based on Condition
I am working on laravel many to many relations. I have two tables and a pivot table. The table structure is something like this:
Table studies:
-id
-name
-code
Table sites:
-id
-name
-type
Pivot Tab...
Amir Khan
Votes: 0
Answers: 1
Display image with relations in Laravel
I want to display through the user's photo relationships but it does not show
And this photo also exists, but when I take dd(), it says null
this is Blade code And they all work except the user_ima...

user16426192
Votes: 0
Answers: 1
One-To-Many-Relationship: How to sort data based on latest payments and based on their latest order ids
I have an Online Store project written in Laravel 5.8 and I can properly get the latest orders like this:
$orders = Order::query()->latest('orders.created_at');
And at the Blade:
@forelse($orders ...
memite7760
Votes: 0
Answers: 3