Support the ongoing development of Laravel.io →

4,606 Threads

Insert Array is not updating timestamps

I'm trying to insert an array of data into db using the below function. User::insert($array) It ins...

0 Likes
2 Replies

Remove polymorphic relationships

Hi, I've 3 models in my app, Document belongs to User or Group: class Document extends Eloquent {...

0 Likes
3 Replies
posted 10 years ago

seeding large table

Hello all, I have large help table: for exmaple: cities table, which contain more than 100,000 recor...

0 Likes
4 Replies

Creating a good file uploader that only accepts specific files and add the path as a string.

Hello everyone reading this. Ive been into laravel for 3 months right now. Im right now a little stu...

0 Likes
1 Replies

Laravel sorting + pagination help

Use Case: Select from users table with certain parameters (group_id, maybe a search term, etc.)...

0 Likes
0 Replies
posted 10 years ago

How Can I delete a migration ?

How Can I delete a migration ? delete the file in migration directory? It doesnt work What should...

0 Likes
2 Replies

Issues with data types on Windows and Mac

I am working in a team with 3 members on a project in Laravel. I'm running Windows on my laptop with...

0 Likes
1 Replies

Cascade Delete Pivot Row on polymorphic relationships

I noticed that if I $mymodel->forceDelete() an item that has a polymorphic relationship, the row...

0 Likes
2 Replies

Location seach with group by and count

Is there any way to do this in either query builder or eloquent so I can easily chain in where claus...

0 Likes
0 Replies

How can I update a file upload?

Please see attached StackOverflow link. http://stackoverflow.com/questions/26720555/how-can-i-update...

0 Likes
5 Replies
Solved

How to update record in database

How can I update record in database? When I tried to use updateOrCreate i just got this error. SQLST...

0 Likes
4 Replies
Solved

Uploaded image as product.

Hi, I am making photo kiosk application. My problem is how to make an uploaded image as a product? C...

0 Likes
1 Replies

Querying existing Database

Hi all, I'm very green in Laravel. Could someone pls show me how i can query an existing DB? I have...

0 Likes
1 Replies
posted 10 years ago

How to pass PHP variable to eloquent query?

Dear All, I create a route: Route::get('/PO/DM/{time}/{number}/print', function($time, $number) { $...

0 Likes
4 Replies

Replicating database content

Hello everyone, I have been struggling for a few days with this problem and every possible solution...

0 Likes
0 Replies

Model create problem

$users = Users::create( (Input::only('nickname', 'info', 'age')) ); $insert = Users::create(...

0 Likes
2 Replies
Solved
posted 10 years ago

Sorting by relationship column

Hi everyone. I need help for a laravel problem. I want to fetch all unfinished projects that belong...

0 Likes
1 Replies
posted 10 years ago

Fatal error: Class 'Route' not found in /.../app/routes.php ...

Hi all, I'm a newbie at Laravel. I'm trying to query my Database and have already changed the config...

0 Likes
0 Replies

Public schema on postgres database is being used regardless of what I set for schema in my database config file

Hi I'm running homestead on my dev machine. I use postgres as my development database. I'd like to u...

0 Likes
1 Replies
Solved

Dynamic form fields, save to db

Hey guys, I'm trying to save some form fields to my DB that I am creating dynamically with a button...

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.

© 2025 Laravel.io - All rights reserved.