Mengdi Gao

Beijing

gao.md

Age: 24

T

Oct
29
awarded Yearling
Oct
29
awarded Autobiographer
Oct
29
comment Laravel Eloquent / fluent
As @iavery said, use ->toArray() since Laravel 4.
Oct
29
awarded Supporter
Oct
29
awarded Autobiographer
Oct
29
awarded Commentator
Oct
29
comment Managing relationships in Laravel, adhering to the repository pattern
Great, but shouldn't Repository returns eloquent model dependent results (i.e.: array)? Then why in the MovieService, there is some code operates the eloquent models directly ($director->movies()->associate($movie);).
Oct
23
comment double click and select the path(including '/') in Terminal.app
One more, Double-click and drag will do word by word selection instead of click and drag's letter by letter.
Oct
1
awarded Yearling
Oct
1
awarded Yearling
Sep
1
comment How can I keep my Mac awake AND locked?
With external keyboard without the eject key, one can check the Show keychain status in menu bar option in Keychain Access App's Preferences. Then you will be able to Lock Screen in the menu bar by clicking the lock icon.
Aug
31
awarded Guru
Aug
19
awarded Autobiographer
Aug
18
comment What is the proper way of nesting resources in REST model?
Bad question, of course DELETE /tickets/:id, since we don't have /partners/:partner_id/tickets anymore :P
Aug
18
comment What is the proper way of nesting resources in REST model?
@Javier what about DELETE? DELETE /tickets/:id?
Aug
10
awarded Yearling
May
5
awarded Constituent
Apr
22
awarded Caucus
Feb
19
awarded Caucus
Nov
27
awarded Good Answer
1 2 3 4 5