Support the ongoing development of Laravel.io →

4,604 Threads

Sorting Related Models By Their Related Model

I have the following relationships between my models Member public function memberships() {...

0 Likes
0 Replies
posted 8 years ago

Issue with Querying Large Table

Started having the following errors as the size of my database grow. It's at about 4GB now for this...

0 Likes
1 Replies
posted 8 years ago

Migration laravel

display me this this error and i'm trying to run this migration specially this part: pastebin.com/7X...

0 Likes
0 Replies

Combining fields and returning

New to laravel, coming from codeigniter and i'm trying to port over and clean up my project. I have...

0 Likes
2 Replies

What kind of database for big data?

Hi, i used to use laravel with mysql on hostings. Never use AWS or managed a Server by myself. For a...

0 Likes
3 Replies
Solved

Laralang 3.0 - Translation package

Hello people! https://github.com/24aitor/laralang Recently I released Laralang 3.0, a translation p...

0 Likes
0 Replies

groupBy id in pivot tables

I have the next tables: producto recurso_web producto_recurso_web So in my Producto model I have t...

0 Likes
1 Replies

Get item by item_id from LengthAwarePaginator?

How can i get item by it is id from LengthAwarePaginator? I have tried something like this: {{$categ...

0 Likes
3 Replies
Solved

Laravel sync hasMany and belongsTo in reverse?

Is there a simple way to do a "sync" (as per a many-to-many) relationship in one line betw...

0 Likes
0 Replies

Count of occurrence in each row?

Hi guys , I am importing an .xlsx file to a mySQL database. For reach row, I would like to count the...

0 Likes
1 Replies

How to define factories outside ModelFactory.php?

Hi, I'm currently splitting a larger app into smaller modules and would like to split the defined fa...

0 Likes
2 Replies

Howto log with MongoDB

Hello Laravel Nation, I recently spent some time on figuring out how to write logs in Laravel with a...

0 Likes
4 Replies

Loading model factories from vendor packages

https://github.com/laravel/framework/issues/11881 Yesterday I discovered a model factories but I got...

0 Likes
0 Replies

Ho to Paginate search results?

I have own search filter, like that: public function search(Request $request, $counter = 5){ $sear...

0 Likes
2 Replies
Solved

BadMethodCallException in Macroable.php line 52: Method shuffle does not exist. - after running composer update

Hi all, I just updated my dependencies (composer update) on my current project to their most recent...

0 Likes
1 Replies

Getting Class 'MongoDB\Driver\Manager' not found on laravel on homestead

I'm using laravel homestead with php5.6 and mongodb 3.2 installed for my laravel server, and I can u...

0 Likes
0 Replies

Dynamic Dropdown w/ Mysql

Hello! I am trying to create a dynamic menu in my header view of all my pages. (I am new to Larav...

0 Likes
4 Replies
Solved

Diacritics in a laravel app

Hello! I have a problem with some text that I pull out of a mysql database which contains diacritics...

0 Likes
0 Replies

PDO connection to odbc quits without error, odbc_connect works

Hi, We're expecting problems on a odbc connection bt pdo, while it works well directly. Example: vag...

0 Likes
2 Replies

Many-to-many and pivot - what are the benefits?

In my application I have a model User which can have many List, but a List can only have one User....

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