In my Laravel-5.8, I have this code for employee leave management:
Controller
public function create() { $userCompany = Auth::user()->company_id;