Twitter Delicious Facebook Digg Stumbleupon Favorites More

Sabtu, 27 Mei 2017

Tutorial CRUD Di laravel 5.4

Assalammualaikum Wr. WB. Salam IT, ditutorial ini saya akan mempraktikan membuat crud di Laravel 5.4 karna untuk keperluan mata kuliah Framework Programming dan sekalia sharing barang kali berguna. Oke tidak perlu lama - lama karena sedang bulan puasa mari berkoding ria. Untuk tampilannya nanti akan dibuat seperti berikut:
1.Halaman List


2.Halaman Detail

3.Halaman Edit

Sekarang kita menuju ke source code nya.
  1. Buatlah file controller dengan nama KaryawanController.php dengan menggunakan php artisan laravel dan ikuti source code berikut pada pastebin  https://pastebin.com/UKaPdxAg 
  2. Buatlah file model dengan nama Karyawan.php dengan menggunakan php artisan laravel dan ikuti source code berikut https://pastebin.com/zdpvihq3 
  3. Buatlah sebuah file migration untuk tabel databasenya dengan php artisan laravel seperti berikut https://pastebin.com/j9jZHBKq 
  4. Buat FormRequest dengan nama KaryawanRequest.php dari php artisan laravel dan isi source codenya seperti berikut https://pastebin.com/FwvS5G3A
  5. Buat view untuk tampilan templatenya pada folder view laravel dengan nama template.blade.php dengan source code seperti berikut https://pastebin.com/cDt1Hkqw
  6. Buatlah view dengan nama navbar.blade.php dan source codenya seperti berikut  https://pastebin.com/dwsFP9P3
  7. Buatlah view dengan nama footer.blade.php dan source codenya seperti berikut https://pastebin.com/vH3fB7GF
  8. Buatlah folder di dalam folder view dengan nama chaps8 dan buka folder tersebut untuk membuat file view selanjutnya.
  9. Buatlah folde view dengan nama form.blade.php untuk membuat tampilan inputan dan source codengan seperti berikut https://pastebin.com/ccqw9czY
  10. Buatlah file view dengan karyawan.blade.php untuk tampilan listnya dan ikuti source codenya seperti berikut https://pastebin.com/jbQHf2qZ
  11. Buatlah file view dengan show.blade.php untuk tampilan detail dan ikuti source codenya seperti berikut https://pastebin.com/pfRPHC9Y
  12. Buatlah file view dengan edit.blade.php untuk tampilan edit dan ikuti source codenya seperti berikut https://pastebin.com/GR8K5nSW
  13.  Buatlah file view dengan create.blade.php untuk tampilan create atau tambah dan ikuti source codenya seperti berikut https://pastebin.com/BR6Kxpbi
  14. Buka file web.php atau file router dari laravel dan tambah kan seperti pada source code berikut https://pastebin.com/JrEhYqdN 
  15. Untuk sebagai pelengkap buatlah folder css di direktory root laravel dan buatlah file css di dalam folder css dengan nama style.css dan tambahkan seperti pada source code berikut https://pastebin.com/AQ5Q9tuw 
  16. Buatlah folder fotoupload di directory root laravel untuk menampung foto yang di upload.
Dan silahkan jalankan pada browser anda. Terimakasih. Happy Coding.


 

1 komentar:

Unknown mengatakan...

Did you realize there's a 12 word sentence you can tell your crush... that will trigger deep feelings of love and instinctual attraction to you buried within his chest?

That's because hidden in these 12 words is a "secret signal" that triggers a man's impulse to love, treasure and guard you with his entire heart...

===> 12 Words Who Trigger A Man's Desire Response

This impulse is so hardwired into a man's genetics that it will make him try harder than before to do his best at looking after your relationship.

Matter of fact, triggering this dominant impulse is so binding to achieving the best ever relationship with your man that the instance you send your man a "Secret Signal"...

...You will instantly find him expose his soul and heart for you in such a way he never experienced before and he'll perceive you as the one and only woman in the world who has ever truly interested him.

Posting Komentar

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Blogger Templates