Laravel Cashier Invoice Date Issue
问题 I am using Laravel 5.8 with Laravel Cashier. When I try to show a list of invoices of a user, I used this code: @foreach (Auth::user()->invoices() as $invoice) <tr> <td>{{ $invoice->date()->toFormattedDateString() }}</td> <td>{{ $invoice->total() }}</td> <td> <a href="/user/invoice/{{ $invoice->id }}">Download</a> </td> </tr> @endforeach However, the line $invoice->date()->toFormattedDateString() gives an error: DateTime::__construct(): Failed to parse time string (@) at position 0 (@):