jeudi 24 octobre 2019

How to Call a Controller method from a Link in a View in Laraval?

blocked by the fact that OVH can't deploy .Net websites we have turned to use Laraval (in order to use MVC).

so i have created a controller and i need to call it's methods from my layout, i tried this :

<a class="nav-link" href=""><span style="text-decoration: underline;"><B>Acceuil</B></span></a>

where HomeContoller is my controller and WhoWeAre is a method .

when i run my app , the website crash and i get this message :

ErrorException in UrlGenerator.php line 589: Action App\Http\Controllers\HomeController@index not defined. (View: C:\xampp\htdocs\laravel\resources\views\welcome.blade.php)

how can that be corrected please ?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire