But while creating an entry, Nova says "Trying to get property 'name' of non-object" which is the line 'name' => $this->status->name, which i don't understand because i set it to onlyOnIndex(), why is Nova taking it for creation?
Well, sadly that is how Nova works. I also had some trouble with Nova when working on accessors and related data in lists. For some reason, Nova is always calling all code.
Thank you @bobbybouwmann
But here i am getting Unexpected class constant reference on \App\Status::class. Also tried just Status and import the model and then i am getting syntax error, unexpected 'class' (T_CLASS), expecting variable (T_VARIABLE) or '$'