Fatal error: Uncaught ErrorException: Trying to get property 'id' of non-object in /var/www/onclinic/data/www/onclinic.ua/app/Http/ViewComposers/FormComposer.php:191 Stack trace: #0 /var/www/onclinic/data/www/onclinic.ua/app/Http/ViewComposers/FormComposer.php(191): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError() #1 /var/www/onclinic/data/www/onclinic.ua/app/Http/ViewComposers/FormComposer.php(164): App\Http\ViewComposers\FormComposer->covidFormData() #2 /var/www/onclinic/data/www/onclinic.ua/vendor/laravel/framework/src/Illuminate/View/Concerns/ManagesEvents.php(124): App\Http\ViewComposers\FormComposer->compose() #3 /var/www/onclinic/data/www/onclinic.ua/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php(391): Illuminate\View\Factory->Illuminate\View\Concerns\{closure}() #4 /var/www/onclinic/data/www/onclinic.ua/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php(236): Illuminate\Events\Dispatcher->Illuminate\Events\{closure}() #5 /var/www/onclinic/data/www/onclinic.ua/vendor/laravel in /var/www/onclinic/data/www/onclinic.ua/app/Http/ViewComposers/FormComposer.php on line 191

Fatal error: Uncaught ErrorException: Trying to get property 'id' of non-object in /var/www/onclinic/data/www/onclinic.ua/app/Http/ViewComposers/FormComposer.php:191 Stack trace: #0 /var/www/onclinic/data/www/onclinic.ua/app/Http/ViewComposers/FormComposer.php(191): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError() #1 /var/www/onclinic/data/www/onclinic.ua/app/Http/ViewComposers/FormComposer.php(164): App\Http\ViewComposers\FormComposer->covidFormData() #2 /var/www/onclinic/data/www/onclinic.ua/vendor/laravel/framework/src/Illuminate/View/Concerns/ManagesEvents.php(124): App\Http\ViewComposers\FormComposer->compose() #3 /var/www/onclinic/data/www/onclinic.ua/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php(391): Illuminate\View\Factory->Illuminate\View\Concerns\{closure}() #4 /var/www/onclinic/data/www/onclinic.ua/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php(236): Illuminate\Events\Dispatcher->Illuminate\Events\{closure}() #5 /var/www/onclinic/data/www/onclinic.ua/vendor/laravel in /var/www/onclinic/data/www/onclinic.ua/app/Http/ViewComposers/FormComposer.php on line 191