{"id":1921,"date":"2016-12-05T07:58:02","date_gmt":"2016-12-05T07:58:02","guid":{"rendered":"http:\/\/www.capitalnumbers.com\/blog\/?p=1921"},"modified":"2025-08-11T10:49:58","modified_gmt":"2025-08-11T10:49:58","slug":"decoding-the-all-new-laravel","status":"publish","type":"post","link":"https:\/\/www.capitalnumbers.com\/blog\/decoding-the-all-new-laravel\/","title":{"rendered":"Decoding The All New Laravel"},"content":{"rendered":"<p>Laravel is the most popular PHP framework in 2016. It&#8217;s free, open-source and built for MVC architecture. It mainly focuses on elegance, simplicity, readability and relies on modular packaging system and utilities that help in database and application maintenance and deployment. Its source code is hosted on GitHub and can be used across all operating systems.<\/p>\n<p><span style=\"font-weight: 400;\">The latest stable version Laravel 5.3 is now available and the Laravel team has added a lot of features for improving developer speed by adding additional out of the box improvements for common tasks.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><b>Laravel Scout &#8211;<\/b><span style=\"font-weight: 400;\"> New driver based solution for adding advanced search and full-text search to Eloquent models. It automatically keeps the search indexes in sync with Eloquent records by using model observers. It currently ships with an Algolia driver, however, can be easily extended with other search implementations.<\/span><\/li>\n<li style=\"font-weight: 400;\"><b>Laravel Passport &#8211;<\/b><span style=\"font-weight: 400;\"> Native OAuth2 server and API authentication package built on top of the League OAuth2 Server maintained by Alex Bilbie.<\/span><\/li>\n<li style=\"font-weight: 400;\"><b>Laravel Mailable &#8211;<\/b><span style=\"font-weight: 400;\"> PHP classes for sending emails.<\/span><\/li>\n<li style=\"font-weight: 400;\"><b>Laravel Notifications &#8211;<\/b><span style=\"font-weight: 400;\"> API for sending notifications across a variety of delivery channels, mail, SMS (via Nexmo) and Slack.<\/span><\/li>\n<li style=\"font-weight: 400;\"><b>Laravel Echo &#8211;<\/b><span style=\"font-weight: 400;\"> A Javascript package installable via NPM which provides an API for subscribing to channels and listening for server-side events in client-side JavaScript application. It includes support for Pusher and Socket.io. <\/span><\/li>\n<li style=\"font-weight: 400;\"><b>Laravel Elixir &#8211;<\/b><span style=\"font-weight: 400;\"> The new version (6.0) contains baked-in support for the Webpack and Rollup Javascript module bundlers. <\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Few of the upcoming features in next version (5.4) of Laravel are:<\/span><\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li style=\"font-weight: 400;\"><b>JSON Based Language Files &#8211;<\/b><span style=\"font-weight: 400;\"> For better support and handling of multilingual project requirements and applications.<\/span><\/li>\n<li style=\"font-weight: 400;\"><b>Laravel Blade Components &amp; Slots &#8211;<\/b><span style=\"font-weight: 400;\"> Ability to add Components &amp; Slots to Blade templates.<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li><b><b>Higher Order Messaging For Collections<\/b><\/b><\/li>\n<\/ul>\n<p>Compared to Laravel 5.2, there are few changes also in Laravel 5.3 which are worth mentioning:<\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">In Laravel 5.2, the routes file (routes.php) was in the Http directory (app\\Http\\routes.php) whereas in Laravel 5.3, routes is a new folder (top first level) which contains two files namely web.php and api.php. Thus there is no routes.php file in Laravel 5.3 and you can set up routes for web and API separately using these two files.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The middleware group registering file (app\\Http\\Kernel.php) contains separately defined middleware group for web and API in Laravel 5.3. Similarly in route service provider file (app\\Providers\\RouteServiceProvider.php) also, web and API specific routes are defined separately. <\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The app directory in Laravel 5.3 is more simple. In Laravel 5.2, there were folders like Events, Jobs, Listeners and Policies which were not always used by default. In Laravel 5.3, these folders are not available natively and you have to run associated commands to create that on-demand. <\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The Fluent Query Builder in Laravel 5.3 now returns Collection (Illuminate\\Support\\Collection) instances instead of plain arrays.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">There is a new cache() global helper in Laravel 5.3 which can perform three primary functions &#8211; get, put or return an instance of the backing service.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">While using the for each and for else Blade directives, $loop object is available for each iteration. <\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">A new toggle() method is available on all belongsToMany relationships which solves the issue of deleting an existing pivot table record or adding a new one.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The uploaded File instance has a new store() method for storing files on the server including S3.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Laravel\u2019s modular packaging system, user-friendliness, and elegance have generated huge interest among developers and customers worldwide and it is expected to continue staying at the top. The main benefits which this framework offer are:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Fast and secure development.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Well-organized, reusable and maintainable coding options.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Scalability of web apps.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">High level security.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Follows the OOP (Object-Oriented Programming), MVC (Model-View-Controller) patterns and security which ensures the separation of presentation and logic.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Promotes advanced and modern web development practices. <\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Because of its simplicity, easy learning curve, and rapid application development support, we at \u00a0Capital Numbers are extensively using Laravel to develop large, robust and efficient web applications and customized solutions, REST API (using Lumen which is a stunningly fast PHP Micro-Framework by Laravel) and deliver bug-free codes by performing unit tests. <\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Laravel is the most popular PHP framework in 2016. It&#8217;s free, open-source and built for MVC architecture. It mainly focuses on elegance, simplicity, readability and relies on modular packaging system and utilities that help in database and application maintenance and deployment. Its source code is hosted on GitHub and can be used across all operating &#8230;<\/p>\n","protected":false},"author":13,"featured_media":1922,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false},"categories":[1601,743,744],"tags":[1099,1100,1110,1376,1384,1385],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.capitalnumbers.com\/blog\/wp-json\/wp\/v2\/posts\/1921"}],"collection":[{"href":"https:\/\/www.capitalnumbers.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.capitalnumbers.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.capitalnumbers.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.capitalnumbers.com\/blog\/wp-json\/wp\/v2\/comments?post=1921"}],"version-history":[{"count":4,"href":"https:\/\/www.capitalnumbers.com\/blog\/wp-json\/wp\/v2\/posts\/1921\/revisions"}],"predecessor-version":[{"id":16197,"href":"https:\/\/www.capitalnumbers.com\/blog\/wp-json\/wp\/v2\/posts\/1921\/revisions\/16197"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.capitalnumbers.com\/blog\/wp-json\/wp\/v2\/media\/1922"}],"wp:attachment":[{"href":"https:\/\/www.capitalnumbers.com\/blog\/wp-json\/wp\/v2\/media?parent=1921"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.capitalnumbers.com\/blog\/wp-json\/wp\/v2\/categories?post=1921"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.capitalnumbers.com\/blog\/wp-json\/wp\/v2\/tags?post=1921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}