© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
8 replies
Obi Wan Kenobi

Create Model for already existing table

Hi there,
I would like to create an admin panel for a database table which already exists.
For non-existing tables, I create a migration, where the database structure is defined.
The table is created in the database when I run artisan migrate.

But if the table already exists, things are somewhat different.
There will not be a migration in this case, since the database must not be dropped and re-created.
But how does Laravel "know" how the table looks like?
How does Laravel "know" the name of the table it should read and/or modify with this admin panel?
I would like Laravel to create the ressources for me. Can that be done?

Kind regards,
Tom
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

use with the already existing user table
FilamentFFilament / ❓┊help
3y ago
Project with existing User model / users table
FilamentFFilament / ❓┊help
3y ago
Override Model for Create/EditAction?
FilamentFFilament / ❓┊help
3y ago
SpatieMediaFileUpload how to set value using another model already existing file
FilamentFFilament / ❓┊help
5mo ago