Support the ongoing development of Laravel.io →

4,311 Threads

Four Tables - Filter Last Table on Latest Record

I have the following Table Structure A User hasMany Yards A Yard hasMany Hives A Hive hasMany HiveDa...

0 Likes
0 Replies

DB select get only first row

I have a row query \DB::select("SELECT * FROM table_name WHERE id=$id"); the result shoul...

0 Likes
5 Replies
Solved

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

Listening for event error

Basically, i'm sending out an event; Pusher is receiving it on their debug console. YET my other bro...

0 Likes
1 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

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

Get accessor attribute within collection

Hi. I have a collection from a model and there is an extra attribute to generate the url for this el...

0 Likes
1 Replies

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

Changing default columns and table in Laravel Auth 5.2

Ok I am having this problem for a week now. I am following the naming convention of our company in c...

0 Likes
2 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

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

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

Problem when try to retrieve data from 1 table which depend on other table.

Im pretty new with laravel, can you guys help me to solve my problem, please. I have 5 tables: skill...

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.