# Sage 10 - how to return blade templates from setup.php for custom shortcodes?

**URL:** https://discourse.roots.io/t/sage-10-how-to-return-blade-templates-from-setup-php-for-custom-shortcodes/20538
**Category:** sage
**Tags:** blade, sage10
**Created:** 2021-04-06T03:43:55Z
**Posts:** 18
**Showing post:** 15 of 18

## Post 15 by @stackrats — 2021-04-07T06:26:37Z

Ok it turns out its a line I added in the App class in the beginning of the project when I was trying to get ACF to work in the first place, but I don’t need it.

[https://discourse.roots.io/t/solution-how-to-get-acf-fields-on-templates-in-sage10/18086](https://discourse.roots.io/t/solution-how-to-get-acf-fields-on-templates-in-sage10/18086)`

```
public function with()
{
    return [
        'fields' => collect($this->fields())->toArray()
    ];
}
```

if I remove this entry from the array then all renders fine!

Thanks for the help

---

_[View the full topic](https://discourse.roots.io/t/sage-10-how-to-return-blade-templates-from-setup-php-for-custom-shortcodes/20538)._
