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)
BadMethodCallException Call to undefined method App\Models\User::role()
I code a attendance employee system to load reports of time employers
i got below error
What should I do to solve this problem?
BadMethodCallException
Call to undefined method App\Models\User::role(...

Mohammad Reza Rezaei
Votes: 0
Answers: 2
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
Laravel hasMany with json field
I've been trying to relate two models with laravel eloquent, the services model and the invoices model, in the invoices model I declare a column where the id's of the services are stored as array, for...
Joseph Aguilar
Votes: 0
Answers: 0
Laravel Seeding - How to share a foreign key to child
I want to share user_id to the Payment factory. I need it.
My DatabaseSeeder's run function's content:
\App\Models\User::factory()->count(10)->has(
\App\Models\Client::factory()->count(30...
Oybek Odilov
Votes: 0
Answers: 0