PHPフレームワーク Laravel実践開発 3章 メモ
Chapter 3 データベースの活用
3-1 DBクラスとクエリビルダ
- DB::table クエリビルダ を使う
- get(), where(), whereRaw(), first(), orderBy(), find(), pluck(), chunkById(), chunk(), Variations of where
3-2 ペジネーション
- Pagination基本的な使い方
- Navigation link表示
- Custom Navigation link
- Paginator の主なメソッド
3-3 EloquentとCollection
- Collection のメソッド
- reject(), filter(), diff(), modelKeys(), only(), except(), merge(), unique(), map()
3-4 モデルの拡張
- Custom Collection
- Append methods to a custom collection
- Custom Model
- Accessor, Mutator
- Response JSON and XHR
3-5 Scoutによる全文検索
- Skipped