call to undefined method App\Models\Student::class()

Hi devs I have a problem in my student management project, the general display of students works but when I click on edit I have this error that appears

call to undefined method App\Models\Student::class()



My EditStudent file
<?php

namespace App\Filament\Resources\StudentResource\Pages;

use App\Filament\Resources\StudentResource;
use Filament\Pages\Actions;
use Filament\Resources\Pages\EditRecord;

class EditStudent extends EditRecord
{
    protected static string $resource = StudentResource::class;

    protected function getActions(): array
    {
        return [
            // 
        ];
    }
}
Was this page helpful?