Anthony Rappa

Stuff I learned along the way

Author: Anthony

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…

Adding commas to numbers using jQuery

First define your function:

Then, call it on the object you want to modify:

1000000 becomes 1,000,000

Extracting query string components with Javascript

Most of the time, you will use PHP to grab query string components off of your URI using $_GET, but…

Counting how many checkboxes in a group are selected using jQuery

If have a group of checkboxes and you need to see how many are selected, or if any are selected…

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