student_contract.php 421 B

123456789101112131415161718
  1. <?php
  2. use Illuminate\Support\Facades\Route;
  3. use App\Http\Controllers\StudentContractController;
  4. Route::controller(StudentContractController::class)->prefix('student-contract')->group(function () {
  5. Route::get('/', 'index');
  6. Route::post('/', 'store');
  7. Route::get('/{id}', 'show');
  8. Route::put('/{id}', 'update');
  9. Route::post('/{id}/file', 'attachFile');
  10. Route::delete('/{id}', 'destroy');
  11. });