Leanpub Header

Skip to main content

入門 Laravel チュートリアル

Web アプリケーションフレームワーク Laravel で ToDo アプリを作りながら、モダンな PHP アプリケーション開発を習得しましょう!この本はフレームワークの機能の羅列ではありません。それらを組み合わせてゼロからどうやってアプリを開発するのか、にフォーカスしたハンズオンチュートリアルです。また、コードの書き方だけでなく、簡単な URL 設計とテーブル設計にも一章を割くことで Web 開発のエッセンスを学べるように書きました。執筆時点で最新版の Laravel 6.0(LTS)に対応しています。

Minimum price

$9.00

$9.00

You pay

$9.00

Author earns

$7.20
$

...Or Buy With Credits!

You can get credits monthly with a Reader Membership
PDF
EPUB
WEB
About

About

About the Book

この本の対象は、Web 開発、特にフレームワークを用いた開発の経験が浅い方を想定しています。PHP の文法は学んだけれど、「で?何をどう作ればいいの?」という、次のステップに読んでほしいです。

Laravel で ToDo アプリを一画面ずつ作る過程を順を追って解説することで、以下のトピックに一通り触れています。

  • URLやテーブルの設計
  • ルーティング
  • コントローラー
  • ミドルウェア
  • テンプレート
  • モデルとORM
  • 単体テスト

たくさんある Laravel の機能のうち一部しか紹介できていないですが、開発のプロセスや考え方が学び取れる内容です。

Share this book

Categories

Author

About the Author

Masahiro Harada

Software engineer in Japan. Building web applications with PHP, JavaScript, HTML, CSS since 2012.

Also blogging about web development.

Contents

Table of Contents

イントロダクション

  1. はじめに
  2. 対象者
  3. 学ぶこと、学ばないこと
  4. ソフトウェアバージョン
  5. 参考文献
  6. 作るもの

Cloud 9 で環境構築

  1. Cloud 9 の利用料について
  2. Cloud 9 の開発環境を作成する
  3. PHP
  4. Composer
  5. Laravel アプリ作成
  6. ローカルサーバー起動
  7. プレビュー
  8. PostgreSQL

ToDoアプリケーションの設計

  1. どんな設計が必要?
  2. 機能一覧
  3. 画面設計
  4. URL設計
  5. テーブル定義
  6. Web アプリケーションフレームワーク

フォルダ一覧表示機能

  1. ルーティング
  2. マイグレーションとモデルクラス
  3. テストデータを挿入する
  4. コントローラー
  5. テンプレートの作成
  6. フォルダ名を選択表示にする
  7. 最後のおまけ(ログの出力先)

タスク一覧表示機能

  1. マイグレーションとモデルクラス
  2. テストデータの作成と確認
  3. コントローラー
  4. テンプレート
  5. Task モデルにアクセサを追加する
  6. モデルクラスにおけるリレーション

フォルダ作成機能

  1. ルーティング
  2. フォームを表示する
  3. フォルダを保存する
  4. 入力値バリデーション

タスク作成機能

  1. ルーティング
  2. フォームを表示する
  3. レイアウトでテンプレートを整理する
  4. タスクを保存する
  5. 期限日のバリデーションをテストする

タスク編集機能

  1. ルーティング
  2. フォームを表示する
  3. テンプレートを部品化する
  4. タスクを編集する
  5. 状態のバリデーションをテストする

認証機能

  1. ユーザーとフォルダを紐づける
  2. ホームページを作成する
  3. 会員登録機能
  4. ログイン機能

認証機能 パート2

  1. ヘッダーの出し分け
  2. ログアウト
  3. ページに認証を求める
  4. ログイン前のみ閲覧できるページ
  5. ユーザーとしてフォルダを作成する
  6. ユーザーとしてタスクを表示する
  7. ホームページをブラッシュアップする
  8. パスワード再設定機能

エラーハンドリング

  1. 存在しないコンテンツ
  2. 権限がないコンテンツ
  3. リレーションが存在しない
  4. エラー画面を作ろう

ToDoアプリをHerokuにデプロイする

  1. Heroku とは
  2. 準備
  3. Heroku に新規アプリを作成する
  4. アドオンを追加する
  5. デプロイ

付録 A - GitHub の利用方法

  1. SSH 鍵を作成する
  2. 公開鍵を登録する

付録B - Homestead での環境構築

  1. インストール
  2. 仮想環境の操作
  3. ホストとゲスト
  4. プロジェクトの新規作成

付録C - Docker での環境構築

  1. Docker のインストール
  2. Docker 設定ファイルの作成
  3. コンテナの起動とアプリケーションの作成
  4. 開発にあたって

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub