Laravel
Blade Template
Eko Kurniawan Khannedy
Eko Kurniawan Khannedy
Eko Kurniawan Khannedy
Sebelum Belajar
Agenda
Pengenalan Blade Template
Blade Template
Membuat Project
Membuat Project
Menampilkan View
Blade
Blade Variable
Kode : Hello View
Rendering View
Kode : Rendering View
Test Rendering View
Nested View Directory
Kode : View
Kode : Route View
Test View Tanpa Routing
Kode : Test View Tanpa Route
Comment
Comment
Kode : Comment
Kode : Unit Test Comment
HTML Encoding
HTML Encoding
Kode : HTML Encoding
Kode : Routing
Hasil HTML Encoding
Disabled Blade
Disabled Blade
Tanda @
Kode : Disabled Blade
Kode : Test Disabled Blade
If Statement
If Statement
Kode : If Statement
Kode : Test If Statement
Unless Statement
Unless Statement
Kode : Unless
Kode : Test Unless
Isset dan Empty
Isset dan Empty
Kode : Isset dan Empty
Kode : Test Isset dan Empty
Env
Env
Kode : Env
Kode : Unit Test Env
Switch Statement
Switch Statement
Kode : Switch
Kode : Test Switch
For Loop
For Loop
Kode : For Loop
Kode : Test For Loop
Foreach Loop
Kode : Foreach Loop
Kode : Test Foreach Loop
Forelse Loop
Kode : Forelse Loop
Kode : Test Forelse Loop
Raw PHP
Raw PHP
Kode : Raw PHP
Kode : Tes Raw PHP
While Loop
While Loop
Kode : While Loop
Kode : Test While Loop
Loop Variable
Loop Variable
Loop Property
Kode : Loop Variable
Kode : Test Loop Variable
CSS Class
CSS Class
Kode : CSS Class
Kode : Test CSS Class
Include
Include
Kode : Header Template
Kode : Include
Kode : Test Include
Include Parameter
Kode : Header Template
Kode : Include
Kode : Test Include
Include Condition
Include Condition
Include Condition Directive
Directive | Keterangan |
@includeWhen(kondisi, template, data) | Include dilakukan ketika kondisi true |
@includeUnless(kondisi, template, data) | Include dilakukan ketika kondisi false |
Kode : Layout
Kode : Include Condition
Kode : Test Include Condition
Each dan Once
Each dan Once
Each dan Once Directive
Directive | Keterangan |
@each(template, array, variable) | Include template berkali-kali sesuai iterasi jumlah array, dimana data tiap array bisa diakses dengan variable di template nya |
@once | Disimpan di layout, secara otomatis jika layout tersebut ditampilkan berkali-kali, bagian @once hanya ditampilkan sekali saja |
Kode : Layout
Kode : Each
Kode : Test Each
Form
Form Directive
Detail Form Directive
Directive | Jika kondisi true |
@checked | Maka input checkbox akan memiliki attribute checked |
@selected | Maka input option akan memiliki attribute selected |
@disabled | Maka input akan memiliki attribute disabled |
@readonly | Maka input akan memiliki attribute readonly |
@required | Maka input akan memiliki attributed required |
Kode : Form Directive
Kode : Test Form Directive
CSRF
CSRF
Kode : CSRF
Kode : Test CSRF
Error
Error
Kode : Error
Kode : Test Error
Stack
Stack
Kode : Stack
Kode : Test Stack
Template Inheritance
Template Inheritance
Parent Layout
Kode : Parent Layout
Child Layout
Kode : Child Layout
Kode : Test Template Inheritance
Show Directive
Kode : Parent Layout
Kode : Child Layout
Kode : Test Template Inheritance
Service Injection
Service Injection
Kode : Membuat Service
Kode : Registrasi ke AppServiceProvider
Kode : Service Injection
Kode : Test Service Injection
Inline Blade Template
Blade Facade
Inline Blade Template
Kode : Test Inline Blade Template
Extending Blade
Extending Blade
Kode : Extending Blade
Kode : Layout Extending Blade
Kode : Test Extending Blade
Custom Echo Handler
Custom Echo Handler
Kode : Class Model
Kode : Custom Echo Handler
Kode : Layout
Kode : Test Custom Echo Handler
Optimize Template
Optimizing Template
Compiling Template
Materi Selanjutnya
Materi Selanjutnya