2022-04-22 20:01:30 -07:00
|
|
|
<?php
|
|
|
|
|
2022-04-23 11:39:07 -07:00
|
|
|
use App\Http\Controllers\CollectiveController;
|
2022-04-23 16:25:16 -07:00
|
|
|
use App\Http\Controllers\JoinedController;
|
2022-04-22 20:01:30 -07:00
|
|
|
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!
|
|
|
|
|
|
|
|
|
*/
|
2022-04-23 16:25:16 -07:00
|
|
|
Route::middleware('guest')->group(function () {
|
|
|
|
//Route::get('/', [])
|
|
|
|
Route::get('/fanatic/install', [CollectiveController::class, 'create'])
|
|
|
|
->name('collectives.create');
|
|
|
|
Route::post('/fanatic', [CollectiveController::class, 'store'])->name('collectives.store');
|
|
|
|
});
|
2022-04-22 20:01:30 -07:00
|
|
|
|
2022-04-23 16:25:16 -07:00
|
|
|
Route::middleware('auth')->group(function () {
|
|
|
|
Route::get('/fanatic', [CollectiveController::class, 'dashboard'])->name('dashboard');
|
|
|
|
|
|
|
|
Route::resource('joined', JoinedController::class);
|
|
|
|
});
|