Join 26,000+ Laravel Developers and join the free Laravel Newsletter

Helpers

5 Laravel Helpers to Make Your Life Easier
Laravel Tutorials / February 21, 2018

5 Laravel Helpers to Make Your Life Easier

There are a ton of helper methods in Laravel that make development more efficient. If you work with the framework, I encourage you to see what helpers you can introduce in your day-to-day work. In this blog post, I’d like to point out a few of my favorites.

Read more…
Creating Your Own PHP Helpers in a Laravel Project
Laravel Tutorials / December 07, 2017

Creating Your Own PHP Helpers in a Laravel Project

Laravel provides many excellent helper functions that are convenient for doing things like working with arrays, file paths, strings, and routes, among other things like the beloved dd() function. You can also define your own set of helper functions for your Laravel applications and PHP packages, by using Composer to import them automatically.

Read more…
Laravel throw_if and throw_unless Helpers
Laravel 5.5 / May 15, 2017

Laravel throw_if and throw_unless Helpers

Coming to Laravel 5.5 is two new helper methods named `throw_if` and `throw_unless` and both are designed to make it easier to throw exceptions.

Read more…
Which Laravel Helper Do You Use for Your URLs?
Laravel Tutorials / April 06, 2017

Which Laravel Helper Do You Use for Your URLs?

Jacob Bennett ran a Twitter poll to see which URL helper most developers are using for their Blade views. The route helper won out and in this article let’s look at the different styles and some of the advantages and disadvantages to each.

Read more…
Using str_limit to restrict a string to a certain length
Laravel Tutorials / October 08, 2016

Using str_limit to restrict a string to a certain length

When building for the web, there are many different ways to limit a string. For example, you could use CSS, JavaScript, or do it through PHP. Limiting strings is such a common use case that Laravel provides a simple helper to make this easy and I’ve recorded a short video to give you an example …