public static function getDetails($post_id) { $result = PostDetails::where('post_id', $post_id)->first(); if ($result) { return $result; } }