☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:
https://ko-fi.com/bugbytes
In this video, we'll look at integrating HTMX into a Laravel application. We'll build a simple app with models, migrations and seeders, along with controllers for normal requests and HTMX AJAX requests. We'll also build a partial Blade template for the HTMX response content.
📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Django 5.2 Intro
02:26 Creating Laravel model for books
03:20 Creating migration for book table
04:53 Seeding database using Seeder class
06:35 Creating Laravel Controller and Blade template
11:01 Rendering books in template
14:13 Adding HTMX to Laravel project
14:33 GET requests with HTMX on user actions
18:45 Adding trigger modifier to debounce requests
19:55 HTMX alternatives - Livewire and Inertia
𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📖 Blog: https://bugbytes.io/posts/
👾 Github: https://github.com/bugbytes-io/
📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
Laravel: https://laravel.com/
Laravel Installation: https://laravel.com/docs/12.x/install...
Laravel Frontend: https://laravel.com/docs/12.x/frontend
HTMX Installation: https://htmx.org/docs/#installing
#htmx #laravel #php