Implementing Laravel 日本語版
Implementing Laravel 日本語版
堅牢原則を応用し、十分な機能を持つアプリケーション構築の基礎となる実装方法
本書について
ええ、皆さんLaravelの基礎はご存知ですよね。ユニットテストについても、読んだことはあるでしょう。たぶん、Taylor Otwellの本も読み、依存注入やIoCコンテナ、堅牢なアプリケーション構築のための原則についても学んでいるでしょう。では、必要なアプリケーションを構築するため、プロジェクトを開始しましょう!
しかし、実装についてはまだぼんやりとした疑問を抱えていませんか。実際、どうやって原則を使用すれば良いのでしょう?どのように、アプリケーションコードを組織立てれば良いのでしょう?なぜ、コントローラーに多くのコードが残ったままなんでしょう?
この本は、良い構造のための原則と、あなたのアプリケーションの実装との、架け橋になります。
何を学べますか?:
- テスト可能で保守性の良い、構造化され、実際に動作する具体的なサンプルコード
- LaravelのIoCコンテナと、サービスプロバイダー
- コードの組織化と、その背景の考え方
- サードパーティライブラリーの使用と実装
- GitHubにある、実際に使用可能なコード
各章の内容(抜粋)
- インストールと環境の準備
- リポジトリーパターンの使用
- リポジトリーの中で、キャッシュを使用する
- エラー処理と通知
- サービスとしてのバリデーション
- テスト可能なフォーム処理
(この書籍はLaravel4.0をベースに書かれています。その後、Laravelの仕様も変更され、例えばキャッシュに対してタグを付けることがデフォルトで行えるようになりました。2014年11月に予定されている、Laravel5.0ではディレクトリー構造が大幅に変更されます。そのため、特にファイル/ディレクトリーパスが書籍の内容と一致しない部分が出ます。ご了承ください。)
目次
-
- 謝辞
-
イントロダクション
-
誰のための本?
- どんな人に一番役立つのですか?
- 何を理解しておけば良いですか?
- 意見について
- 堅牢(SOLID)
-
誰のための本?
-
Laravelコアのコンセプト
-
コンテナ
- 基本的な使い方
- より高度な例
- 制御の逆転
- 使用の実例
-
依存注入
- 依存注入とは何か?
- コントローラーへ依存を追加する
- 依存としてのインターフェイス
- なぜ、依存注入?
- まとめ
-
コンテナ
-
Laravelを準備する
-
サンプルアプリケーション
- データベース
- モデル
- 関連付け
- テスタビリティーと保守性
- 構造上の注意
-
インストール
- Composerのインストール
- 新プロジェクトを作成する
- 設定
- まとめ
-
アプリケーションの準備
- アプリケーションライブラリーの準備
- 自動ローディング
- まとめ
-
サンプルアプリケーション
-
便利なパターン
-
リポジトリーパターン
- どんなパターンなんでしょう?
- どうして使用するのでしょう?
- サンプル
-
リポジトリーパターンでキャッシュを利用する
- 何のことですか?
- なぜ、使用するの?
- サンプル
-
サービスとしてのバリデーション
- 何のことでしょう?
- どうして使用するの?
- サンプルコード
- 再構築
- 何が得られたのでしょう?
-
フォーム処理
- 何のことですか?
- どこで使用するのですか?
- サンプルコード
- 再構築
- 重い処理
- まとめ上げる
- 最終結果
- 何が得られたのでしょう?
- エラー処理
-
リポジトリーパターン
-
パッケージを使用する
-
Notificationパッケージを使用する
- 準備
- 実装
- まとめてみましょう
- 実践
- 何を得たのでしょうか?
-
Notificationパッケージを使用する
-
終章
-
レビュー
- インストール
- アプリケーションの準備
- リポジトリーパターン
- リポジトリーの中でキャッシュする
- バリデーション
- フォーム処理
- エラー処理
- サードパーティーライブラリー
-
何が得られたのでしょう?
- 将来へ
-
レビュー
Leanpubは無条件かつノーリスクで100%の満足を保証します
Leanpubでお買い上げいただいた書籍は、ご購入後60日以内であれば全額返金いたします。払い戻しはわずか2クリックで完了します。払い戻し処理は手作業で行うため、完了まで数日かかる場合があります。詳しくは利用規約をご覧ください。
Do Well. Do Good.
著者はLeanpubで執筆、出版、販売を利用して$11,597,977稼ぎ、80% royalties儲けました。最大2500万ポンドのCO2を節約し、最大46,000本の木を助ける事が出来ました。
Leanpubでの執筆についてもっと知る
無料更新。無料アップデート。 DRMフリー。
Leanpubの本を購入すると、著者が本を更新している限り、無料で更新されます!多くの著者は、Leanpubを使用して、執筆中の書籍を出版しています。いつ本を購入したか、いくら支払ったかに関係なく、すべての読者は無料のアップデートを入手できます(無料も含む)。
Leanpubの本はPDF(コンピューター用)、EPUB(iPad用)、MOBI(Kindle用)のフォーマットに対応してます。本に含まれるフォーマットは、このページの右上隅に表示されます。
Leanpubの本には、DRMコピー防止のナンセンスがないため、サポートされているデバイスで簡単に読むことができます
Top Books
C++20 - The Complete Guide
Nicolai M. JosuttisAll new language and library features of C++20 (for those who know previous C++ versions).
The book presents all new language and library features of C++20. Learn how this impacts day-to-day programming, to benefit in practice, to combine new features, and to avoid all new traps.
Buy early, pay less, free updates.
Other books:
Jetpack Compose internals
Jorge CastilloJetpack Compose is the future of Android UI. Master how it works internally and become a more efficient developer with it. You'll also find it valuable if you are not an Android dev. This book provides all the details to understand how the Compose compiler & runtime work, and how to create a client library using them.
Ansible for DevOps
Jeff GeerlingAnsible is a simple, but powerful, server and configuration management tool. Learn to use Ansible effectively, whether you manage one server—or thousands.
SignalR on .NET 6 - the Complete Guide
Fiodar SazanavetsLearn everything there is to learn about SignalR and how to integrate it with the latest .NET 6 and C# 10 features. Learn how to connect any type of client to SignalR, including plain WebSocket client. Learn how to build interactive applications that can communicate with each other in real time without making excessive calls.
R Programming for Data Science
Roger D. PengThis book brings the fundamentals of R programming to you, using the same material developed as part of the industry-leading Johns Hopkins Data Science Specialization. The skills taught in this book will lay the foundation for you to begin your journey learning data science. Printed copies of this book are available through Lulu.
Functional event-driven architecture: Powered by Scala 3
Gabriel VolpeExplore the event-driven architecture (EDA) in a purely functional way, mainly powered by Fs2 streams in Scala 3!
Leverage your functional programming skills by designing and writing stateless microservices that scale, powered by stateful message brokers.
The easiest way to learn design patterns
Fiodar SazanavetsLearn design patterns in the easiest way possible. You will no longer have to brute-force your way through each one of them while trying to figure out how it works. The book provides a unique methodology that will make your understanding of design patterns stick. It can also be used as a reference book where you can find design patterns in seconds.
Cronache di Domain-Driven Design
Francesco Strazzullo, Matteo Baglini, Gianluca Padovani, Emanuele DelBono, Marco Consolaro, Alessandro Colla, Uberto Barbini, Alberto Acerbis, Julie Camosseto, DDD Open, and Alberto BrandoliniCronache di Domain-Driven Design: un libro corale in italiano fatto di storie indipendenti tra loro, che sono il risultato dell’applicazione di Domain-Driven Design su progetti reali.
OpenIntro Statistics
David Diez, Christopher Barr, Mine Cetinkaya-Rundel, and OpenIntroA complete foundation for Statistics, also serving as a foundation for Data Science.
Leanpub revenue supports OpenIntro (US-based nonprofit) so we can provide free desk copies to teachers interested in using OpenIntro Statistics in the classroom and expand the project to support free textbooks in other subjects.
More resources: openintro.org.
CCIE Service Provider Version 4 Written and Lab Exam Comprehensive Guide
Nicholas RussoThe service provider landscape has changed rapidly over the past several years. Networking vendors are continuing to propose new standards, techniques, and procedures for overcoming new challenges while concurrently reducing costs and delivering new services. Cisco has recently updated the CCIE Service Provider track to reflect these changes; this book represents the author's personal journey in achieving that certification.
Top Bundles
- #1
Software Architecture for Developers: Volumes 1 & 2 - Technical leadership and communication
2 Books
"Software Architecture for Developers" is a practical and pragmatic guide to modern, lightweight software architecture, specifically aimed at developers. You'll learn:The essence of software architecture.Why the software architecture role should include coding, coaching and collaboration.The things that you really need to think about before... - #2
Practical FP in Scala + Functional event-driven architecture
2 Books
Practical FP in Scala (A hands-on approach) & Functional event-driven architecture, aka FEDA, (Powered by Scala 3), together as a bundle! The content of PFP in Scala is a requirement to understand FEDA so why not take advantage of this bundle!? - #3
All the Books of The Medical Futurist
6 Books
We put together the most popular books from The Medical Futurist to provide a clear picture about the major trends shaping the future of medicine and healthcare. Digital health technologies, artificial intelligence, the future of 20 medical specialties, big pharma, data privacy, digital health investments and how technology giants such as Amazon... - #4
CCIE Service Provider Ultimate Study Bundle
2 Books
Piotr Jablonski, Lukasz Bromirski, and Nick Russo have joined forces to deliver the only CCIE Service Provider training resource you'll ever need. This bundle contains a detailed and challenging collection of workbook labs, plus an extensively detailed technical reference guide. All of us have earned the CCIE Service Provider certification... - #6
Pattern-Oriented Memory Forensics and Malware Detection
2 Books
This training bundle for security engineers and researchers, malware and memory forensics analysts includes two accelerated training courses for Windows memory dump analysis using WinDbg. It is also useful for technical support and escalation engineers who analyze memory dumps from complex software environments and need to check for possible... - #7
Modern C++ Collection
3 Books
Get All about Modern C++C++ Standard Library, including C++20Concurrency with Modern C++, including C++20C++20Each book has about 200 complete code examples. Updates are included. When I update one of the books, you immediately get the updated bundle. You can expect significant updates to each new C++ standard (C++23, C++26, .. ) and also... - #9
Retromat eBook Bundle for Agile Retrospectives
2 Books
If you facilitate retrospectives this bundle is for you: "Plans for Retrospectives" helps beginners learn the lay of the land with tried-and-true plans. Once you know your way around, "Run great agile retrospectives" contains all 135+ activities in Retromat for you to mix and match.