diff --git a/CHANGELOG-5.6.md b/CHANGELOG-5.6.md index 39034332ab42..9b42f099b17e 100644 --- a/CHANGELOG-5.6.md +++ b/CHANGELOG-5.6.md @@ -14,6 +14,9 @@ - Show job id in `queue:work` output ([#21204](https://github.com/laravel/framework/pull/21204)) - Show batch number in `migrate:status` output ([#21391](https://github.com/laravel/framework/pull/21391)) +### Blade Templates +- Added `@csrf` and `@method` directives ([5f19844](https://github.com/laravel/framework/commit/5f1984421af096ef21b7d2011949a233849d4ee3)) + ### Database - ⚠️ Swap the index order of morph type and id ([#21693](https://github.com/laravel/framework/pull/21693)) diff --git a/src/Illuminate/Auth/Console/stubs/make/views/auth/login.stub b/src/Illuminate/Auth/Console/stubs/make/views/auth/login.stub index 5f0f347f079e..627c9fbbd285 100644 --- a/src/Illuminate/Auth/Console/stubs/make/views/auth/login.stub +++ b/src/Illuminate/Auth/Console/stubs/make/views/auth/login.stub @@ -9,7 +9,7 @@
- {{ csrf_field() }} + @csrf
diff --git a/src/Illuminate/Auth/Console/stubs/make/views/auth/passwords/email.stub b/src/Illuminate/Auth/Console/stubs/make/views/auth/passwords/email.stub index 6955ba64cb75..3a9614c2f753 100644 --- a/src/Illuminate/Auth/Console/stubs/make/views/auth/passwords/email.stub +++ b/src/Illuminate/Auth/Console/stubs/make/views/auth/passwords/email.stub @@ -15,7 +15,7 @@ @endif - {{ csrf_field() }} + @csrf
diff --git a/src/Illuminate/Auth/Console/stubs/make/views/auth/passwords/reset.stub b/src/Illuminate/Auth/Console/stubs/make/views/auth/passwords/reset.stub index 637768982d15..760e8b4b0550 100644 --- a/src/Illuminate/Auth/Console/stubs/make/views/auth/passwords/reset.stub +++ b/src/Illuminate/Auth/Console/stubs/make/views/auth/passwords/reset.stub @@ -9,7 +9,7 @@
- {{ csrf_field() }} + @csrf diff --git a/src/Illuminate/Auth/Console/stubs/make/views/auth/register.stub b/src/Illuminate/Auth/Console/stubs/make/views/auth/register.stub index aa7e6450b15d..3f556072ee5c 100644 --- a/src/Illuminate/Auth/Console/stubs/make/views/auth/register.stub +++ b/src/Illuminate/Auth/Console/stubs/make/views/auth/register.stub @@ -9,7 +9,7 @@
- {{ csrf_field() }} + @csrf
diff --git a/src/Illuminate/Auth/Console/stubs/make/views/layouts/app.stub b/src/Illuminate/Auth/Console/stubs/make/views/layouts/app.stub index afe2c9d1a58d..65181845b928 100644 --- a/src/Illuminate/Auth/Console/stubs/make/views/layouts/app.stub +++ b/src/Illuminate/Auth/Console/stubs/make/views/layouts/app.stub @@ -49,7 +49,7 @@ - {{ csrf_field() }} + @csrf