I'm working on L3, which lacks what I've now found in L4 docs. Try:
$result=DB::table('users') -> whereNotIn('userid',DB::table('staff') -> distinct() -> lists('fkuserid')) -> get();
The lists()
method should (I think) return only an array of ids as I wrote in comment.