Defining Our Migrations, Models & Relationships for FilamentPHP - FilamentPHP for Beginners

  Рет қаралды 8,553

Code With Dary

Code With Dary

Күн бұрын

Пікірлер: 47
@atibyte
@atibyte 12 күн бұрын
Thins is very useful, thanks!
@SD-pf4fw
@SD-pf4fw Жыл бұрын
This is so well organised and detailed, great tutorial keep it going will watch the whole filament series
@codewithdary
@codewithdary Жыл бұрын
Thank you so much
@yuliarahma1300
@yuliarahma1300 Жыл бұрын
very nice, keep going please, more about filament v3, love it.
@codewithdary
@codewithdary Жыл бұрын
I definitely will!! :)
@kmnurunnabi5849
@kmnurunnabi5849 Жыл бұрын
You are very talented. Keep going on
@codewithdary
@codewithdary Жыл бұрын
Thank you so much, I truly appreciate it
@giorgiofranchini77
@giorgiofranchini77 10 ай бұрын
Dary you are the best! Thanks
@codewithdary
@codewithdary 10 ай бұрын
Thank you too!
@guyrandalf711
@guyrandalf711 Жыл бұрын
Great! Please can you add links to the previous tutorials?
@codewithdary
@codewithdary Жыл бұрын
You just need to click on my channel name and you will find them. But here's a link to the playlist: kzbin.info/aero/PLFHz2csJcgk_M6tg-f589Myy-lbLyACKi
@theJohnCode
@theJohnCode Жыл бұрын
@codewithdary
@codewithdary Жыл бұрын
@HamadAbdulla_7
@HamadAbdulla_7 Жыл бұрын
Awesome! Thanks
@codewithdary
@codewithdary Жыл бұрын
Thank you, Hamad!
@vugarkhalil
@vugarkhalil Жыл бұрын
Respect ❤
@codewithdary
@codewithdary Жыл бұрын
Thank you
@GergelyCsermely
@GergelyCsermely Жыл бұрын
Thanks
@codewithdary
@codewithdary Жыл бұрын
Welcome!!
@peterf983
@peterf983 Жыл бұрын
Someone might says that storing Product's price in table column as numeric is bad idea. Isn't it better to store Product's price as integer and convert it to decimal in view/controller code?
@codewithdary
@codewithdary Жыл бұрын
Honestly, I have never heard that before. Storing a product's price as an integer and converting it to decimal in the view/controller code can work, but it is generally not a good idea. This approach can make it more difficult to perform calculations and comparisons on the price data within the database itself. It is generally recommended to store prices as a decimal data type in the database to ensure accuracy and consistency.
@pasizdobrekuce
@pasizdobrekuce Жыл бұрын
@@codewithdary we store it in cents at my work, and convert it to human friendly values for frontend. Not a good idea indeed. Hard to maintain and reason about.
@MohammadAli-s9w7i
@MohammadAli-s9w7i Жыл бұрын
Hi there, Quick question Why not to use conventional many-to-many relationship between Order and Product?
@codewithdary
@codewithdary Жыл бұрын
What is a convential many-to-many relationship?
@MohammadAli-s9w7i
@MohammadAli-s9w7i Жыл бұрын
@@codewithdary Using belongsToMany() on both models and making a pivot table/model I assume.
@wmafendi
@wmafendi Жыл бұрын
big thanks
@codewithdary
@codewithdary Жыл бұрын
Thank you for watching :)
@mounirammi
@mounirammi 5 ай бұрын
Hi. Whe i'm getting this error when trying to access the orders page ! SQLSTATE[42S22]: Column not found: 1054 Unknown column 'orders.deleted_at' in 'where clause' (Connection: mysql, SQL: select count(*) as aggregate from `orders` where `orders`.`deleted_at` is null)
@GreatCaleb
@GreatCaleb Жыл бұрын
I think the relationship in the Brand model should be name products instead of brands
@codewithdary
@codewithdary Жыл бұрын
You are completely right....
@GreatCaleb
@GreatCaleb Жыл бұрын
@@codewithdary thank you for all your contents they are very helpful to us junior programmer
@nazar87ali
@nazar87ali Жыл бұрын
pleas in next video explain how can add another language to app
@codewithdary
@codewithdary Жыл бұрын
That won't be added in the first FilamentPHP series on my channel. But definitely a topic I will cover in the future :)
@nazar87ali
@nazar87ali Жыл бұрын
and how can add more Customize in app
@codewithdary
@codewithdary Жыл бұрын
Please define "more"
@foantje5857
@foantje5857 Жыл бұрын
why u make the pivot tables and models isn't that being made automatically?
@codewithdary
@codewithdary Жыл бұрын
Not from my understanding, I've never seen it being generated automatically. Can you explain how?
@foantje5857
@foantje5857 Жыл бұрын
@@codewithdary well when u define the foreign key and migrate fresh u automatically get the pivot table. I don’t make pivot models don’t see the point
@codewithdary
@codewithdary Жыл бұрын
@@foantje5857 how does Laravel knows what relationship it is when you don’t define it in your migration? 😅
@foantje5857
@foantje5857 Жыл бұрын
@@codewithdary thats not what i said u define it in the migration i just don’t make a pivot model and i don’t make a seperate pivot migration
@codewithdary
@codewithdary Жыл бұрын
@@foantje5857 you said why u make the pivot tables my friend :)
@sandeepbhambre
@sandeepbhambre Жыл бұрын
In this video you deleted $table->timestamps(); from the "create_category_product_table" migration. But, while defining the relationship, you added withTimestamps(). How is it possible?
@codewithdary
@codewithdary Жыл бұрын
The withTimestamps() method on a many-to-many relationship in Laravel automatically updates the created_at and updated_at timestamps on the pivot table that joins the two related models. The timestamps on the pivot table will be managed by the withTimestamps() method on the relationship definition :)
@tintrung3785
@tintrung3785 9 ай бұрын
"SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'categories' already exists (Connection: mysql, SQL: create table `categories` (`id` bigint unsigned not null auto_increment primary key, `name` varchar(255) not null, `slug` varchar(255) not null, `is_visible` tinyint(1) not null default '0', `description` longtext null, `created_at` timestamp null, `updated_at` timestamp null) default character set utf8mb4 collate 'utf8mb4_unicode_ci')" Please help me fix this when I use the PHP artisan migrate command !
@kenjivafe
@kenjivafe 8 ай бұрын
php artisan migrate:fresh
How to Create Resources in FilamentPHP - FilamentPHP for Beginners
25:36
小路飞还不知道他把路飞给擦没有了 #路飞#海贼王
00:32
路飞与唐舞桐
Рет қаралды 86 МЛН
The Singing Challenge #joker #Harriet Quinn
00:35
佐助与鸣人
Рет қаралды 42 МЛН
風船をキャッチしろ!🎈 Balloon catch Challenges
00:57
はじめしゃちょー(hajime)
Рет қаралды 89 МЛН
The Tools I Use to Build Products in Laravel
19:00
Josh Cirre
Рет қаралды 39 М.
Are we going back to PHP with fullstack JavaScript?
9:57
Maximilian Schwarzmüller
Рет қаралды 153 М.
How to Customize The Navbar in FilamentPHP - FilamentPHP for Beginners
13:09
Laravel Livewire Filament Behind The Scenes
47:14
LaravelOnline
Рет қаралды 3,9 М.