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
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2zrU1vR
via IFTTT
Aucun commentaire:
Enregistrer un commentaire