Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  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. //Front-end
  15. Route::get('/', 'Controller@index')->name('home');
  16. Route::get('noticias', 'Controller@noticias')->name('noticias');
  17. Route::get('noticia/{slug}', 'Controller@noticia')->name('noticia');
  18. Route::get('acerca-de', 'Controller@acercade')->name('acerca-de');
  19.  
  20. //Auth (sin opción de registro)
  21. Auth::routes(['register' => false]);
  22.  
  23. //Back-end
  24. Route::get('admin', 'HomeController@index')->name('admin');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement