Support the ongoing development of Laravel.io →

4,599 Threads

Trying to get property of non-object from eloquent Relationship

I have used a relationship that returns data but when i use it it throws error "Trying to get p...

0 Likes
1 Replies
Solved

The Eloquent subquery is not executed correctly

Hi, frinds Can U help me in my case with eloquent subquery? ) I have the code in my model: return Ne...

0 Likes
1 Replies

get data from Pagination

i have $users = User::paginate(10); how do i get the data when i pass it to my blade template. e.g:...

0 Likes
7 Replies

Reference/Guide of Methods of Model Class

Guys how do I get complete Reference of Methods of Model Class?? like where(), Get(), first(), etc a...

0 Likes
2 Replies
Solved

Database Error Migrate

after php artisan migrate, theres an error I got below: [Illuminate\Database\QueryException] SQLSTAT...

0 Likes
4 Replies
Solved

Eloquent Groupby with Rollup

How do I use the mysql rollup feature with laravel eloquent? I did try a few but not able to get the...

0 Likes
1 Replies
Solved

Why is the hidden field in the Laravel Model not working when set dynamically?

I have described in detail here. https://stackoverflow.com/questions/42827731/why-is-the-hidden-fiel...

0 Likes
0 Replies

Eloquent - relationship pivot table attributes

Hey, I am trying to create simple shopping cart / order module and I've decided to connect orders an...

0 Likes
2 Replies
Solved

Class 'Eloquent' not found

I am a beginner to laravel. I have just downloaded the latest version of laravel and deployed on my...

0 Likes
18 Replies

Several Eager Loading with constraints

I have this nice query: $posts = Post::with('user','comments','comments.user', 'tags') ->take(10)...

0 Likes
4 Replies
posted 7 years ago

Retrieving latest entry from recursive relationship

I am not sure if the title is phrased correctly, but I will try to explain it here. For context, her...

0 Likes
0 Replies

dynamic Form::select not being included in the post data

I have am trying to add a select box that is built from a database query to an existing form. The se...

0 Likes
0 Replies

Displaying current class in laravel

What I'm trying to do is have the current class style to be shown on the menu that the page is on. F...

0 Likes
1 Replies

Route model with relationship

hi all I'm making a blog and i have a question : for the view post page, i use this route : Route::g...

0 Likes
4 Replies
Solved

defining a relationship on model when the relationship has foriegn keys on two tables

I have a table with a boolean column based on the boolean value. The boolean value true or false to...

0 Likes
0 Replies
posted 7 years ago

i have problem with migration when i use php artisan migrate show below error :

hi i have problem with migration when i use php artisan migrate show below error : windows command l...

0 Likes
1 Replies

Laravel 5.4: $this->route('table') doesn't work in Request validation rules

In Laravel 5.4 doesn't work $this->route('table') that I use when I want to editing data in table...

0 Likes
0 Replies

DB::select not return value as expected

Hi, I'm having problem to view data using db::select. Here is my full sql statement [Tested and retu...

0 Likes
2 Replies

No Chinese characters when i create a PDF

Hey guys, In Laravel 5.4 i am using TCPDF to generate a PDF with Data from Database. Very simple: It...

0 Likes
0 Replies

Thanks to our community

Solutions given in the past year. Excluding solutions from thread authors.

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.