Тёмный

Filament Livestream: Pet Clinic Admin Panel - Policies 

Tuto1902
Подписаться 5 тыс.
Просмотров 4 тыс.
50% 1

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.
phpstan.neon gist.github.co...
Code: github.com/tut...
Latest Subscriber: PRAISE GOD
Subscriber Goal: ||||||||||||||| 69% ||||||......... 3.45K/5K
Start creating Filament Admin Panels today with the Filament Bootcamp
👉jorgearturoroj...
Do you like my content? Buy me a coffee and help the channel grow ☕️ mercury.stream...
Latest tippers: MilenKo - $10.00, Sean - $5.00, Daniel GAMEL - $1.00, Mwest2020 - $5.00
Join me on Discord
/ discord
Discord Goal: ||||||||||||||| 74% ||||||||....... 222/300
Latest discord member: ali1idman♯0

Опубликовано:

 

3 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 25   
@omkarjere
@omkarjere Год назад
Great video. Just a quick tip from laravel version 10.10 you can simply add password fields to $casts is user model to hash it automatically like this $casts = ['password' => 'hashed']. No more manually hashing
@Tuto1902
@Tuto1902 Год назад
Oh nice, thank you!
@AmitErandole
@AmitErandole Год назад
This stream is my favorite to binge these days. Better than netflix. Hope there are plenty more episodes to come. Learning a lot. Just a couple suggestions: - Would be great if you did 15-minute coding sprints (for the sake of speed and continuity) and then took chat questions. That way people watching the recorded stream have a much better viewing experience. - Add topic chapter markers to the stream so we can click and watch the parts we like.
@Tuto1902
@Tuto1902 Год назад
Better than Netflix!? 🫣 Thanks for the feedback. I’ll definitely put it in place
@BryanBurchfield
@BryanBurchfield Год назад
Instead of copy/pasting that register() function from the vendor src (::shiver::), you could add a hidden field with validation. So even if a malicious user edits the value it'll still fail validation and not submit. eg. Hidden::make('role_id')->default($owner_role_id)->in([$owner_role_id]). Regardless, it really seems like there should be a way to merge data into the request without resorting to kludgy stuff like this. Thanks for making these vids! Learning a lot.
@Tuto1902
@Tuto1902 Год назад
That's a fair point. And in hindsight, even though overriding the method is not a bad thing to do in OOP, it does open the gate for breaking changes if the register method changes in future updates. So, a hidden field should be a good way to go in this case. Thanks for the feedback.
@cristiancornacchiola4362
@cristiancornacchiola4362 8 месяцев назад
Gracias por este estupendo material. Que pesar que desprecias a la comunidad en lengua española. Pero asi es la vida. Un abrazo!!
@Tuto1902
@Tuto1902 8 месяцев назад
No es desprecio. En el futuro, y si el tiempo lo permite, haré un canal en español. Pero por el momento es importante mantener la consistencia y seguir con el idioma actual
@cristiancornacchiola4362
@cristiancornacchiola4362 8 месяцев назад
@@Tuto1902 quizas no supe expresarme y tal vez la palabra era desestimar. Agradezco tu respuesta. Saludos
@skpercent
@skpercent 2 месяца назад
is good if you make Multi tenancy with multiple clinics with separate database of each clinic. Also each clinic has their own customers and staff and doctor with different policies of using the clinic.
@Tuto1902
@Tuto1902 22 дня назад
Yeah, those are very good ideas to make this production ready.
@redouanebenbiga9148
@redouanebenbiga9148 Год назад
i learned a lot from you i a m a laravel developper with inertia react but filament is also incredible , i only have a question how to create a separated table without resource page and import it to a page
@Tuto1902
@Tuto1902 Год назад
I’ll have a video on the subject in the next few days. But if you read the documentation for the table builder, you can find instructions on how to install just that package and how to add it to any livewire component filamentphp.com/docs/3.x/tables/adding-a-table-to-a-livewire-component
@JamesAutoDude
@JamesAutoDude Год назад
By the way, when you do: ``` public function viewAny(){ } ``` in policies, it will hide it from the navigation if you don't have the permission...
@Tuto1902
@Tuto1902 Год назад
Thanks, that's good to know 👍
@einnlleinhatt_
@einnlleinhatt_ 11 месяцев назад
How do i change the url into clinic name instead of the id ?
@Tuto1902
@Tuto1902 11 месяцев назад
You can configure the slug attribute like this: filamentphp.com/docs/3.x/panels/tenancy#configuring-the-slug-attribute
@adrianryff
@adrianryff 8 месяцев назад
Hey great job, I have a question. I need realice math operarions but I know the problem is when I need to storage in database because the result don’t save, how you can solve dude ?
@Tuto1902
@Tuto1902 8 месяцев назад
Hard to tell without looking at any code or knowing what is it that you’re trying to do. Get yourself acquainted with Models and eloquent ORM in general
@adrianryff
@adrianryff 8 месяцев назад
@@Tuto1902 yes i understand, but what is the correct form to save a field y data base with method content o placeholder
@Tuto1902
@Tuto1902 8 месяцев назад
@@adrianryff sorry but I don't understand the question. Please head over to my discord server and post your question over there. Make sure to elaborate on what is it that your are trying to do and provide code examples whenever possible
@adrianryff
@adrianryff 8 месяцев назад
@@Tuto1902 your link to discord has been caduced
@Tuto1902
@Tuto1902 8 месяцев назад
discord.gg/3v9qkZMF5v@@adrianryff
@grendabesi1563
@grendabesi1563 9 месяцев назад
Great video mate. but i have an problem at the ClinicPolicy after i do composer update the role doctor still can creating a new clinic
@Tuto1902
@Tuto1902 9 месяцев назад
Try registering the new Policy inside app\Providers\AuthServiceProvider.php because honestly I don't think I did that. I hope that solves your problem. If not, let me know. laravel.com/docs/10.x/authorization#registering-policies
Далее
Filament Livestream: Pet Clinic Admin Panel - Schedules
2:28:56
V16 из БЕНЗОПИЛ - ПЕРВЫЙ ЗАПУСК
13:57
Учёные из Тринидад и Тобаго
00:23
Stop FAKE USERS | Real World Laravel
4:11
Просмотров 1,7 тыс.
20 Laravel Filament Widgets for Different Panels
21:47
i fell for mocks again...
9:08
Просмотров 19 тыс.
V16 из БЕНЗОПИЛ - ПЕРВЫЙ ЗАПУСК
13:57