LoginSignup
1
2

More than 5 years have passed since last update.

Laravel5.6チュートリアル 中級者向けタスクリスト

Posted at

前回に引き続きLaravel5.1の中級者向けタスクリストをLaravel5.6でやっていく。
こちらは量が多いので関数の変更等目立つ差分だけ抽出して書く。

データベースの準備

Eloquentリレーション

Userモデルのextends以降が随分違うが、extends Authenticatableのままでいいっぽい。

app/User.php
class User extends Authenticatable{
    // ほにゃらら
}

ルーティング

認証

認証周りはサクッと生成してしまう。

php artisan make:auth

gitで生成後の差分はわかるので、それを写経すると勉強になりそう。

タスク削除

ルートモデル結合

app/Providers/RouteServiceProvider.php
parent::boot();
Route::model('user', App\User::class);

https://readouble.com/laravel/5.6/ja/routing.html
明示的な結合項を参考に。

参考

https://readouble.com/laravel/5.1/ja/quickstart-intermediate.html
https://readouble.com/laravel/5.6/ja/authentication.html
https://readouble.com/laravel/5.1/ja/authentication.html
https://readouble.com/laravel/5.6/ja/container.html
https://readouble.com/laravel/5.6/ja/routing.html

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2