Support the ongoing development of Laravel.io →

4,597 Threads

select user followed person's post

users id follows id user_id follow_id posts id user_id let say i am user A and i followed user B. I...

0 Likes
0 Replies

How to properly design interchangeable user repository implementation?

I want the repository to be interchangeable, so I'm not dependant on Eloquent. I therefore have an i...

0 Likes
0 Replies

Basic http authentication

I know how to use Laravel's basic authentication and how to change the column name. Is there a way t...

0 Likes
6 Replies
Solved

Any easier way to do this? Can you extend a model that's a conditional of the parent model?

Check out my code here: http://laravel.io/bin/9n9 I have a working solution now as shown, but I'd li...

0 Likes
0 Replies
posted 10 years ago

select from $query

I have a fairly complex query that combines (via union) the results of a couple of different queries...

0 Likes
1 Replies
Solved

Advanced leftJoin with date functions

Hi, I have https://gist.github.com/RokSiEu/8793452 But I need to get https://gist.github.com/RokSiEu...

0 Likes
1 Replies

Derived table from Pivot table

Hi folks, i have an issue about a derived table from a pivot table. Here is my schema: locale id nam...

0 Likes
4 Replies
posted 10 years ago

How can I add where clause on DB::raw equation result?

I have a query with a select that has a DB:raw equation to get an invoice balance. I'm not sure how...

0 Likes
0 Replies

Disable build-in commands

Is it possible to disable the build in commands like migrate. To be certain I can't run them by acci...

0 Likes
5 Replies
posted 10 years ago

Convince me of the advantages of L4 migrations

I've never been a fan of L4's migration approach. Maybe it's just the way I develop that is the rea...

0 Likes
13 Replies

Chaining first()

I just started using laravel, and I am trying some code. $candidate1 = ot_Candidate::where('id', '='...

0 Likes
1 Replies

Solution for form labes / column headers

I'm building an applicaiton where I have a lot of forms and CRUD stuff. What I'm trying to achieve i...

0 Likes
2 Replies

Failed PDOException

Can someone tell me how this code fails even though I am catching the PDOException? https://gist.git...

0 Likes
1 Replies

Help with proper query

I am looking for help in grabbing data the proper Laravel way. An existing site is being converted t...

0 Likes
1 Replies

Relationship questions

Hey guys, having troubles with second level relationship I got it figuring out how one to many works...

0 Likes
2 Replies

Sorting by a column of a child table in eager load and paginate

I need to display informations in a table that can be sort by columns. I'm using a eager load query...

0 Likes
0 Replies

Transform raw query with query builder or eloquent...

Hey, i got a rather complex query, and i would like to transform it with eloquent/query builder. I w...

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.