app/Http/Controllers/ViewFieldsController.php
/**
     * Delete all selected ViewField at once.
     *
     * @param Request $request
     */
Delete all selected ViewField at once.
@param Request $request
Delete all selected ViewField at once . @param Request $request
public function massDestroy(Request $request)
    {
        if (! Gate::allows('view_field_delete')) {
            return abort(401);
        }
        if ($request->input('ids')) {
            $entries = ViewField::whereIn('id', $request->input('ids'))->get();
            foreach ($entries as $entry) {
                $entry->delete();
            }
        }
    }
public function massDestroy ( Request $ request ) { if ( ! Gate :: allows ( 'view_field_delete' ) ) { return abort ( 401 ) ; } if ( $ request -> input ( 'ids' ) ) { $ entries = ViewField :: whereIn ( 'id' , $ request -> input ( 'ids' ) ) -> get ( ) ; foreach ( $ entries as $ entry ) { $ entry -> delete ( ) ; } } }
Delete all selected ViewField at once.
Delete all selected ViewField at once .