exception 'ErrorException' with message 'Trying to get property of non-object' in /home/amberenergy/src/Models/Post.php:71 Stack trace: #0 /home/amberenergy/src/Models/Post.php(71): Illuminate\Exception\Handler->handleError(8, 'Trying to get p...', '/home/amberener...', 71, Array) #1 /home/amberenergy/app/storage/views/47d02120775d71d67d9e57d82e05b54a(31): AMB\Models\Post->getAuthorImage(28) #2 /home/amberenergy/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(37): include('/home/amberener...') #3 /home/amberenergy/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(56): Illuminate\View\Engines\PhpEngine->evaluatePath('/home/amberener...', Array) #4 /home/amberenergy/vendor/laravel/framework/src/Illuminate/View/View.php(140): Illuminate\View\Engines\CompilerEngine->get('/home/amberener...', Array) #5 /home/amberenergy/vendor/laravel/framework/src/Illuminate/View/View.php(109): Illuminate\View\View->getContents() #6 /home/amberenergy/vendor/laravel/framework/src/Illuminate/View/View.php(78): Illuminate\View\View->renderContents() #7 /home/amberenergy/vendor/laravel/framework/src/Illuminate/View/View.php(154): Illuminate\View\View->render() #8 /home/amberenergy/vendor/laravel/framework/src/Illuminate/View/View.php(140): Illuminate\View\View->gatherData() #9 /home/amberenergy/vendor/laravel/framework/src/Illuminate/View/View.php(109): Illuminate\View\View->getContents() #10 /home/amberenergy/vendor/laravel/framework/src/Illuminate/View/View.php(78): Illuminate\View\View->renderContents() #11 /home/amberenergy/vendor/laravel/framework/src/Illuminate/Http/Response.php(43): Illuminate\View\View->render() #12 /home/amberenergy/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Response.php(202): Illuminate\Http\Response->setContent(Object(Illuminate\View\View)) #13 /home/amberenergy/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1501): Symfony\Component\HttpFoundation\Response->__construct(Object(Illuminate\View\View)) #14 /home/amberenergy/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1036): Illuminate\Routing\Router->prepareResponse(Object(Illuminate\Http\Request), Object(Illuminate\View\View)) #15 /home/amberenergy/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1001): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request)) #16 /home/amberenergy/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(775): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request)) #17 /home/amberenergy/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(745): Illuminate\Foundation\Application->dispatch(Object(Illuminate\Http\Request)) #18 /home/amberenergy/vendor/laravel/framework/src/Illuminate/Session/Middleware.php(72): Illuminate\Foundation\Application->handle(Object(Illuminate\Http\Request), 1, true) #19 /home/amberenergy/vendor/laravel/framework/src/Illuminate/Cookie/Queue.php(47): Illuminate\Session\Middleware->handle(Object(Illuminate\Http\Request), 1, true) #20 /home/amberenergy/vendor/laravel/framework/src/Illuminate/Cookie/Guard.php(51): Illuminate\Cookie\Queue->handle(Object(Illuminate\Http\Request), 1, true) #21 /home/amberenergy/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Illuminate\Cookie\Guard->handle(Object(Illuminate\Http\Request), 1, true) #22 /home/amberenergy/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(641): Stack\StackedHttpKernel->handle(Object(Illuminate\Http\Request)) #23 /home/amberenergy/public_html/index.php(48): Illuminate\Foundation\Application->run() #24 {main} Next exception 'ErrorException' with message 'Trying to get property of non-object (View: /home/amberenergy/app/views/news/list.blade.php)' in /home/amberenergy/src/Models/Post.php:71 Stack trace: #0 /home/amberenergy/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(41): Illuminate\View\Engines\CompilerEngine->handleViewException(Object(ErrorException), 0) #1 /home/amberenergy/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(56): Illuminate\View\Engines\PhpEngine->evaluatePath('/home/amberener...', Array) #2 /home/amberenergy/vendor/laravel/framework/src/Illuminate/View/View.php(140): Illuminate\View\Engines\CompilerEngine->get('/home/amberener...', Array) #3 /home/amberenergy/vendor/laravel/framework/src/Illuminate/View/View.php(109): Illuminate\View\View->getContents() #4 /home/amberenergy/vendor/laravel/framework/src/Illuminate/View/View.php(78): Illuminate\View\View->renderContents() #5 /home/amberenergy/vendor/laravel/framework/src/Illuminate/View/View.php(154): Illuminate\View\View->render() #6 /home/amberenergy/vendor/laravel/framework/src/Illuminate/View/View.php(140): Illuminate\View\View->gatherData() #7 /home/amberenergy/vendor/laravel/framework/src/Illuminate/View/View.php(109): Illuminate\View\View->getContents() #8 /home/amberenergy/vendor/laravel/framework/src/Illuminate/View/View.php(78): Illuminate\View\View->renderContents() #9 /home/amberenergy/vendor/laravel/framework/src/Illuminate/Http/Response.php(43): Illuminate\View\View->render() #10 /home/amberenergy/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Response.php(202): Illuminate\Http\Response->setContent(Object(Illuminate\View\View)) #11 /home/amberenergy/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1501): Symfony\Component\HttpFoundation\Response->__construct(Object(Illuminate\View\View)) #12 /home/amberenergy/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1036): Illuminate\Routing\Router->prepareResponse(Object(Illuminate\Http\Request), Object(Illuminate\View\View)) #13 /home/amberenergy/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1001): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request)) #14 /home/amberenergy/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(775): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request)) #15 /home/amberenergy/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(745): Illuminate\Foundation\Application->dispatch(Object(Illuminate\Http\Request)) #16 /home/amberenergy/vendor/laravel/framework/src/Illuminate/Session/Middleware.php(72): Illuminate\Foundation\Application->handle(Object(Illuminate\Http\Request), 1, true) #17 /home/amberenergy/vendor/laravel/framework/src/Illuminate/Cookie/Queue.php(47): Illuminate\Session\Middleware->handle(Object(Illuminate\Http\Request), 1, true) #18 /home/amberenergy/vendor/laravel/framework/src/Illuminate/Cookie/Guard.php(51): Illuminate\Cookie\Queue->handle(Object(Illuminate\Http\Request), 1, true) #19 /home/amberenergy/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Illuminate\Cookie\Guard->handle(Object(Illuminate\Http\Request), 1, true) #20 /home/amberenergy/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(641): Stack\StackedHttpKernel->handle(Object(Illuminate\Http\Request)) #21 /home/amberenergy/public_html/index.php(48): Illuminate\Foundation\Application->run() #22 {main}