Support the ongoing development of Laravel.io →
usm4n

usm4n

Joined 19 Feb 2014

Statistics

Threads 2
Replies 82
Solutions 17
Articles 0

Tutorials on upcoming Laravel 4.3.

Hi, new tutorials on upcoming Laravel 4.3 are available on codeheaps.com: Laravel 4.3: New Awesome...

0 Likes
0 Replies

[Package] Guardian: RBAC Package For Laravel 4.2

##What is guardian? Guardian package for Laravel provides an easy interface to manage Role Based Acc...

0 Likes
2 Replies
replied 11 years ago

How to add user id as a default value when inserting new records

Sorry :(, i misunderstood the problem, you are right :)

0 Likes
replied 11 years ago

Relationships (One-to-One)

try this: $user = User::find(10); $profile = $user->profile(); $profile->name = 'Steven'; $use...

0 Likes
replied 11 years ago

How to add user id as a default value when inserting new records

You can use property mutators inside your models: public function setCompanyIdAttribute($cid) {...

0 Likes
replied 11 years ago

Seeder just insert one record instead of two

Make sure table is unguarded, and you need multiple insert calls to insert multiple rows. Or you can...

0 Likes
replied 11 years ago

Throw new NotFoundHttpException("Controller method not found.");

Routes are First In First Out, sometimes the order of registering them matters make sure your deep r...

0 Likes
Solved

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.