Working with Routes in Laravel

1

This is the structure of my project where my page is;

Thisismycontroller;

publicfunctioncreate(){returnview(imoveis.create);}

Thisishowmyrouteisset,it'sinmyfileweb.php;

Route::resource('imoveis','ImovelController');

AndI'mgettingthiserrormessagebackintheURL:http://localhost:8000/imoveis/create

Where will I go wrong?

    
asked by anonymous 22.10.2017 / 15:30

1 answer

1

The error message explains the meaning of the error, saying that this constant does not exist , which if your code is expected to be quoted, for example:

public function create()
{
   return view('imoveis.create');
}
    
22.10.2017 / 16:44