Obi Wan Kenobi
Obi Wan Kenobi
FFilament
Created by Obi Wan Kenobi on 3/21/2024 in #❓┊help
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
9 replies
FFilament
Created by Obi Wan Kenobi on 3/6/2024 in #❓┊help
Work with existing tables without deleting their contents when doing migrations
Hi guys, I'd like to work with already existing data in the database. Unfortunately the table is deleted once I apply the migration to make Laravel aware of the database layout. Is there a way to work with data in already existing tables without deleting their contents? Best regards, Tom
4 replies
FFilament
Created by Obi Wan Kenobi on 3/5/2024 in #❓┊help
Manage data in foreign databases
Hi experts, I am very new to both Laravel and Filament, so maybe my question might be silly, but I did not yet find the answer, nor do I know how to quickly find out myself. So it would be very helpful if you guys could answer my question. I guess that this an absolute "no-brainer" for everyone with some experience in Filament an/or Laravel. I know that there is a database for Filament where various information is stored, beginning with the migrations or the user accounts and also all the models I create and where I add add manipulate data using Filament. In my usage scenario, I also have this default database where migrations and user accounts for Filament are stored. But there's also another database, currently not related with my application at all. This database belongs to a completely different software. But I would like to use Filament to manipulate data in that database, i.e. have different databases for the app (user accounts, migrations, "own" models of the app) and for the data to be manipulated. Is such a scenario possible with Filament? Best Tom
8 replies