Add getSession method in Controller
Clean file ServiceProvider.php