Filament Livestream: Pet Clinic Admin Panel - Multi-Tenancy

preview_player
Показать описание
Let's build an admin panel for a fictional Pet clinic using Filament v3. In this live session I'll try to demonstrate my process for creating and entire project from start to finish.

Latest Subscriber:   webthesign
Subscriber Goal: ||||||||||||||| 69% ||||||......... 3.49K/5K

Start creating Filament Admin Panels today with the Filament Bootcamp

Latest tippers: MilenKo - $10.00, Sean - $5.00, Daniel GAMEL - $1.00, Mwest2020 - $5.00

Join me on Discord

Discord Goal: ||||||||||||||| 74% ||||||||....... 223/300
Latest discord member: limewater23♯0

If you want more Filament content, check this playlist as well (great stuff)
Рекомендации по теме
Комментарии
Автор

videos like this is the best "advertisement" for Filament I think because even I find some of the features (of Filament) cool but I fail to find a real-life usecase for them. but if Filament can be used for an admin panel for veterinary bookings, I'm impressed 👍👏

cometpandaskywalker
Автор

This is great - I think Filament can be beneficial and this new multliple panels is helpful.

JeffRose
Автор

Thank you for the streams, really liking em. One quick question, what if the appointment records also have files/images etc, how does we delete those files/images on cascade deletion. Thank you.

raheeldharolia
Автор

Omg i always have been afraid of change to filament since i always did my work "from zero", but your tutorial is encouraging me. Just one tip, in my projects, when i need to delet files when a register is deleted, i like to put the delete file code in a observer.

luisgustavo
Автор

I feel i found a treasure, thank you for your tutorial about filament,

dedy
Автор

Thanks for the series. How should we do this if we want a user to create only one team and be limited to that 🤔

engbz
Автор

When using the

$table->foreignIdFor trick, make sure to add ->constrained() to the end, or the relationship wont be made in the database... Would also have to add your actions like:



So the full code should be:



This trick also requires the Model to be setup for the class, obviously lol

JamesAutoDude
Автор


I really had a blast and I can't wait to see you in the next live stream ❤

Tuto
Автор

It's very simple to have a count of the number of items in a resource and it doesn't need to be a widget. In the resource file just call this function.

protected static function getNavigationBadge(): ?string
{
return static::getModel()::count();
}

DanielDrummondk
Автор

I also have another question which is how to send the current user id that is feeling the form to the data base?

samnaghavi
Автор

I am using Larashift Blueprint to generate migrations and Models, you define your Models, fields and relationships in one go in a .yaml file and do php artisan blueprint:build so I don't have to write the migrations and relationships. It's a breeze to work with atleast in the beginning of the project. Later on we may edit the migrations manually. Must try it's cool

raheeldharolia
Автор

I have not finish the video. But i am wondering if the tenancy can be used to add a subdomoman for each registered member

ifeanyinnaemego
Автор

Your video is very good. Is there a possibility to include selecting the clinic on the login screen?

Bonfimcosta
Автор

Question, i have this structure in storage folder, , but i can find any doc on how to setup this on filament, i mean, i make another disk pointing to this directory called banners, also i made another storage link but nothing is working or showing in the table.
i'm using the disk() method in the table and the ImageColumn property but also no luck. the image is stored in the database without any url and just the filename and extension.

SebastianPerezG
Автор

Hello Arturo, thanks for the videos, are great
At minute 41:26, you said there was another video of someone who had implemented the Spatie package in Filament, could you give me the link please?

Автор

Can filament offer multitenancy for multiple dbs and subdomains in contrary to the same db and same domain? Thank you!

christostsangaris
Автор

can we move or hide or overide the default aciton button on resources when create/edit ? im using wizard on my form but the default action button still appear on the bottom, thanks.

yuliarahma
Автор

First of all, thank you for your awesome channel. In the last stream, I was trying to do the same thing, but I had a problem with the select options. Every time I tried to select them, the options loaded really slow. I noticed that every time I'm hitting the select menu, it sends a new query and won't store data at all. So, I came up with this solution:

$typeOptions =
return $form
->schema([
Select::make('type')
->native(false)
->options($typeOptions)
->required(),
// more code...
]);

samnaghavi
Автор

in my case user created error and may not connected with clinic_user table as pivot id how to fixed..?

sabinmagar
Автор

What if someone has a Role of "user", but also needs the Role of "admin". I suppose it would require another pivot table to do role_id with user_id, but then I'm wondering how they would log in too. I guess depending on what URL path they login to? Hmmm...

What I also did in the role_user pivot table, was adding a clinic_id field where I can figure out what clinic they are a part of for that specific role which may help with having multiple companies with multiple roles... we will see lol

JamesAutoDude