Unhandled Exception

Message:

Trying to get property of non-object

Location:

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

Stack Trace:

#0 /var/www/vhosts/hairstylesdesign.com/httpdocs/laravel/laravel.php(40): Laravel\Error::native(8, 'Trying to get p...', '/var/www/vhosts...', 303)
#1 /var/www/vhosts/hairstylesdesign.com/httpdocs/application/models/hairstyle.php(303): Laravel\{closure}(8, 'Trying to get p...', '/var/www/vhosts...', 303, Array)
#2 /var/www/vhosts/hairstylesdesign.com/httpdocs/application/controllers/hairstyles.php(459): Hairstyle::celebrity('reese-whithersp...')
#3 [internal function]: Hairstyles_Controller->get_view_celebrity('reese-whithersp...')
#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}