© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•15mo ago•
2 replies
AdalbertoHofmann

Filament Laravel with front React

I have the following setup:
• Domain:
domain.com.br
domain.com.br

• My Filament admin is running at
domain.com.br/­­­_/
domain.com.br/­­­_/

• My Laravel API is located at
domain.com.br/_/api/v1
domain.com.br/_/api/v1

• My frontend is at
domain.com.br
domain.com.br


VPS directory structure (root):
• backend (Laravel)
• public_html (contains index.html for React and a symbolic link, "underscore": pointing to backend/public)

The issue:
When I submit the login form(filament login), the system returns an error related to the index.html file from public_html:

Uncaught (in promise) SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON
Uncaught (in promise) SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Laravel Enum with Filament
FilamentFFilament / ❓┊help
3y ago
Laravel Pennant with Filament
FilamentFFilament / ❓┊help
3y ago
AWS S3 with Filament Laravel
FilamentFFilament / ❓┊help
2y ago
Filament form with laravel pest.
FilamentFFilament / ❓┊help
3y ago