Support the ongoing development of Laravel.io →
neon5

neon5

Joined 21 Feb 2014

Statistics

Threads 25
Replies 44
Solutions 0
Articles 0

Make data from home controller accessible to content controllers.

The default layout and its controller has the main menu which gets user info from the DB for the log...

0 Likes
2 Replies
posted 11 years ago

Validation rule. How to allow only 1 or null?

How do I make a validation rule that allows only a 1 or null? Thanks.

0 Likes
1 Replies

Using Ardent and putting validation in the model. Any reviews, thoughts, or insight?

I'm trying to adhere to the thin controller, fat model design so I want to put my validation in my m...

0 Likes
2 Replies

Can someone please explain these to me?

In Laravel there are these three things: Doctrine Eloquent Illuminate Can someone please provide m...

0 Likes
8 Replies
posted 11 years ago

Would this hit the database once or twice?

Does the first line go to the database and wait for a response and then move on? Or are these combin...

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