Support the ongoing development of Laravel.io →

4,231 Threads

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
21 Jul, 2014 at 08:19

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
21 Jul, 2014 at 02:01

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
20 Jul, 2014 at 12:58

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
19 Jul, 2014 at 03:18

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
19 Jul, 2014 at 05:29

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
19 Jul, 2014 at 12:47

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
17 Jul, 2014 at 10:57

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

Iterate over multidimensional object with blade

Hey folks, i'm new to Laravel but already in love! Awesome. Sadly there's little documentation espec...

0 Likes 6 Replies
Solved

morphMany sorter type declaration

Hi! I created a morphMany relation, the related class is in sub folder and the type inserted in data...

0 Likes 1 Replies
Solved

Thanks to our community

Solutions given in the past year.

Moderators

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

Your logo here?

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

© 2021 Laravel.io - All rights reserved.