入門 Laravel チュートリアル
入門 Laravel チュートリアル
本書について
この本の対象は、Web 開発、特にフレームワークを用いた開発の経験が浅い方を想定しています。PHP の文法は学んだけれど、「で?何をどう作ればいいの?」という、次のステップに読んでほしいです。
Laravel で ToDo アプリを一画面ずつ作る過程を順を追って解説することで、以下のトピックに一通り触れています。
- URLやテーブルの設計
- ルーティング
- コントローラー
- ミドルウェア
- テンプレート
- モデルとORM
- 単体テスト
たくさんある Laravel の機能のうち一部しか紹介できていないですが、開発のプロセスや考え方が学び取れる内容です。
目次
-
イントロダクション
- はじめに
- 対象者
- 学ぶこと、学ばないこと
- ソフトウェアバージョン
- 参考文献
- 作るもの
-
Cloud 9 で環境構築
- Cloud 9 の利用料について
- Cloud 9 の開発環境を作成する
- PHP
- Composer
- Laravel アプリ作成
- ローカルサーバー起動
- プレビュー
- PostgreSQL
-
ToDoアプリケーションの設計
- どんな設計が必要?
- 機能一覧
- 画面設計
- URL設計
- テーブル定義
- Web アプリケーションフレームワーク
-
フォルダ一覧表示機能
- ルーティング
- マイグレーションとモデルクラス
- テストデータを挿入する
- コントローラー
- テンプレートの作成
- フォルダ名を選択表示にする
- 最後のおまけ(ログの出力先)
-
タスク一覧表示機能
- マイグレーションとモデルクラス
- テストデータの作成と確認
- コントローラー
- テンプレート
- Task モデルにアクセサを追加する
- モデルクラスにおけるリレーション
-
フォルダ作成機能
- ルーティング
- フォームを表示する
- フォルダを保存する
- 入力値バリデーション
-
タスク作成機能
- ルーティング
- フォームを表示する
- レイアウトでテンプレートを整理する
- タスクを保存する
- 期限日のバリデーションをテストする
-
タスク編集機能
- ルーティング
- フォームを表示する
- テンプレートを部品化する
- タスクを編集する
- 状態のバリデーションをテストする
-
認証機能
- ユーザーとフォルダを紐づける
- ホームページを作成する
- 会員登録機能
- ログイン機能
-
認証機能 パート2
- ヘッダーの出し分け
- ログアウト
- ページに認証を求める
- ログイン前のみ閲覧できるページ
- ユーザーとしてフォルダを作成する
- ユーザーとしてタスクを表示する
- ホームページをブラッシュアップする
- パスワード再設定機能
-
エラーハンドリング
- 存在しないコンテンツ
- 権限がないコンテンツ
- リレーションが存在しない
- エラー画面を作ろう
-
ToDoアプリをHerokuにデプロイする
- Heroku とは
- 準備
- Heroku に新規アプリを作成する
- アドオンを追加する
- デプロイ
-
付録 A - GitHub の利用方法
- SSH 鍵を作成する
- 公開鍵を登録する
-
付録B - Homestead での環境構築
- インストール
- 仮想環境の操作
- ホストとゲスト
- プロジェクトの新規作成
-
付録C - Docker での環境構築
- Docker のインストール
- Docker 設定ファイルの作成
- コンテナの起動とアプリケーションの作成
- 開発にあたって
Leanpubは無条件かつノーリスクで100%の満足を保証します
Leanpubでお買い上げいただいた書籍は、ご購入後60日以内であれば全額返金いたします。払い戻しはわずか2クリックで完了します。払い戻し処理は手作業で行うため、完了まで数日かかる場合があります。詳しくは利用規約をご覧ください。
Do Well. Do Good.
著者はLeanpubで執筆、出版、販売を利用して$11,712,765稼ぎ、80% royalties儲けました。最大2500万ポンドのCO2を節約し、最大46,000本の木を助ける事が出来ました。
Leanpubでの執筆についてもっと知る
無料更新。無料アップデート。 DRMフリー。
Leanpubの本を購入すると、著者が本を更新している限り、無料で更新されます!多くの著者は、Leanpubを使用して、執筆中の書籍を出版しています。いつ本を購入したか、いくら支払ったかに関係なく、すべての読者は無料のアップデートを入手できます(無料も含む)。
Leanpubの本はPDF(コンピューター用)、EPUB(iPad用)、MOBI(Kindle用)のフォーマットに対応してます。本に含まれるフォーマットは、このページの右上隅に表示されます。
Leanpubの本には、DRMコピー防止のナンセンスがないため、サポートされているデバイスで簡単に読むことができます
Top Books
Recipes for Decoupling
Matthias NobackWrite software that survives
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.
CQRS by Example
Carlos Buenosvinos, Christian Soronellas, and Keyvan Akbary- Leverage your Software Architecture skills by learning everything about CQRS in detail with lots of examples
- Develop faster applications by applying CQRS and fostering Read Models and Projections
- Learn how to apply CQRS into a brownfield project from a pragmatic approach
Maîtriser Apache JMeter
Philippe Mouawad, Bruno Demion (Milamber), and Antonio Gomes RodriguesToute la puissance d'Apache JMeter expliquée par ses commiteurs et utilisateurs experts. De l'intégration continue en passant par le Cloud, vous découvrirez comment intégrer JMeter à vos processus "Agile" et Devops.
If you're looking for the newer english version of this book, go to Master JMeter : From load testing to DevOps
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.
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.
The PowerShell Scripting and Toolmaking Book
Don Jones and Jeff HicksLearn the patterns, practices, and details of PowerShell Scripting and Toolmaking from the industry's two most recognized experts on the subject.
The C4 model for visualising software architecture
Simon BrownA guide to visualising your software architecture with the C4 model.
Mastering STM32 - Second Edition
Carmine NovielloWith more than 1200 microcontrollers, STM32 is probably the most complete ARM Cortex-M platform on the market. This book aims to be the most complete guide around introducing the reader to this exciting MCU portfolio from ST Microelectronics and its official CubeHAL and STM32CubeIDE development environment.
Top Bundles
- #1
Software Architecture
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
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... - #4
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... - #6
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... - #8
The Python Craftsman
3 Books
The Python Craftsman series comprises The Python Apprentice, The Python Journeyman, and The Python Master. The first book is primarily suitable for programmers with some experience of programming in another language. If you don't have any experience with programming this book may be a bit daunting. You'll be learning not just a programming...