© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
39 replies
MikeG

Tenancy for laravel & File upload component

Hello,

I'm running into an issue that I can't seem to figure out why it's happening.

I use Tenancy for Laravel in my application for multi-tenant capabilities. I have a resource, with a form that contains a file upload. But for some reason, when trying to upload a file, I get the following error:

base table or view not found: 1146 Table 'main_db.users' doesn't exist
base table or view not found: 1146 Table 'main_db.users' doesn't exist


I'm confused about why it's trying to access the user's table, and even more so why it's using the central database
main_db
main_db
rather than the tenant's database. Does anyone know why this is happening?
Solution
Ah @Dennis Koch so I did find it, livewire configures it on temp file uploads:

in
livewire.php
livewire.php
config file
Jump to solution
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

File upload in Tenancy For Laravel
FilamentFFilament / ❓┊help
16mo ago
Multi tenancy file upload/edit
FilamentFFilament / ❓┊help
11mo ago
File upload with Livewire component
FilamentFFilament / ❓┊help
2y ago