Laravel 4: pivot table example (attach and detach)

What’s a pivot table? A pivot table is a database table that only exists to serve a many-to-many relationship. Say you have a table “customer” and a table “drinks”. If…

Read more »

Laravel Naming Conventions

Laravel supports the PHP Framework Interop Group naming conventions. You can find them on the PHP-FIG website. In short: Generally database columns are snake_case but property names are camelCase. Eloquent…

Read more »