Created
July 15, 2020 17:22
-
-
Save parzibyte/f4e38ce71eacc5f72c76c5e481f9bcbb 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
<?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