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

Eager loading polymorphic relation with custom fields

Try taking this line of code out, and it should work fine: protected $morphClass = 'product'; Or ch...

0 Likes
replied 10 years ago

common variable for migrations

You can add it to your .env file, and access it like this: env('YOUR_CUSTOM_FIELD') Or, you can crea...

0 Likes
replied 10 years ago

Enforce additional WHERE on all queries.

Do you not want select * to happen on every query or do you want a where clause to happen on every q...

0 Likes
replied 10 years ago

Auth::logout does not work laravel 5.1

Are you using any javascript at all to intercept the click? Do you have any middleware applied to it...

0 Likes
replied 10 years ago

Method [validate Name] does not exist in laravel 5.1

Your problem is this part: 'required|name',. There is no such thing as a "name" validation...

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.