mirror of
https://github.com/10h30/Test-Eloquent-Relationships.git
synced 2026-07-11 10:46:13 +09:00
Task 2 - no relationship
This commit is contained in:
+3
-2
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use App\Http\Controllers\TaskController;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@@ -17,5 +18,5 @@ Route::get('/', function () {
|
||||
return view('welcome');
|
||||
});
|
||||
|
||||
Route::post('tasks', [\App\Http\Controllers\TaskController::class, 'store'])
|
||||
->middleware('auth');
|
||||
Route::get('tasks', [TaskController::class, 'index']);
|
||||
Route::post('tasks', [TaskController::class, 'store'])->middleware('auth');
|
||||
|
||||
Reference in New Issue
Block a user