Rob Simpkins shares five awesome code snippets that he frequently uses across all his Laravel applications.

These snippets are very useful. Be sure to check them out and use them for your projects!


Since joining Klyp twelve months ago, I’ve been working exclusively with this awesome framework to deliver a number of different client projects. But for all it can do, Laravel still doesn’t do everything (I’ve got to write some code, right?).

So, to help save my developer brethren some valuable time I’ve chosen five of the code snippets that I re-use across all of my Laravel apps. I’ll endeavour to explain what each snippet does and how you’d use it; and perhaps it’ll save you from having to reinvent the wheel.