Notice: Trying to get property 'id' of non-object in /var/www/dropi.ru/app/Models/Post/Post.php on line 190
Warning: Creating default object from empty value in /var/www/dropi.ru/app/Models/Post/Post.php on line 190
Notice: Undefined property: stdClass::$id in /var/www/dropi.ru/app/function_can_be_use_both.php on line 25
Notice: Undefined property: stdClass::$id in /var/www/dropi.ru/app/function_can_be_use_both.php on line 26
Notice: Undefined property: stdClass::$views_count in /var/www/dropi.ru/app/function_can_be_use_both.php on line 26
Notice: Undefined property: stdClass::$id in /var/www/dropi.ru/app/function_can_be_use_both.php on line 29
Fatal error: Uncaught TypeError: Argument 1 passed to updatePostViews() must be an instance of App\Models\Post\Post, instance of stdClass given, called in /var/www/dropi.ru/laravel_outside/pages/post_view.php on line 24 and defined in /var/www/dropi.ru/app/function_can_be_use_both.php:42
Stack trace:
#0 /var/www/dropi.ru/laravel_outside/pages/post_view.php(24): updatePostViews(Object(stdClass), '216.73.216.15')
#1 /var/www/dropi.ru/public/outside_laravel_routes.php(55): include('/var/www/dropi....')
#2 {main}
thrown in /var/www/dropi.ru/app/function_can_be_use_both.php on line 42