Using eloquent: User::where('votes', 1)->update(array('votes' => 10));
DB::table('users') ->where('votes', 1) ->update(array('votes' => 10...
Try this. $users = User::with('services') ->whereHas('services', function($q)...
all you need is a role_id on your users table. Then just do the echo I previously posted $users = Us...
//role model public function users() { return $this->hasMany('User'); // this will get all...
The Laravel portal for problem solving, knowledge sharing and community building.
The community