03.01.2019 Views

What’s New in Laravel 5.6 _ [ Complete Guide ] (2)

Laravel 5.6 released: Laravel had come up with it's new features. Below mentioned are some new features that every developer should know. Laravel Development is a framework for PHP web development which contains some of the advance feature rather then other frameworks.To know more https://bit.ly/2R40Qzd

Laravel 5.6 released: Laravel had come up with it's new features. Below mentioned are some new features that every developer should know. Laravel Development is a framework for PHP web development which contains some of the advance feature rather then other frameworks.To know more https://bit.ly/2R40Qzd

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

{{ csrf_field()}}<br />

{{ method_field("DELETE")}}<br />

<br />

<br />

<strong>Laravel</strong> <strong>5.6</strong> you will be used below.<br />

<br />

@csrf<br />

@method("DELETE")<br />

<br />

<br />

In <strong>Laravel</strong>, it’s necessary to use csrf protection <strong>in</strong> your application every HTTP<br />

request, you must <strong>in</strong>clude a csrf token <strong>in</strong> hidden files like _token to save. <strong>Laravel</strong><br />

<strong>5.6</strong> you need to do just @csrf.<br />

You can not declare any PATH, PUT or DELETE requests <strong>in</strong> HTML forms. You<br />

need to add just hidden _method field to tell <strong>Laravel</strong> HTTP request.<br />

2) Remove Artisan Optimize command <strong>in</strong> <strong>Laravel</strong> <strong>5.6</strong><br />

php artisan optimize command was deprecated as of <strong>Laravel</strong> 5.5, After the<br />

official release of <strong>Laravel</strong> <strong>5.6</strong>, it is removed.<br />

In <strong>Laravel</strong> 5.5, the composer.json <strong>in</strong> your applications root folder no longer<br />

references optimize <strong>in</strong> the post-<strong>in</strong>stall-cmd and post-update-cmd scripts. In<br />

<strong>Laravel</strong> <strong>5.6</strong> you can not used optimize command <strong>in</strong> your applications.<br />

In <strong>Laravel</strong> 5.5 use of optimize command generates a deprecated warn<strong>in</strong>g and<br />

now after the release <strong>Laravel</strong> <strong>5.6</strong> it is completely removed. So once you are<br />

update to <strong>Laravel</strong> <strong>5.6</strong> be sure to remove the command from your composer.json.<br />

3) <strong>Laravel</strong> <strong>5.6</strong> will Support the Argon2i Password Hash<strong>in</strong>g Algorithm<br />

The Argon2i password hash<strong>in</strong>g support will be supported by <strong>Laravel</strong> <strong>5.6</strong> (require<br />

php 7.2).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!