Created
January 21, 2019 10:21
-
-
Save dieissonmartins/bd3093269016329e822367036e01d52f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Route::get('/', function () { | |
return view('welcome'); | |
}); | |
Route::get('/novarota', function(){ | |
return '<h1>Primeira logica do Laravel</h1>'; | |
}); | |
Route::get('/novarota', function(){ | |
return '<h1>Nova rota do laravel</h1'; | |
}); | |
/* | |
*rota para a listagem de produtos | |
*/ | |
Route::get('/produtos','ProdutoController@lista'); | |
/* | |
*rota para mostrar dados de um produto | |
*/ | |
Route::get('/produtos/mostra','ProdutoController@mostra'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment