Advertisement
Astaroth_

Routes

Jul 27th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Web Routes
  6. |--------------------------------------------------------------------------
  7. |
  8. | Here is where you can register web routes for your application. These
  9. | routes are loaded by the RouteServiceProvider within a group which
  10. | contains the "web" middleware group. Now create something great!
  11. |
  12. */
  13.  
  14. Route::get('/', function () {
  15.     return view('welcome');
  16. });
  17.  
  18. Route::get('sistema/productos','ProductosController@index');
  19. Route::get('sistema/productos/create','ProductosController@create');
  20. Route::post('sistema/productos','ProductosController@store');
  21.  
  22. Route::get('sistema/cliente','ClienteController@index');
  23. Route::get('sistema/cliente/create','ClienteController@create');
  24. Route::post('sistema/cliente','ClienteController@store');
  25. Route::get('sistema/{cliente}/edit', 'ClienteController@edit');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement