public function deletePayment($id)
{
return response()->json(Api::schoolPayment()->destroy($id)->toArray());
}
//ROOT
Route::get('/delete-payment/{id}', 'Teacher\ExampleController@deletePayment');
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter