Support the ongoing development of Laravel.io →

4,311 Threads

Unable to save builder in session to append to queries later

I am terrible at explaining so I will do my best in point form: Each page queries a list of data Us...

0 Likes
0 Replies

OneToMany - Not Showing the data but the full object

Hey there, I am stumped on why my query is sending me back the full object when I do $date->exhib...

0 Likes
5 Replies
Solved

Select every row between two dates.

Hi, I am building a report system and we need to make overviews, statistics and others like that. Us...

0 Likes
1 Replies

soft deleted record resulted in relation

Hi everybody i have two model which called Department and Course, every dept has many courses, and c...

0 Likes
1 Replies

Categories in categories?

Hey guys, I am going to build a new web application, and I have a question about the architecture of...

0 Likes
3 Replies
posted 10 years ago

Could models cache result less than 1 minute?

I'm planning to cache data less than 1 minute, how could I do?

0 Likes
0 Replies

Eloquent and count

Hi everybody, I'm currently scripting a website were people can rate beers, nothing big just for the...

0 Likes
3 Replies
Solved
posted 10 years ago

Excel and Array issues

Hello, I am trying to export to excel the following....but i am getting an error: "Call to a me...

0 Likes
2 Replies
Solved

Related model method

Hi guys, I have 2 models: Player and Team. The relationship is: Team has many players. So, in my tea...

0 Likes
11 Replies
posted 10 years ago

How to search in the data fetched from the database?

Let's say I have fetched users from my users table into $users with the Eloquent ORM. Is there a way...

0 Likes
4 Replies

What am sending to the views

Ok, its newb question. If i do "return View::make('something')->with('user', User::find(1)-&...

0 Likes
2 Replies
Solved

Problem with Polymorphic Table and Repository

Hey guys! Scratching my head a bit here. I'm hoping you lot can point out what I'm doing wrong. I ha...

0 Likes
2 Replies
posted 10 years ago

Make two queries into one

Hi guys, I'm having a hard time writing these two queries into one. $topic = Topic::where('slug', '=...

0 Likes
4 Replies
Solved

Getting this error: Call to undefined method Illuminate\Database\Query\Builder::attach()

I have defined the following two Models: Question.php: <?php class Question extends \Eloquent {...

0 Likes
2 Replies
Solved

Eloquent ORM - Returning more data than I expect

Running into this odd little issue here with a ORM query. Let me first define how my models are stru...

0 Likes
5 Replies
posted 10 years ago

inheritance between models

Hello everyone, I'm asking if Laravel has any API for Inheritance, or if we can use one to one relat...

0 Likes
2 Replies
Solved

Do search by criteria...

Hello! I need to do a search by criteria... I have many products, so.. need to show show only the p...

0 Likes
7 Replies
Solved

Remember_token in sql query for a user hasOne relationship?

Hey folks, i don't know if this is maybe a bug. I have a User and links. One User has many links. I...

0 Likes
1 Replies
Solved

Ajax Jquery Response works only once.

Hello everybody, I have a list of topics with a toggle On/Off to get a notification for the topic or...

0 Likes
4 Replies

How should i use repositories ?

Suppose that We have a user that has many forum posts, and we want to get paginated user posts : Whi...

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