This is my controller
public function index($value)
{
$findRecord = marks::findOrFail($value);
$findRecord->delete();
$data['data']=DB::table('student_Registrations')->get();
return view('marks',$data);
}
this is my route
Route::resource('deleteRecord/{value}','deleterecordController');
the record is not deleted from the database
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire