2 Replies
solution
Not sure if you can access the
$this->data['name']
at this point
anyway, you can do this $name = Company::latest()->first()->name;