Wednesday, March 15, 2017

Trying to create a view in laravel

Here's what I want to do: A simple blade view with a form in it where I can post images to test an app function.

So, here's what I've done...

In resources/views/ImageControllerTest.blade.php:

<html>
<body>




</body>
</html>

In routes/web.php:

Route::get('/formtest', function () {
    return view('ImageControllerTest');
});

In my browser, I go to http://localhost:8000/formtest and I get this error:

FatalErrorException in ac777a228fac6b0e4c0e9981973de27c8907364b.php line 3:
Class 'Form' not found
in ac777a228fac6b0e4c0e9981973de27c8907364b.php line 3

What am I doing wrong?



via Sandi

Advertisement