Ask, reply and learn. Join the community of Akaunting.
Exception:
Trying to get property 'id' of non-object (View: /absolute/path/to/website/resources/views/common/dashboards/show.blade.php)
EXCEPTIONS
Illuminate\View\
ViewException
in /absolute/path/to/website/modules/Employees/Widgets/Profile.php (line 22)
} public function show() { return $this->view('employees::widgets.profile', [ 'employee' => Employee::where('contact_id', user()->contact->id)->first(), ]); }}
Stack Traces:
Illuminate\View\ViewException:
Trying to get property 'id' of non-object (View: absolute/path/to/the/website/resources/views/common/dashboards/show.blade.php)
at absolute/path/to/the/website/modules/Employees/Widgets/Profile.php:22
at Illuminate\View\Engines\CompilerEngine->handleViewException()
(absolute/path/to/the/website/vendor/livewire/livewire/src/ComponentConcerns/RendersLivewireComponents.php:73)
at Livewire\LivewireViewCompilerEngine->handleViewException()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:60)
at Illuminate\View\Engines\PhpEngine->evaluatePath()
(absolute/path/to/the/website/vendor/livewire/livewire/src/ComponentConcerns/RendersLivewireComponents.php:37)
at Livewire\LivewireViewCompilerEngine->evaluatePath()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:61)
at Illuminate\View\Engines\CompilerEngine->get()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/View/View.php:139)
at Illuminate\View\View->getContents()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/View/View.php:122)
at Illuminate\View\View->renderContents()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/View/View.php:91)
at Illuminate\View\View->render()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Http/Response.php:69)
at Illuminate\Http\Response->setContent()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Http/Response.php:35)
at Illuminate\Http\Response->__construct()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Routing/Router.php:793)
at Illuminate\Routing\Router::toResponse()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Routing/Router.php:763)
at Illuminate\Routing\Router->prepareResponse()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Routing/Router.php:695)
at Illuminate\Routing\Router->Illuminate\Routing\{closure}()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:128)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/vendor/santigarcor/laratrust/src/Middleware/LaratrustPermission.php:25)
at Laratrust\Middleware\LaratrustPermission->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/app/Http/Middleware/AdminMenu.php:30)
at App\Http\Middleware\AdminMenu->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/vendor/santigarcor/laratrust/src/Middleware/LaratrustPermission.php:25)
at Laratrust\Middleware\LaratrustPermission->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/app/Http/Middleware/RedirectIfWizardNotCompleted.php:20)
at App\Http\Middleware\RedirectIfWizardNotCompleted->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:50)
at Illuminate\Routing\Middleware\SubstituteBindings->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php:44)
at Illuminate\Auth\Middleware\Authenticate->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/app/Http/Middleware/IdentifyCompany.php:48)
at App\Http\Middleware\IdentifyCompany->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/vendor/akaunting/laravel-firewall/src/Abstracts/Middleware.php:29)
at Akaunting\Firewall\Abstracts\Middleware->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/vendor/akaunting/laravel-firewall/src/Abstracts/Middleware.php:29)
at Akaunting\Firewall\Abstracts\Middleware->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/vendor/akaunting/laravel-firewall/src/Abstracts/Middleware.php:36)
at Akaunting\Firewall\Abstracts\Middleware->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/vendor/akaunting/laravel-firewall/src/Abstracts/Middleware.php:36)
at Akaunting\Firewall\Abstracts\Middleware->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/vendor/akaunting/laravel-firewall/src/Abstracts/Middleware.php:36)
at Akaunting\Firewall\Abstracts\Middleware->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/vendor/akaunting/laravel-firewall/src/Abstracts/Middleware.php:36)
at Akaunting\Firewall\Abstracts\Middleware->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/vendor/akaunting/laravel-firewall/src/Abstracts/Middleware.php:36)
at Akaunting\Firewall\Abstracts\Middleware->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/vendor/akaunting/laravel-firewall/src/Abstracts/Middleware.php:36)
at Akaunting\Firewall\Abstracts\Middleware->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/vendor/akaunting/laravel-firewall/src/Abstracts/Middleware.php:36)
at Akaunting\Firewall\Abstracts\Middleware->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/vendor/akaunting/laravel-firewall/src/Abstracts/Middleware.php:36)
at Akaunting\Firewall\Abstracts\Middleware->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/vendor/akaunting/laravel-firewall/src/Abstracts/Middleware.php:36)
at Akaunting\Firewall\Abstracts\Middleware->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/vendor/akaunting/laravel-firewall/src/Abstracts/Middleware.php:36)
at Akaunting\Firewall\Abstracts\Middleware->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/vendor/akaunting/laravel-language/src/Middleware/SetLocale.php:95)
at Akaunting\Language\Middleware\SetLocale->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/app/Http/Middleware/AddXHeader.php:18)
at App\Http\Middleware\AddXHeader->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/app/Http/Middleware/RedirectIfNotInstalled.php:20)
at App\Http\Middleware\RedirectIfNotInstalled->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:78)
at Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49)
at Illuminate\View\Middleware\ShareErrorsFromSession->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:121)
at Illuminate\Session\Middleware\StartSession->handleStatefulRequest()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:64)
at Illuminate\Session\Middleware\StartSession->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37)
at Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:67)
at Illuminate\Cookie\Middleware\EncryptCookies->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103)
at Illuminate\Pipeline\Pipeline->then()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Routing/Router.php:697)
at Illuminate\Routing\Router->runRouteWithinStack()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Routing/Router.php:672)
at Illuminate\Routing\Router->runRoute()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Routing/Router.php:636)
at Illuminate\Routing\Router->dispatchToRoute()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Routing/Router.php:625)
at Illuminate\Routing\Router->dispatch()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:166)
at Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:128)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php:67)
at Barryvdh\Debugbar\Middleware\InjectDebugbar->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php:31)
at Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php:40)
at Illuminate\Foundation\Http\Middleware\TrimStrings->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27)
at Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php:86)
at Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/vendor/fruitcake/laravel-cors/src/HandleCors.php:38)
at Fruitcake\Cors\HandleCors->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/vendor/fideloper/proxy/src/TrustProxies.php:57)
at Fideloper\Proxy\TrustProxies->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustHosts.php:48)
at Illuminate\Http\Middleware\TrustHosts->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/vendor/dingo/api/src/Http/Middleware/Request.php:111)
at Dingo\Api\Http\Middleware\Request->handle()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103)
at Illuminate\Pipeline\Pipeline->then()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:141)
at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
(absolute/path/to/the/website/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:110)
at Illuminate\Foundation\Http\Kernel->handle()
(absolute/path/to/the/website/index.php:20)
Showing 1 to 1 of 1 discussions