Support the ongoing development of Laravel.io →

4,599 Threads

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

How to select table data in orderby id desc then groupby name in laravel 5.3?

I do this but can not work.. DB::table("office_costing_zone") ->orderBy("id",...

0 Likes
2 Replies

Getting model reference in an trait

Guys, good afternoon! I use Laravel and I have the following problem: Whenever a user edit a record...

0 Likes
0 Replies

How do I use the ModelFactory for seeding data if my data is not from Faker?

Hello, Ok, so I am trying to seed data into a table, below is what I have tried: $factory->defin...

0 Likes
1 Replies
posted 8 years ago

kill query

Can somebody help me with an information: How can i kill execution of query. It's exists any method...

0 Likes
2 Replies

problem with model->save() when running phpunit test

I have a problem with phpunit testing. I have an api that takes some json and saves a model (->sa...

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.