G
G
GOODDUDE2017-10-27 14:52:20
Laravel
GOODDUDE, 2017-10-27 14:52:20

Thrown with message “View [markets.index] not found.”?

I am using Laravel 5.5 and I am a beginner. After starting my server - I get an error in the browser like this

throw new InvalidArgumentException("View [$name] not found."); - View [markets.index] not found.

What should I do? I have seen such different questions but these answers did not help me.
Here is my index.blade.php
<!doctype html>
<html lang="{{ app()->getLocale() }}">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>Market</title>

</head>
<body>
    <ul>
        <?php 

        @foreach ($markets as $market)

        <li>
            <a href = "{{ route('markets.show', $market) }}">
                {{$market->name}}
            </a>
        </li>

        @endforeach

         ?>
    </ul>
</body>

Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Malyarov, 2017-10-27
@Konstantin18ko

php artisan route:list

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question