If you are using Verta to convert date and time into Jalali format to have Iranian Date and Time. And you come across of an error like, verta sample jalali laravel problem return object.
Following is the correct implementation of how to return the date and time. If you do not specify format, the variable will always return an object, which will have all information regarding the date and time.
$v = verta();
return $v->format('Y-n-j H:i'); // 1395-10-7 14:12
return $v->format('%B %d، %Y'); // دی 07، 1395