Unhandled Exception

Message:

Trying to get property of non-object

Location:

/var/www/vhosts/hairstylesdesign.com/httpdocs/application/models/hairstyle.php on line 347

Stack Trace:

#0 /var/www/vhosts/hairstylesdesign.com/httpdocs/laravel/laravel.php(40): Laravel\Error::native(8, 'Trying to get p...', '/var/www/vhosts...', 347)
#1 /var/www/vhosts/hairstylesdesign.com/httpdocs/application/models/hairstyle.php(347): Laravel\{closure}(8, 'Trying to get p...', '/var/www/vhosts...', 347, Array)
#2 /var/www/vhosts/hairstylesdesign.com/httpdocs/application/controllers/hairstyles.php(509): Hairstyle::fetch_celebrity_details('robert-downey-j...', '6976')
#3 [internal function]: Hairstyles_Controller->get_view_celebrity_details('robert-downey-j...', '6976')
#4 /var/www/vhosts/hairstylesdesign.com/httpdocs/laravel/routing/controller.php(325): call_user_func_array(Array, Array)
#5 /var/www/vhosts/hairstylesdesign.com/httpdocs/laravel/routing/controller.php(285): Laravel\Routing\Controller->response('view_celebrity_...', Array)
#6 /var/www/vhosts/hairstylesdesign.com/httpdocs/laravel/routing/controller.php(165): Laravel\Routing\Controller->execute('view_celebrity_...', Array)
#7 /var/www/vhosts/hairstylesdesign.com/httpdocs/laravel/routing/route.php(153): Laravel\Routing\Controller::call('hairstyles@view...', Array)
#8 /var/www/vhosts/hairstylesdesign.com/httpdocs/laravel/routing/route.php(124): Laravel\Routing\Route->response()
#9 /var/www/vhosts/hairstylesdesign.com/httpdocs/laravel/laravel.php(165): Laravel\Routing\Route->call()
#10 /var/www/vhosts/hairstylesdesign.com/httpdocs/public/index.php(34): require('/var/www/vhosts...')
#11 {main}