Helpers

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 … Continue reading Using str_limit to restrict a string to a certain lengthRead more…