Laravel Repository Pattern: A Full Base Repository Example for Laravel 4

The repository pattern is gaining popularity in the PHP community these days. Here is a Base Repository class you can use to build your own implementation.

Christ’s Family Clinic

Christ's Family Clinic
Christ’s Family Clinic

January 2014

The christsfamilyclinic.org site is an informational and fundraising website built for the Dallas, Texas-based healthcare provider Christ’s Family Clinic. The site features the latest in responsive design techniques and boasts the ability to accept charitable online donations via Authorize.net payment gateway integration.

Project Technologies

  • WordPress
  • Divi
  • Authorize.net
  • PHP
  • HTML5
  • CSS3
  • jQuery/JavaScript
  • Graphic Design
  • Search Engine Optimization

One Irving

One Irving - Making the Grade
One Irving – Making the Grade

September 2013

The oneirving.org site is an informational website built for the Irving, Texas-based five-year educational initiative, Making the Grade. The site was developed for Numantra, a Dallas Business Journal Top 20 Agency.

Project Technologies

  • WordPress
  • PHP
  • HTML5
  • CSS3
  • jQuery/JavaScript
  • Graphic Design
  • Search Engine Optimization

What Version of Laravel 4 do I have Installed?

Laravel Framework Logo

Laravel 4 is amazing. It has made development fun again, the same way CodeIgniter did for me a few years ago. Sadly, many developers are abandoning CodeIgniter, and even Ellis Lab seems content to let it fade quietly into the night.

I recently needed to know which version of Laravel 4 was installed on my development machine vs. my staging server for some debugging. I never did find anywhere in the Laravel 4 documentation where I could locate this information, and my Google-Fu was not helping much either. Eventually I did find this information by browsing the core source files, so I thought I would write up a quick blog post for anyone else looking for an answer to this question.

You can look in vendor\laravel\framework\src\Illuminate\Foundation\Application.php.

Near the top of the class you should see the following constant defined: