Argument '1' passed to render() is expected to be of type Yajra\DataTables\Services\view-string|null, string given
class StudentController extends Controller
{
public function index(StudentsDataTable $dataTable)
{
return $dataTable->render('admin.students.index');
}
}
Project works but warning the ide always. How can i fix it
Argument '1' passed to render() is expected to be of type Yajra\DataTables\Services\view-string|null, string given
class StudentController extends Controller { public function index(StudentsDataTable $dataTable) { return $dataTable->render('admin.students.index'); } }
Project works but warning the ide always. How can i fix it