Skip to content

Conversation

Fendo181
Copy link
Owner

@Fendo181 Fendo181 commented Apr 30, 2018

何を解決するのか

こちらの記事のLaravel Tutorial: Step by Step Guide to Building Your First Laravel Applicationが更新されて5.6系に対応した記述になっている。記事を翻訳した当初(2017/07)は5.4系でテストに対する項目もなかったり等、古い記述のままになっている為、再度自分の手元の環境で動作検証を行い、変更点を把握します。

把握した後は以下の記事を更新する予定です。

詳細

変更点

  • ModelFactoryがない。
    • 代わりにUserFactoryがデフォルトである状態になっている。
    • php artisan make:model --factory Linkを実行して、LinkList専用のModelファクトリーを追記する。
      • このコマンドを実行すると自動でLinkモデルとLinkFactory.phpが追加される。
  • php artisan migrate:freshの説明追記
    • php artisan migrate:freshコマンドは、全部のデータベースマイグレーションを最初にロールバックし、それからmigrateコマンドを実行します。このコマンドはデータベース全体を作り直すために便利です。
  • php artisan migrate:fresh --seed
php artisan migrate:fresh --seed
Dropped all tables successfully.
Migration table created successfully.
Migrating: 2014_10_12_000000_create_users_table
Migrated:  2014_10_12_000000_create_users_table
Migrating: 2014_10_12_100000_create_password_resets_table
Migrated:  2014_10_12_100000_create_password_resets_table
Migrating: 2018_04_30_223346_create_links_table
Migrated:  2018_04_30_223346_create_links_table
Seeding: LinksTableSeeder
  • php artisan tinkerの追加
>>> \App\Link::first();
=> App\Link {#2308
     id: 1,
     title: "Aut ipsa",
     url: "http://www.lemke.biz/qui-provident-eaque-dolores-quis.html",
     description: "Architecto nesciunt omnis eum nesciunt quo. Qui perspiciatis voluptatem nisi quibusdam esse alias. Consectetur minima facilis quo ipsum accusantium.",
     created_at: "2018-04-30 22:52:08",
     updated_at: "2018-04-30 22:52:08",
   }

レビューポイント

レビュアー

期限

なるはやで

@Fendo181 Fendo181 changed the title 【WIP】5.6に対応したLaravel Tutorialの動作検証 【WIP】5.6に対応したLaravel Tutorialの動作検証 Apr 30, 2018
@Fendo181 Fendo181 force-pushed the laravel_tutorial_linklist branch from 6dd1a88 to d4b449d Compare June 26, 2018 00:28
@Fendo181 Fendo181 force-pushed the laravel_tutorial_linklist branch from 0b1c755 to 5e4b357 Compare December 4, 2018 22:30
@Fendo181 Fendo181 changed the title 【WIP】5.6に対応したLaravel Tutorialの動作検証 5.6に対応したLaravel Tutorialの動作検証 Dec 5, 2018
@Fendo181
Copy link
Owner Author

Fendo181 commented Dec 5, 2018

一旦、はじめてのLaravelアプリケーションを構築する為のStep by Step Guide - Qiitaの方は、5.6には対応できたのでマージします!

こちらは別PRで対応します! 👌

はじめてのLaravelアプリケーションを構築する為のStep by Step Guide - Qiita

@Fendo181 Fendo181 merged commit 06f3f4f into master Dec 5, 2018
@Fendo181 Fendo181 deleted the laravel_tutorial_linklist branch December 5, 2018 05:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant