Pasang Template Admin Laravel 11: Perbedaan antara revisi
Loncat ke navigasi
Loncat ke pencarian
Baris 16: | Baris 16: | ||
php artisan make:livewire Dashboard | #php artisan make:livewire Dashboard | ||
COMPONENT CREATED 🤙 | |||
COMPONENT CREATED 🤙 | CLASS: app/Livewire/Dashboard.php | ||
VIEW: resources/views/livewire/dashboard.blade.php | |||
CLASS: app/Livewire/Dashboard.php | _._ | ||
/ /o\ \ || () () __ | |||
VIEW: resources/views/livewire/dashboard.blade.php | |_\ /_| || || \\// /_\ \\ // || |~~ /_\ | ||
|`|`| || || \/ \\_ \^/ || || \\_ | |||
_._ | |||
Congratulations, you've created your first Livewire component! 🎉🎉🎉 | |||
/ /o\ \ || () () __ | |||
|_\ /_| || || \\// /_\ \\ // || |~~ /_\ | |||
|`|`| || || \/ \\_ \^/ || || \\_ | |||
Congratulations, you've created your first Livewire component! 🎉🎉🎉 | |||
[[Kategori:Laravel 11]] | [[Kategori:Laravel 11]] |
Revisi per 9 November 2024 13.51
Download Template Admin
Untuk memasang template admin pada laravel 11, bisa dilakukan dengan mengunggah semua assets mulai dari css, js, dan folder yang diperlukan ke dalam folder public_html. pada praktek ini akan saya gunakan template admin versi gratis bisa di download pada link berikut https://bootstrapmade.com/nice-admin-bootstrap-admin-html-template/ . Setelah terdownload, estrak dan upload semua isi yang ada dalam folder assets ke public_html.
Salin File pages-blank.html
Salin isi file dari pages-blank.html ke components/layouts/app.blade.php
Buat class dan view untuk tampilan dashboard
gunakan perintah
php artisan make:livewire Dashboard
maka akan muncul seperti berikut
#php artisan make:livewire Dashboard COMPONENT CREATED 🤙 CLASS: app/Livewire/Dashboard.php VIEW: resources/views/livewire/dashboard.blade.php _._ / /o\ \ || () () __ |_\ /_| || || \\// /_\ \\ // || |~~ /_\ |`|`| || || \/ \\_ \^/ || || \\_ Congratulations, you've created your first Livewire component! 🎉🎉🎉