Sal Aime
Sal Aime
FFilament
Created by Sal Aime on 8/7/2023 in #❓┊help
call to undefined method App\Models\Student::class()
6 replies
FFilament
Created by Sal Aime on 8/7/2023 in #❓┊help
call to undefined method App\Models\Student::class()
🤧
6 replies
FFilament
Created by Sal Aime on 8/7/2023 in #❓┊help
call to undefined method App\Models\Student::class()
I send my StudentResource
6 replies
FFilament
Created by Sal Aime on 8/7/2023 in #❓┊help
call to undefined method App\Models\Student::class()
My Student Model
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Student extends Model
{
use HasFactory;

protected $fillable = [
'class_id',
'section_id',
'name',
'first_name',
'class',
'birth',
'phone_number',
];

public function section()
{
return $this->belongsTo(Section::class, 'section_id');
}
}
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Student extends Model
{
use HasFactory;

protected $fillable = [
'class_id',
'section_id',
'name',
'first_name',
'class',
'birth',
'phone_number',
];

public function section()
{
return $this->belongsTo(Section::class, 'section_id');
}
}
6 replies