Introduction to Laravel framework “Love beautiful code? We do too.”

Slides:



Advertisements
Presentasi serupa
SQL – DML.
Advertisements

PHP + MySQL.
Pertemuan 2 : Dasar-dasar SQL SBD C – Senin, Frank & Rudy
SISTEM BASIS DATA INTRO-5. •Setelah mengikuti perkuliahan ini diharapkan mahasiswa dapat mengerti : 1.Aplikasi perintah SQL ke MySql Server 2.Mengerti.
UNIVERSITAS BUDI LUHUR FAKULTAS TEKNOLOGI INFORMASI HAL : 1 Pemrograman VB.NET Pertemuan 4.
Dasar-dasar SQL soesanto.
MYSQL.
Database Create-Retrieve-Update-Delete (CRUD)
DDL & Aturan Referential
PEMROGRAMAN BASIS DATA
SISTEM BASISDATA Lasmedi Afuan, ST.,M.Cs. SQL (S RUCTURE Q UERY L ANGUAGE ) Query/SQL : Bahasa standar yang digunakan untuk mengakses basisdata. Standar.
Pertemuan 4 Database dengan MySQL.
Basis Data Bab 3 Structured Query Language (SQL).
CHANGE DATA CAPTURE.
MEMBUAT DATABASE MENGGUNAKAN MICROSOFT SQL SERVER 2008
DDL & Aturan Referential
DATA MANIPULATION LANGUAGE (DML)
Pemrograman Visual II Database Management System (DBMS) Oleh: Erna Sri Hartatik, S.Kom
Quiz Before UAS Perancangan database.
Pemrograman Web/MI/D3 sks
STORED PROCEDURE Achmad Yasid, SKom.
TRIGGER.
1 Bab 3 Structured Query Language (SQL) Basis Data
Microsoft SQL Server DDL dan DML dasar
Project Pemrograman Web
MySQL (My Stucture Query Language) Jenis Perintah MySQL terbagi:  DDL (Data Definition Language) bentuk bahasa yang digunakan untuk melakukan pendefinisian.
Data Definition Language dan Data Manipulation Language
PRAKTIKUM 3 PEMROGRAMAN BASIS DATA. Menghapus baris  Deleting rows- DELETE FROM Use the DELELE FROM command to delete row(s) from a table, with the following.
Data Types Data Definition Language Referential Constraint SQL Query
SQL = Structure Query Language
SQL (Structure Query Language)
BAHASA QUERY TERAPAN OLEH : HARSITI, ST.
Review. Fakultas Ilmu Komputer UI 2 Database Introduction Database vs File Processing Database Actors DBA, Database Designers, Database users, Application.
TRIGGER.
1 Pertemuan 01 Pemrograman Visual Matakuliah: T0063/Pemrograman Visual Tahun: 2005 Versi: 1/0.
F ORM Bayu Priyambadha, S.Kom. F ORM Form is the interface (user interface) for users to communicate with the application system. Each posted data from.
Dasar query basis data dengan SQLite
PENGANTAR TEKNOLOGI SIA 2
Pertemuan 3 INSERT data dan Basic DML
Outline: Relational Data Model Entity Relationship Diagram
Pertemuan after UTS Structure Query Language (SQL)
PEMASARAN BERBASIS WEB
FUNGSI-FUNGSI AKSES MySql
DDL, DML.
Bahasa query terpan.
Konsep Teknologi Informasi B
SQL (Structure Query Language)
Pembahasan kuis.
Konsep Teknologi Informasi B
DATA MANIPULATION LANGUAGE (DML)
Bahasa Pemrograman (Pemrograman Visual)
PEMASARAN BERBASIS WEB
SQL OVERVIEW.
Created By Amir Ali,S.Kom.,M.Kom
KULIAH “PRAKTIKUM BASIS DATA“ TEKNIK INFORMATIKA UNIVERSITAS MERCU BUANA Oleh : AFIYATI S.KOM, MT.
BASIS DATA KD 3.6 Query Berjenjang.
PIBJ (PEMROGRAMAN INTERNET BERBASIS JAVA)
LARAVEL KELOMPOK 4 Diah Ayu Setiowati ( ) Bimo Muhamad R ( )
Pengembangan Aplikasi Framework
EXERCISE DML Part I Buatlah sebuah tabel baru nama = Dosen
Pemrograman Berorientasi Platform (IN315B)
CREATE, MODIFY, & DELETE TABLE
HAIRUL ANUAR BIN HJ. MASROL
Referensi Bahasa MySQL
Membuat Query ACCESS Query adalah fasilitas untuk mengakses data dengan cara  yang memungkin bagi kita untuk menampilkan data-data dari database dalam.
Java Database Connectivity (JDBC)
 Zoho Mail offers easy options to migrate data from G Suite or Gmail accounts. All s, contacts, and calendar or other important data can be imported.
