Skip to content

Latest commit

 

History

History
17 lines (9 loc) · 486 Bytes

Eloquent.md

File metadata and controls

17 lines (9 loc) · 486 Bytes

Colin DeCarlo - Keeping Eloquent Eloquent

@colindecarlo

Having the correct tools is not the same as using the tools correctly

Default model attributes - Setting the attributes array is useful for having model values on instantiation

"Don't be afraid to use the source"

Use scopes to define more meaningful relationships

Reports

Eloquent ORM isn't great for reports

Report Manager - abstract class that uses DB Manager. This keeps ugly report code out of your controllers