So, this question has been asked a lot, but there has to be a better way of doing it. Using a typica...
behaviour is detailed at http://laravel.io/bin/d9vEP (model classes are at the bottom) Basically, I...
Hopefully the following code will set up background. class Freelancer extends Eloquent{ public f...
Could you add a column to the Post table that was JSON (which can be cast to an array). You could th...
I think the SQL would look like this: SELECT DISTINCT role_user.user_id as user_id, permission_role....
Dont hate me if I missed something, I skimmed your code, and I think I know what you are looking for...
There are quite a few things to cover here. Auth::user() is the correct way to get the authenticated...
Ooohhh, of course! So when I ->toArray(), 'someRelation' (ie camelCases) renames to 'some_relatio...
The Laravel portal for problem solving, knowledge sharing and community building.
The community