morphtoselect relation related does not exists
Hello,
I have page in resource for Ticket called AddReplyPage. It represents page where I can manage ticket, and add reply for ticket.
Now, I have Action where I want to create task for ticket and that is related to Ticket. I have TaskForm schema which has MorphToSelect(related) field, and Type has defined Ticket model.
When using fillForm and populating related_id and related_type I have error that relationship related is undefined in model Ticket.
Why is that? When I use fillForm in CreateAction it is working ok, but I cannot use CreateAction becouse it is redirecting me to /tickets/create ( I have create page in resource) page and not opening modal for Task even I added model(Task::class) to action and added ->schema to use TaskForm.
2 Replies
