Roberto Di Marco
WordPress, WooCommerce Developer.
Home » Laravel » How to fix “resource_url” undefined in Craftable – Laravel CRUD generator
Reading time: 1 minutes
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()); }
Your email address will not be published. Required fields are marked *
Comment *
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I comment.
Δ
Leave a Reply