Support the ongoing development of Laravel.io →
neon5

neon5

Joined 21 Feb 2014

Statistics

Threads 25
Replies 44
Solutions 0
Articles 0

Trying to understand Migration workflow

At this point I have two files in my migration folder, one to create the table with its columns, and...

0 Likes
3 Replies
Solved

Can I query the results of a query?

This isn't working, and maybe it's not possible, or maybe I'm close? $allcars = $user->cars()...

0 Likes
2 Replies

What's the best way to troubleshoot a controller problem?

In my controller I'm trying to delete a record from a table and the only message I get back to the c...

0 Likes
2 Replies

What's the correct way to get the ID from the URI?

On the page that lists the user's cars, each list item has the following link: {{URL::to("cars/...

0 Likes
7 Replies
Solved

How to reference this object's "belongsTo" user?

In my Car class I have public function user() { return $this->belongsTo('User'); } public fu...

0 Likes
9 Replies
Solved
replied 11 years ago

How do I copy a model and its many children efficiently?

jarektkaczyk, Thank you for the code. I got it to work by changing the $parentKeyName line otherwise...

0 Likes
replied 11 years ago

How do I copy a model and its many children efficiently?

I'm still slowly working through this. Current error is: SQLSTATE[42000]: Syntax error or access vi...

0 Likes
replied 11 years ago

How do I copy a model and its many children efficiently?

I use DebugBar to monitor the SQL queries and just discovered that saveMany() does a separate INSERT...

0 Likes
replied 11 years ago

How do I copy a model and its many children efficiently?

My code above worked just by fixing my $parts_array variable just like as jlaswell recommended. All...

0 Likes
replied 11 years ago

How do I copy a model and its many children efficiently?

I'm still stuck on this. This is what I have so far. I get the car and then... $car_copy = $car-&g...

0 Likes

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.

© 2026 Laravel.io - All rights reserved.