@xtremer360 In the past, on the morphed classes themselves I’ve added an interface and a getView() method:
interface QuestionType
{
public function getView();
}
class TextQuestion extends Model implements QuestionType
{
public function getView()
{
return view('questions.text');
}
}
class MultipleChoiceQuestion extends Model implements QuestionType
{
public function getView()
{
return view('questions.multiple-choices', ['choices' => $this->choices]);
}
}
@martinbean Thanks for your response. Well inside of my quizzes.show I have this. So I'm trying to load a dynamic blade file. Reason being the only difference is the content per type. So is the way I am currently trying to do this with the blade views is wrong?