- Directory structure
significantly different from the previous versions. config /, 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 /
- Middlewares
Allow the request (Request) before and change after editing. This functionality has been taken over by the filter (in filters.php). The new approach is simpler, cleaner and more flexible.
- Route Caching
Command artisan route: cache now allows caching all Routes (routes.php). These must not be parsed on each page view. This can greatly reduce the load times for large volume applications.
- Laravel Scheduler
Simplifies setting up cron jobs or repetitive tasks. You have to create (for each minute), the artisan the schedule command only a cron job: run calls and communicate with $ schedule a then many methods available to create tasks. Including the option to save the output to a file or to be send via email.
- Form validation
New class Illuminate \ Foundation \ Http \ Request form now allows to define rules for form validations. If the shape of the user is not validated by default to the original page in a resources / lang / en / validation.php (s is the country code replaces) the notification set out run. Also can check whether the user is actually authorized for this request is.
Leave a Reply
You must be logged in to post a comment.