Can’t find view but it exists already

  laravel, php

I have a button that href to a Route and the route go to function and the function returns a view file

but Laravel says that the view not found

the button href

href="{{ route('users.checks.edit', $check->id) }}"

the Route

Route::get('/users/editChecks/{user_id}', [UserController::class, 'editCheck'])->name('users.checks.edit');

the function

public function editCheck($id)
    $check = Detail::findOrFail($id);

    return view('users.checks.edit', compact('check'));

the views folder

the views

the Error

the error

Source: Laravel

Leave a Reply