I'm trying to delete record from database I had write this code :
Route::get("/delete-student/{id}" , function ($id)
{
$student = \App\Student\Student::find($id);
$success = $student->delete();
return ["success" => $success];
});
the result is ture
but the record is still in database , I also tried this
$student = \App\Student\Student::destory($id);
but the record still not deleted
here is my student model
class Student extends Model
{
protected $table = "student";
}