public function deletePayment($id)
{
    return response()->json(Api::schoolPayment()->destroy($id)->toArray());
}

//ROOT

Route::get('/delete-payment/{id}', 'Teacher\ExampleController@deletePayment');