|
|
<?php
use Illuminate\Support\Facades\Route; use App\Models\Search; /* |-------------------------------------------------------------------------- | 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! | */
Route::get('/', function () { return view('welcome'); });
Auth::routes(['register' => false]); Route::any('/register', function() { return view('welcome'); });
Route::resource('breweries', 'App\Http\Controllers\BrewerieController'); Route::resource('beers', 'App\Http\Controllers\SummarieController'); Route::resource('grains', 'App\Http\Controllers\GrainController'); Route::resource('hops', 'App\Http\Controllers\HopController'); Route::resource('yeasts', 'App\Http\Controllers\YeastController'); Route::resource('adjuncts', 'App\Http\Controllers\AdjunctController'); Route::resource('grainbills', 'App\Http\Controllers\GrainbillController'); Route::resource('mashes', 'App\Http\Controllers\MasheController'); Route::resource('hopadditions', 'App\Http\Controllers\HopAdditionController'); Route::resource('fermentations', 'App\Http\Controllers\FermentationController'); Route::resource('adjunctadditions', 'App\Http\Controllers\AdjunctAdditionController'); Route::get('/home', [App\Http\Controllers\SummarieController::class, 'index'])->name('home'); Route::get('/brewery/{breweryID}', [App\Http\Controllers\BreweryController::class, 'index'])->name('brewery'); Route::get('/beer/{beerID}', [App\Http\Controllers\BeerController::class, 'index'])->name('beer'); Route::get('/grain/{grainID}', [App\Http\Controllers\GraincardController::class, 'index'])->name('grain'); Route::get('/yeast/{yeastID}', [App\Http\Controllers\YeastcardController::class, 'index'])->name('yeast'); Route::get('/hop/{hopID}', [App\Http\Controllers\HopcardController::class, 'index'])->name('hop'); Route::get('/adjunct/{adjunctID}', [App\Http\Controllers\AdjunctcardController::class, 'index'])->name('adjunct'); Route::get('search.results', [App\Http\Controllers\SearchController::class, 'search'])->name('search.results');
|