Base repository implementation for laravel 4.x