Darkur

ErrorException: Undefined variable: invoice

laravel Icon

ErrorException

Undefined variable: invoice

An unhandled exception occurred on line 30
27
                </div>
28
29
                <div class="bg-white overflow-hidden shadow-sm sm:rounded-lg">
30
                @foreach ($invoice as $invoices)
31
                <tr class="bg-syan100">
32
                                <td class="border border-gray-500 px-4 py-2 text-gray-600 font-medium">{{ $invoice->invoice }}</td>

Solution

Without running 'php artisan migrate' you won't have your database updated.            
Apr 29, 2021 Anyone

0 replies


Install the browser extension

Found this solution helpful? Try our extension for quick solutions to your Laravel errors.

Chrome logo Add to Chrome - It's free