Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created July 15, 2020 17:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/f4e38ce71eacc5f72c76c5e481f9bcbb to your computer and use it in GitHub Desktop.
Save parzibyte/f4e38ce71eacc5f72c76c5e481f9bcbb to your computer and use it in GitHub Desktop.
<?php
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
// Cambiar idioma. En este caso "en":
App::setLocale("en");
// Y luego, todas nuestras rutas...
Route::get("/", function () {
return redirect()->route("categories.index");
});
Route::resource("categories", "CategoriesController");
Route::resource("products", "ProductController");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment