Support the ongoing development of Laravel.io →

4,314 Threads

posted 9 years ago

call Model non-statically

I've got this line of code: $project = Project::find($id); I'd like to change it so that the Projec...

0 Likes
1 Replies

Tutorial - How to craft a digital eshop with Laravel 5

Hello, i'm proud to present the release of a new tutorial series on CODETutorial.io . In this tutori...

0 Likes
0 Replies
posted 9 years ago

Retrieving all users of a specific permission in Laravel 5 / Entrust

How can I retrieve the users of a specific permission in Entrust for Laravel 5.0. use App\Role; use...

0 Likes
2 Replies
Solved
posted 9 years ago

Eloquent - Get all result, group by, order by id

Hey guys, I have a model with versions. I get this records with the following code: $versions = Vers...

0 Likes
1 Replies

question about eloquent relationships

Hey guys! Firstly i want to say sorry about my english it's not my native language. I have a little...

0 Likes
3 Replies

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 10 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

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.

© 2025 Laravel.io - All rights reserved.