mirror of
https://github.com/robonen/education-project.git
synced 2026-03-20 10:54:31 +00:00
ответ при создании
This commit is contained in:
@@ -44,4 +44,12 @@ class ParenttController extends Controller
|
||||
$parent->update($request->all());
|
||||
return response()->json($parent, 200);
|
||||
}
|
||||
|
||||
public function destroy(Parentt $parent)
|
||||
{
|
||||
$user = $parent->user;
|
||||
$user->delete();
|
||||
return response()->json(null, 204);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user