Php activerecord implementation for laravel 4.