Laravel — P69: Blade Slots Intro
Laravel — P69: Blade Slots Intro
Regular
price
167.00 ₹ INR
Regular
price
Sale
price
167.00 ₹ INR
Unit price
/
per
laravel blade slot Dan laravel slot
View full details
slot }} button> div> this creates a button with a type of submit by default which can be changed by using type=button when calling the
Slots are what make blade components composable We can pass components to other components and even use named slots! Create a form Run the In this example, we've defined a component called alert that accepts a $type parameter and a $slot parameter The $type parameter is used to set
วิธีเล่น slot slot }} button> div> this creates a button with a type of submit by default which can be changed by using type=button when calling the !-- resourcesviews php --> div class=alert alert-danger> {{ $slot }} div> เวลาเราจะนำไปใช้งานในไฟล์ Blade หน้าอื่นๆก็ใช้วิธีการนี้ !