What are the New Features in Laravel 5.5?
Version 5.5 of Laravel is officially released! This release is jam-packed with goodies and improvements, here’s a quick summarizing the highlight features. 1. New Route Methods introduced in Laravel 5.5 Laravel 5.5 shipped a couple of convenient shortcuts to the Laravel Router class that eliminates the need for creating a controller or closure only to return a simple view or redirect. If you missed them in the release notes, let’s look at them briefly, they are sure to simplify your code and remove a couple of files. The Route::view method The Route::view method eliminates the need for routes that only need a view returned. Instead of using a controller or a closure, you can define a URI and a path to a view file: // resources/views/pages/about.blade.php Route::view('/about', 'pages.about'); You can also pass in an array of variables that will be passed to the view: Route::view('/about', 'pages.about', ['year' => date('...