Delete

PHOTO EMBED

Thu Jan 27 2022 03:39:12 GMT+0000 (Coordinated Universal Time)

Saved by @GodFather #php

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

//ROOT

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

content_copyCOPY