Support the ongoing development of Laravel.io →
thomastkim

thomastkim

Joined 20 Aug 2015

Statistics

Threads 0
Replies 210
Solutions 40
Articles 0

thomastkim has not posted any threads yet

replied 10 years ago

Eloquent relationship update or create

That is weird. HasOne extends HasOneOrMany, which does have the function. But glad you got it to wor...

0 Likes
replied 10 years ago

Eloquent relationship update or create

Hmm...there is an updateOrCreate method. /** * Create or update a related record matching the attri...

0 Likes
replied 10 years ago

Redirect Problem

You pass an array of arguments so try this instead: return Redirect::route('wesell-congratulations',...

0 Likes
replied 10 years ago

Query Scope

That's because the variable is outside its scope. From PHP: http://php.net/manual/en/functions.anony...

0 Likes
Solved
replied 10 years ago

Eloquent delete record by id

If it's a unique ID, why do you even need the user? Status::destroy($id);

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.