HomeLaravel

Laravel 5 tutorial : Laravel v5.3.19 is now released [HOT]

Laravel 5.3 tutorial - Laravel v5.3.19 is now released, laravel latest version is Laravel 5.3.19 release data today. Update Laravel v5.3.19 is now released.

Laravel 5 Vue Js Tutorial : How to Install Vue Js & Getting start in laravel 5
Laravel 5.3 : Sending an email verification after registering new user in Laravel 5.3
laravel 5 : Google Charts, Simple Geo Chart using Lavacharts in Laravel 5.3
Laravel 5 tutorial - Laravel released v5.3.19 which includes a few small changes and improvements as well as a complete rewrite of the middleware sorting so that middleware calls with parameters now work properly.

Laravel 5.3.19 make:model

A new addition to Laravel is the ability to specify the creation of a resourceful controller when you are creating a new Model through Artisan, see how to make model in laravel 5.3. This means you can pass a -c or --controller flag to make:model :

php artisan make:model Post --controller

Laravel Image Dimensions Validation

New in Laravel v5.3 is the ability to validate image files to ensure they meet certain dimensions and through the validator this can be setup with a string format:

'avatar' => 'dimensions:min_width=100,min_height=200,ratio=3/2'

Now in v5.3.19 this can be specified through a fluent syntax similar to unique and exists validation rules:

Rule::dimensions()->minWidth(100)->minHeight(100)->ratio(3/2)

laravel 5 release date

Laravel Validation in and not_in

Read how to use Validation in laravel 5.3. The in and not_in validation received the ability to pass an array.

// Previous
in:php,laravel,...
// New
Rule::in(['php','laravel'])

Then the same for not_in

// Previous
not_in:php,laravel,...
// New
Rule::notIn(['php', 'laravel'])

Either style is valid and the new object-based style parses down into the old way. So you are free to use whichever suits your app.

After Validation Hook

Now your controllers can have a new withValidator method so you can easily call any hooks after validation:

protected function withValidator($validator) 
{
  $validator->after(function($validator) {
    if ($this->somethingElseIsInvalid()) {
        $validator->errors()->add('field', 'Something is wrong with this field!');
    }
  });
}

Previously you had to manually setup the $validator = Validator::make() before you could use an after hook which meant you lost the ability to utilize the ValidatesRequests trait.

Upgrading Laravel

To get this latest version all you need to do is run composer update and you can find a complete list of changes in the changelog.

References : https://laravel-news.com/2016/10/laravel-v5-3-19/?utm_medium=feed&utm_source=twitter.com&utm_campaign=Feed%3A+laravelnews

Laravel 5.3 Video's Tutorial



See you next Lessons ...

Feel free to code it up and send us a pull request.

Hi everyone, let's me know how much this lesson can help your work. Please Subscribe and Follow Our Social Media 'kodeajaib[dot]com' to get Latest tutorials and will be send to your email everyday for free!, Just hit a comment if you have confused. Nice to meet you and Happy coding :) all ^^



Follow by E-Mail


COMMENTS

DISQUS
Name

ADO.NET,3,Ajax,6,Android,9,AngularJS,4,ASP.NET,4,Blogger Tutorials,7,Bootstrap,7,C++,1,Codeigniter,2,Cplusplus,6,Crystal Report,6,CSharp,25,Ebook Java,2,FlyExam,1,FSharp,3,Game Development,2,Java,35,JDBC,2,Laravel,89,Lumen,2,MariaDB,2,Ms Access,3,MySQL,31,ODBC,6,OleDB,1,PHP,14,PHP Framework,6,PHP MYSQLI,9,PHP OOP,5,Python,8,Python 3,4,SQL Server,4,SQLite,4,Uncategorized,5,Vb 6,2,Vb.Net,89,Video,48,Vue Js,4,WPF,2,Yii,3,
ltr
item
KODE AJAIB: Laravel 5 tutorial : Laravel v5.3.19 is now released [HOT]
Laravel 5 tutorial : Laravel v5.3.19 is now released [HOT]
Laravel 5.3 tutorial - Laravel v5.3.19 is now released, laravel latest version is Laravel 5.3.19 release data today. Update Laravel v5.3.19 is now released.
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdMgYctMiql1EynEXNxDq444NN6gfL6za0XWA1k-TsOXShufDWBSrelyOlr-uxnv7hFRivxKk1iT98xZ3PI8nBtmUZz0_Pa4Xzmzgy0qRr1FPvoIJpXg71MQk9MNBYJrzPchBTUl5oqsA/s320/laravel-5-3-release-date.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdMgYctMiql1EynEXNxDq444NN6gfL6za0XWA1k-TsOXShufDWBSrelyOlr-uxnv7hFRivxKk1iT98xZ3PI8nBtmUZz0_Pa4Xzmzgy0qRr1FPvoIJpXg71MQk9MNBYJrzPchBTUl5oqsA/s72-c/laravel-5-3-release-date.png
KODE AJAIB
https://scqq.blogspot.com/2016/10/laravel-5-v5319-is-released-date.html
https://scqq.blogspot.com/
https://scqq.blogspot.com/
https://scqq.blogspot.com/2016/10/laravel-5-v5319-is-released-date.html
true
3214704946184383982
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy