Answer the question
In order to leave comments, you need to log in
Laravel appends and broadcasts?
Good day!
there is such a code
public function getCostAttribute() {
if(Auth::user()->isExecutor()) {
return $this->executor_cost;
}
return $this->customer_cost;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question