Support the ongoing development of Laravel.io →

4,314 Threads

posted 9 years ago

BelongsToMany::attach() method does not refresh collection

Hi everyone, I was hoping someone had an answer to the following issue on GitHub (https://github.com...

0 Likes
0 Replies

how to gettting different queries (models) results with one statement?

Sorry if my title is confusing, not sure how to explain this within a line. Let's say I have a table...

0 Likes
0 Replies

Create custom pagination

Pls any one help me i want to create a custom pagintaion class in laravel 5.1 same as below link. ht...

0 Likes
0 Replies

Get Children order_by

Hi my dear laravel buddies, I have an issues with the children category with order_by query, i'm usi...

0 Likes
0 Replies

Using existing MySQL database with Laravel 5.1

Hi there a Laravel newbie building a Laravel 5.1- based app which needs to talk to an existing, popu...

0 Likes
2 Replies

HTML form facade

I am new to laravel 5. In L5 there is no Illuminate/Html in the core instalation. So I put that in...

0 Likes
2 Replies
posted 9 years ago

issue with table relationship in the DB

Hi all, i have this issue with table relationship in the DB, that i want to solve ASAP, please. when...

0 Likes
0 Replies

Convert SQL to eloquent

Eloquent is driving me mad :-( I need to convert the following SQL to Eloquent. Ideally I want to us...

0 Likes
0 Replies
posted 9 years ago

Updating sync()'d Data

I have a "profile" table and an "officer" table with the pivot table officer_pro...

0 Likes
3 Replies

(Please help me :( )Column Values Not Showing in Show Page

Hi, I'm having a problem right now. Please help me. I have 2 main page. The Homepage(index.blade.php...

0 Likes
4 Replies
posted 10 years ago

Indirect modification of overloaded property has no effect

I feel like this is easy to fix, but it gives me a headache. The following code throws the error Ind...

0 Likes
2 Replies
Solved

eloquent equivalent of SQL_CALC_FOUND_ROWS

I've been using Eloquent in a project outside of Laravel, and I needed pagination, so I built my own...

0 Likes
2 Replies

super Easy Global Scope definition

If you ever created complex global scope constraint, you must have faced a challenge with defining r...

0 Likes
0 Replies
posted 9 years ago

Getting list of threads with latest message in Laravel

I need some help getting a list of threads with the latest message from my database using eloquent....

0 Likes
1 Replies
posted 9 years ago

Eloquent: sort by pivot table?

I have 'products', 'categories' and 'category_product'. How can I return a list of products, sorted...

0 Likes
1 Replies
posted 9 years ago

Wrong query generation

Hello, I have the following code: abstract class I18NEntity extends \Entity { protected $appends =...

0 Likes
0 Replies

Help with HasOneThrough method (i think?)

Fairly new to Laravel having been away from PHP, and coding in general, for about 6 years. I've got...

0 Likes
0 Replies

Multiple data bases or best practice

Hello, im having a logic problem, sorry if this is not the place to put this. Im working on an app f...

0 Likes
4 Replies

Adding an author and Editor to my model (hasOne) results in error

I tried adding an author and editor in my company model, I would like to be able to not only know th...

0 Likes
1 Replies

Undefined variable in view

Hi I have been trying to solve this for two days now, I do not have any hair left. My routes file: &...

0 Likes
2 Replies
Solved

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.