{"id":243,"date":"2016-04-19T11:34:45","date_gmt":"2016-04-19T11:34:45","guid":{"rendered":"https:\/\/www.vibidsoft.com\/blog\/?p=243"},"modified":"2025-05-02T11:37:26","modified_gmt":"2025-05-02T11:37:26","slug":"new-feature-of-laravel-5","status":"publish","type":"post","link":"https:\/\/www.vibidsoft.com\/blog\/new-feature-of-laravel-5\/","title":{"rendered":"What\u2019s New in Laravel: Structure, Routing &#038; Validation \ufffc"},"content":{"rendered":"<p><!--<a href=\"https:\/\/www.vibidsoft.com\/blog\/wp-content\/uploads\/2016\/04\/vibid_laravel.png\"><img loading=\"lazy\" class=\" size-full wp-image-244 aligncenter\" src=\"https:\/\/www.vibidsoft.com\/blog\/wp-content\/uploads\/2016\/04\/vibid_laravel.png\" alt=\"vibid_laravel\" width=\"800\" height=\"312\" \/><\/a> --><\/p>\n<ol>\n<li><strong>Directory structure<\/strong><\/li>\n<\/ol>\n<p>significantly different from the previous versions.\u00a0config \/, database \/, storage \/ and resources \/ (includes the old app \/ views \/ and app \/ lang \/) are now located outside of app \/ and directories within app \/ were fine divided into folders with a capital letter beginning: Commands \/, Console \/, Events \/, exception \/, handler \/ Http \/ (includes routes.php), provider \/, Services \/<\/p>\n<ol start=\"2\">\n<li><strong>Middlewares<\/strong><\/li>\n<\/ol>\n<p>Allow the request (Request) before and change after editing.\u00a0This functionality has\u00a0been taken over by the filter (in filters.php).\u00a0The new approach is simpler, cleaner and more flexible.<\/p>\n<ol start=\"3\">\n<li><strong>Route Caching<\/strong><\/li>\n<\/ol>\n<p>Command\u00a0<strong>artisan route: cache<\/strong>\u00a0now allows caching all Routes (routes.php).\u00a0These must not be parsed on each page view.\u00a0This can greatly reduce the load times for large volume applications.<\/p>\n<ol start=\"4\">\n<li><strong>Laravel Scheduler<\/strong><\/li>\n<\/ol>\n<p>Simplifies setting up cron jobs or repetitive tasks.\u00a0You have to create (for each minute), the\u00a0<strong>artisan<\/strong>\u00a0the\u00a0<strong>schedule<\/strong>\u00a0command only a cron\u00a0<strong>job: run<\/strong>\u00a0calls and communicate with\u00a0<strong>$ schedule<\/strong>\u00a0a then many methods available to create tasks.\u00a0Including the option to save the output to a file or to be send via email.<\/p>\n<ol start=\"5\">\n<li><strong>Form validation<\/strong><\/li>\n<\/ol>\n<p>New class\u00a0<strong>Illuminate \\ Foundation \\ Http \\ Request form<\/strong>\u00a0now allows to define rules for form validations.\u00a0If the shape of the user is not validated by default to the original page in a\u00a0<strong>resources \/ lang \/ en \/ validation.php<\/strong>\u00a0(s is the country code replaces) the notification set out run.\u00a0Also can check whether the user is actually authorized for this request is.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Directory structure significantly different from the previous versions.\u00a0config \/, database \/, storage \/ and resources \/ (includes the old app \/ views \/ and app \/ lang \/) are now located outside of app \/ and directories within app \/&#8230; <a class=\"more-link\" href=\"https:\/\/www.vibidsoft.com\/blog\/new-feature-of-laravel-5\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":244,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[90,8,1],"tags":[91,92,94,93,20],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/posts\/243"}],"collection":[{"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/comments?post=243"}],"version-history":[{"count":4,"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/posts\/243\/revisions"}],"predecessor-version":[{"id":2327,"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/posts\/243\/revisions\/2327"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/media\/244"}],"wp:attachment":[{"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/media?parent=243"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/categories?post=243"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vibidsoft.com\/blog\/wp-json\/wp\/v2\/tags?post=243"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}