You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
492 B
26 lines
492 B
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Http\Forms\SchoolForms\AddParentForm;
|
|
use App\Http\Forms\SchoolForms\ManipulateParentForm;
|
|
|
|
class ParentsController extends Controller
|
|
{
|
|
public function add(AddParentForm $form)
|
|
{
|
|
return $form->run();
|
|
}
|
|
|
|
// add many -_-
|
|
|
|
public function update(ManipulateParentForm $form)
|
|
{
|
|
return $form->save();
|
|
}
|
|
|
|
public function delete(ManipulateParentForm $form)
|
|
{
|
|
return $form->delete();
|
|
}
|
|
}
|
|
|