I want to select all records from two tables using Laravel v4 which aren't less than 15min , but i can't. Here is my code:
return Visit::join('users', 'visits.id', '=', 'users.id')->select('ip','users.id','browser','updated_at','name')->where('updated_at','>',time() - (15*60))->get();