38 lines
1.3 KiB
PHP
38 lines
1.3 KiB
PHP
<?php
|
|
|
|
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 and all of them will
|
|
| be assigned to the "web" middleware group. Make something great!
|
|
|
|
|
*/
|
|
|
|
Route::get('/', function () {
|
|
return view('welcome');
|
|
});
|
|
if (env('APP_ENV') === 'local') {
|
|
Route::get('/mailable', function () {
|
|
return new App\Mail\ReportGenerated(App\Models\ProjectMailing::find(1));
|
|
});
|
|
}
|
|
Route::middleware([
|
|
'auth:sanctum',
|
|
config('jetstream.auth_session'),
|
|
'verified',
|
|
])->group(function () {
|
|
Route::get('/dashboard', function () {
|
|
return view('dashboard');
|
|
})->name('dashboard');
|
|
|
|
Route::get('/download', [\App\Http\Controllers\DownloadController::class, 'show'])->name('download');
|
|
Route::get('/report', [\App\Http\Controllers\ReportController::class, 'index'])->name('report');
|
|
Route::get('/projects/{project}', [\App\Http\Controllers\ProjectController::class, 'show'])->name('project.show');
|
|
Route::get('/projects', [\App\Http\Controllers\ProjectController::class, 'index'])->name('project');
|
|
});
|