Laravel helper functions new to Laravel 5

Helper functions allow for shorter, sometimes cleaner, code. Here is the current list of Laravel helper functions added in Laravel 5, with one or two usage examples for each.

Routing

Helpers used for routes, for a cleaner routes.php

[wc_pre color=”1″ wrap=”0″ scrollable=”0″ linenums=”0″ name=”php1″]

Controllers

Helpers for common return values used in controllers.

[wc_pre color=”1″ wrap=”0″ scrollable=”0″ linenums=”0″ name=”php2″]

Miscellaneous

Helpers for other commonly invoked methods.

[wc_pre color=”1″ wrap=”0″ scrollable=”0″ linenums=”0″ name=”php3″]

See also: What’s new in Laravel 5

Share and Enjoy

  • Facebook
  • Twitter
  • Google Plus
  • LinkedIn
  • Reddit
  • Pinterest

Comments

  1. By Arief

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *