here is my class diagram
implementation of the classes are show in below
person class
class Person
{
public $name='person'
public function speak()
{
echo 'person speek'
}
}
student class
class Student Extends Person
{
public $studentNumber;
public function learn()
{
echo 'learn';
}
}
Professor class
class Professor Extends Person
{
public $salary;
public function teach()
{
echo 'teach';
}
}
i want to implement these classes in laravel
controllers in mvc pattern frameworks like laravel,codeigniter are extends from base controller therefore in those frameworks cannot create controllers for each class and inherit that from parent class?
it is the problem i'm having