You must edit app/Models/User.php and add the following code at the bottom
protected $appends = ['resource_url'];
public function getResourceUrlAttribute() { return url('/admin/users/' . $this->getKey()); }
WordPress, WooCommerce Developer. Custom solutions for your website.
Updated on
You must edit app/Models/User.php and add the following code at the bottom
protected $appends = ['resource_url'];
public function getResourceUrlAttribute() { return url('/admin/users/' . $this->getKey()); }
Leave a Reply