Anthony Rappa

Stuff I learned along the way

Category: PHP

Laravel Eloquent naming convention guide

In order to use Eloquent the way it was intended, you need to follow the naming conventions that the core…

How to make custom blade extensions in Laravel 5

Blade is the templating engine that comes stock with a Laravel installation. It provides ways to section, display data, use…

How to use Service Injection in Laravel 5

If for whatever reason you need a resource in a blade view that you can’t pass through the controller, you…

Implementing the Repository/Interface pattern in Laravel 5

This is one of those more advanced topics that took me a really long time, and lots of trial and…

Trigger DELETE requests with a link in Laravel 5

I learned quickly that using resources in Laravel was a pain due to the fact you had to messy up…

Injecting javascript into views using Laravel 5

Sometimes you may need to generate some information server side and make it available as a javascript object in your…

Adding form macros to Laravel 5

As of the Laravel 5 release, it no longer comes with the HTML or Form Facades. This is for a…

Using Gravatar in Laravel 5

Most applications now-a-days don’t even ask you to upload an image of yourself for use, unless of course it’s a…

© 2017 Anthony Rappa. Theme by Anders Norén.