| 12345678910111213141516171819202122232425262728293031 |
- <?php
- use App\Http\Controllers\DashboardController;
- use App\Http\Controllers\IdeaController;
- use App\Http\Controllers\CommentController;
- use App\Http\Controllers\ProfileController;
- 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('/', [DashboardController::class, 'index'])->name('ideas.index');
- Route::resource('ideas', IdeaController::class)->except(['index', 'create', 'show'])->middleware('auth');
- Route::resource('ideas', IdeaController::class)->only(['show']);
- Route::resource('ideas.comments', CommentController::class)->only(['store', 'destroy'])->middleware('auth');
- Route::get('/terms', function (){
- return view('terms');
- });
|