Sumber Buku : Laravel 5.7 -oleh Muhammad Azamuddin & Hafid Mukhlasan
MASIH INGAT ADA ROUTE ADA APA SAJA ?
DATABASE.
Transcript presentasi:

Introduction to Laravel framework “Love beautiful code? We do too.”

About Speaker Hardian PT Biro Klasifikasi Indonesia

Laravel (2011) V5.7 (2018) Taylor Otwell Laravel Horizon | Laravel Dusk | Laravel Echo | Valet | Lumen | and more….

Today Topic Architecture Routing Controller Model Views Migration Query Builder Eloquent Composer support

Architecture

Routing Default route files : routes/web.php and routes/api.php Available method : GET, POST, PUT, PATCH, DELETE, OPTIONS CSRF protection Using parameter(s) : Route::get('users/ {id} ', ['uses' => Named route : Route::get('users/{id}', ['uses' name(‘show’) ; Grouping

Controller Default folder : app/Http/Controllers Connecting model and view (see the architecture) ‘Request’ handler : Illuminate\Http\Request ○ all() ○ only() ○ except() ○ json() ○ And more (

Controller

Return view response : return view('auth.login'); Compacting data to view $data['member'] = [ 'fatoni', 'kennan' ]; return view('member.index', compact('data')); Redirect to route : return redirect()->route('member.index');

Model Default folder : app Connecting app with database Awesome Eloquent

Model

Views Default folder : resources/views Blade templating (

Views Easy to organizing

Views Easy to organizing

Migrations Default folder : database/migrations Build database from application Easily modify and share database schema Creating foreign key ( relationship )

Migrations CreateRolesTable CreatePermissionRoleTable

Migrations

Query Builder Get Data Query Builder : ○ $users = DB::table('users')->get(); SQL Query ○ $sql = "SELECT * FROM users”; Insert Data Query Builder : ○ $result = DB::table('users')->insert([‘colum1’ => ‘values1’, ‘column2’ => ‘values2’]); ○ $result = DB::table(users’)->insert($request->all()); SQL Query ○ INSERT INTO users (column1, column2.) VALUES (value1, value2)

Query Builder Update Data Query Builder : ○ $result = DB::table('users')->where(‘id’, ‘=’, 1)->update([‘colum1’ => ‘values1’, ‘column2’ => ‘values2’]); ○ $result = DB::table(users’) ->where(‘id’, ‘=’, 1) ->insert($request->all()); SQL Query ○ UPDATE users SET column1=value, column2=value2 WHERE id=1

Eloquent Awesome collections ( all(), create(), update(), etc ) Accessors & Mutators Easy managing and working with relationships Serializations

Eloquent Awesome collections ( all(), create(), update(), etc )

Eloquent Accessors & Mutators Accessor Mutator

Eloquent Easy managing and working with relationships ○ One To One ○ One To Many ○ Many To Many ○ Has Many Through ○ Polymorphic Relations ○ Many To Many Polymorphic Relations

Eloquent Easy managing and working with relationships ○ One To One Call it : $phone = User::find(1)->phone;

Eloquent Serializations ○ Serializing To Arrays ○ Serializing To JSON

Composer support

Terima Kasih