adrema/app/Course/Controllers/CourseController.php

20 lines
436 B
PHP

<?php
namespace App\Course\Controllers;
use App\Course\Requests\StoreRequest;
use App\Http\Controllers\Controller;
use App\Member\Member;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
class CourseController extends Controller
{
public function store(Member $member, StoreRequest $request): RedirectResponse
{
$request->persist($member);
return redirect()->route('member.index');
}
}