Presentation 1

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 2

INTRODUCTION LARAVEL

term
1. Route= ambil dari blade pap
What? Installation 2. View=abil dr view
• Framework PHP open-source gratis 1. https://laravel.com/ 3. @yield(title)= bagi pemboleh ubah/dinamik
• MVC 2. Documents 4. @extends(‘layout/main’)= ambl dai file tersebut, blh paki/atau .
• Taylor otwell(da buat) kalo codinator (industry ) 3. https://www.youtube.com/watch?v=i-6qK5MyjO4 5. @section(‘title’,’home’)
4. Xampp 6. @section(‘container’) @endsection
Why? 5. Composer 7. Extends, section , yield x perlu pakai ;
• Expressive & Beautiful syntax 6. Xampp folder – htdocs- newFolder[Laravel] 8. Dlm route boleh send variable, cth $name=‘nurul’;
• Sesuai untuk team 7. Commandprompt- cd C:\xampp\htdocs\Laravel –
• Moderm toolkit dari codedinater 8. Visual studio code
• Magic
Tutorial
Apa yang harus dipelajari?
• Page laravel ada pada ‘route’[web.php]
• PHP
• Boleh je dari route
• Object Oriented PHP
• Dkt route boleh :
• MVC
1. Panggil controller,
• CodeIgniter :CRUD
2. Blh kirim data & sebagainya
• Composer: menarik/ ambil package guna
composer
• Teminal/ Git Bash : sebelum tahu composer kne
tahu juga tentang ini.
INTRODUCTION LARAVEL- Controller,DB,Migration& Modal MVC

Migration
Controller Modal
• Dekat web.php – send ke controller :
DB View
• https://
 Route:: 1. Perlu configuration dahulu • Index • Modal ade di providers www.youtube.com/watch?v=Ir
get(‘/’,’PagesController@home’); 2. .env   @foreach($mahasiswa as $mh R1Vic4onQ
 Route:: 3. Pergi at docLaravel-database- s)
get(‘/about’,’PagesController@about’) query –index- ade panduan  @endforeach • 43:52
; 4. Dump//dd- view data/debug  {{$mhs-> nama}}- panggil
 Route::get('/', 'App\Http\Controllers\ based on atas
PagesController@home');  Untuk no boleh pakai loop ->
Eloquent ORM
• Folder :HTTP: Controllers
• Web.php suruh dia make controller:
 Php artisan make: controller
namaController
 php artisan make:controller
MahasiswaController --resource
--resource

https://www.youtube.com/watch?v=IrR1Vic4onQ&t=312s

You might also like