diff --git a/src/Http/Controllers/BelongsToManyController.php b/src/Http/Controllers/BelongsToManyController.php index 7a58e11c..be5e9e94 100644 --- a/src/Http/Controllers/BelongsToManyController.php +++ b/src/Http/Controllers/BelongsToManyController.php @@ -11,22 +11,20 @@ class BelongsToManyController extends RelationController { /** - * Store a newly created resource in storage. + * {@inheritdoc} */ public function store(Request $request, Model $model): RedirectResponse { $field = $request->route('field'); - dd($request->all()); - $field->handleFormRequest($request, $model); return Redirect::to('') - ->with('alerts.relation-created', Alert::success(__('The relation has been created!'))); + ->with('alerts.relation-created', Alert::success(__('The relation has been created!'))); } /** - * Update the specified resource in storage. + * {@inheritdoc} */ public function update(Request $request, Model $model, Model $related): RedirectResponse { @@ -35,17 +33,17 @@ public function update(Request $request, Model $model, Model $related): Redirect $field->handleFormRequest($request, $model); return Redirect::back() - ->with('alerts.relation-updated', Alert::success(__('The relation has been updated!'))); + ->with('alerts.relation-updated', Alert::success(__('The relation has been updated!'))); } /** - * Remove the specified resource from storage. + * {@inheritdoc} */ public function destroy(Request $request, Model $model, Model $related): RedirectResponse { // return Redirect::to('') - ->with('alerts.relation-deleted', Alert::success(__('The relation has been deleted!'))); + ->with('alerts.relation-deleted', Alert::success(__('The relation has been deleted!'))); } }