Support the ongoing development of Laravel.io →

4,311 Threads

Eager loading from a list of user IDs (Haversine)

I have to optimize a Haversine query that's got an odd syntax and can't be addressed by the usual _m...

0 Likes
2 Replies
posted 9 years ago

Eloquent relationship update or create

Hey guys, I am having trouble figuring out how to properly update or create a models related model....

0 Likes
4 Replies
Solved

Eloquent delete record by id

Hey, I'm trying to remove a record by unquie id using eloquent this is my first ever project in lara...

0 Likes
3 Replies

Query Scope

I am attempting to create a query scope since it gets called various times in the app so my first at...

0 Likes
2 Replies
Solved

Select Raw inside Eager Load Constraints - Relationship problem

Hi, I need some help with eloquent relationships. I have a 'User' table having two columns: 'latitud...

0 Likes
0 Replies

Redis and Pagination

Hello guys, I was wondering how can i cache paginated collection this is my code so far. public fun...

0 Likes
1 Replies

history table

So I have a database full of hardware components. I am willing to implement a function in which if t...

0 Likes
0 Replies

Failed to related two model Eager Eloquent Relationships

i'm start learn laravel few days ago, i try to follow tutorial in laravel 4 but i am using laravel 5...

0 Likes
2 Replies

Routes are correct and on localhost works perfectly, online gives me 404

Hi, I've just configured my routes correctly as i do usually: Route::get('/news/', 'PagesController@...

0 Likes
2 Replies

Issue: Foreign Keys and migrations

I am currently receiving the following error when I run my migrations: SQLSTATE[HY000]: General erro...

0 Likes
3 Replies

Searching joined vertical table

I'm looking for a little help. I have two tables. One is a standard table where I can search for the...

0 Likes
2 Replies
posted 9 years ago

How to merge Eloquent Collections

Hey, i've two Eloquent Collections with the following collumns: trackid, title, total (decimal) and...

0 Likes
2 Replies

eloquent join where array values

Im trying to do the following query: $category = Input::has('categories') ? Input::get('categories')...

0 Likes
0 Replies

Laravel relationships

Hi, Sorry for noob question. I have a controller named Project, worknotes and attachments The relati...

0 Likes
2 Replies
Solved

Laravel Pagination from merge()

I've merges 2 Collections: use Illuminate\Pagination\LengthAwarePaginator as Paginator; ... $towni...

0 Likes
1 Replies

Better Way to Associate foreign keys ?

Is there any better way to associate foreign keys with a record. This way is making my controller bu...

0 Likes
0 Replies

Connect Laravel with Marklogic

How to use marklogic super awesome document structuring and lightning fast search mechanism with lar...

0 Likes
0 Replies

Override vendor class on using custom model

Can someone help me to override a method from vendor using my custom class. vendor name: Cmgmyr\Mess...

0 Likes
0 Replies

a complicated query by laravel eloquent orm

projects id, name projects_services(1 project_id <-> M service_id) project_id, service_id serv...

0 Likes
0 Replies

How Do I Catch FindOrFail Exceptions? Or How Do I Detect an Empty Eloquent Result?

My goal isn't all that lofty. I want to detect when the following: $current = Promovote::where('mod...

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