Location
By default, feeds are stored in public
storage, and the file name will be automatically generated from the feed class name after App\Feeds\
in kebab-case
format. For example:
# App\Feeds\UserFeed
user-feed.xml
# App\Feeds\Sitemaps\ProductFeed
sitemaps-product-feed.xml
You can change these values by overriding the $storage
property and the filename
method:
use DragonCode\LaravelFeed\Feeds\Feed;
class UserFeed extends Feed
{
protected string $storage = 'public';
public function filename(): string
{
return 'some/path/will/be/here.xml';
}
}
05 September 2025