Download free for 30 days
Sign in
Upload
Language (EN)
Support
Business
Mobile
Social Media
Marketing
Technology
Art & Photos
Career
Design
Education
Presentations & Public Speaking
Government & Nonprofit
Healthcare
Internet
Law
Leadership & Management
Automotive
Engineering
Software
Recruiting & HR
Retail
Sales
Services
Science
Small Business & Entrepreneurship
Food
Environment
Economy & Finance
Data & Analytics
Investor Relations
Sports
Spiritual
News & Politics
Travel
Self Improvement
Real Estate
Entertainment & Humor
Health & Medicine
Devices & Hardware
Lifestyle
Change Language
Language
English
Español
Português
Français
Deutsche
Cancel
Save
Submit search
EN
AK
Uploaded by
Arda Kılıçdağı
1,222 views
Eloquent ORM
Slides of my presentation "Eloquent ORM" for PHPKonf, which occurred in Istanbul Sehir University in
Technology
◦
Read more
1
Save
Share
Embed
Embed presentation
Download
Downloaded 13 times
1
/ 25
2
/ 25
3
/ 25
4
/ 25
5
/ 25
6
/ 25
7
/ 25
8
/ 25
9
/ 25
10
/ 25
11
/ 25
12
/ 25
13
/ 25
14
/ 25
15
/ 25
16
/ 25
17
/ 25
18
/ 25
19
/ 25
20
/ 25
21
/ 25
22
/ 25
23
/ 25
24
/ 25
25
/ 25
More Related Content
PDF
Neural signal processing by mustafa rasheed & zeena saadon & walaa kahtan 2015
by
Mustafa AL-Timemmie
PPTX
Cb lec 9 groups (1)
by
Samina Haider
PPTX
I-Lappy- the Future Laptop
by
Sukumar Perneti
PDF
Is Your Kid Safe? How to Prevent Child Identity Theft
by
The Identity Advocate
PPT
Smoke
by
Dadu Brutally Innocent
PPT
Николай Тесла
by
galiya rafailevna
PPTX
брось природе спасательной круг
by
Antshil
PDF
Payroll outsourcing services
by
Mindspace Outsourcing
Neural signal processing by mustafa rasheed & zeena saadon & walaa kahtan 2015
by
Mustafa AL-Timemmie
Cb lec 9 groups (1)
by
Samina Haider
I-Lappy- the Future Laptop
by
Sukumar Perneti
Is Your Kid Safe? How to Prevent Child Identity Theft
by
The Identity Advocate
Smoke
by
Dadu Brutally Innocent
Николай Тесла
by
galiya rafailevna
брось природе спасательной круг
by
Antshil
Payroll outsourcing services
by
Mindspace Outsourcing
Viewers also liked
PPTX
Rangkuman teknologi pendidikan
by
Viki Dita
PDF
Bring your own device by Chris Klompenhouwer
by
Chris Klompenhouwer
DOCX
Aplikasi
by
Taq Wa
PDF
Associate in Applied Science Criminal Justice
by
The Noyes Home For Children
PDF
Attraction east
by
Sirirst_0118
PPTX
Edwin armstrong
by
benle12
PPTX
In house-photos-myths
by
Jayaram Maddireddy
Rangkuman teknologi pendidikan
by
Viki Dita
Bring your own device by Chris Klompenhouwer
by
Chris Klompenhouwer
Aplikasi
by
Taq Wa
Associate in Applied Science Criminal Justice
by
The Noyes Home For Children
Attraction east
by
Sirirst_0118
Edwin armstrong
by
benle12
In house-photos-myths
by
Jayaram Maddireddy
Eloquent ORM
1.
Eloquent ORM Arda
Kılıçdağı ! ardakilicdagi@gmail.com Twitter: @ardadev linkedin.com/in/ardakilicdagi
2.
ORM Nedir? !
Object-relational mapping ! Nesne-İlişkisel Eşleme
3.
Eloquent ORM
4.
Temel Model Propertyleri
5.
Temel CRUD İşlemleri
Create Read Update Delete
6.
Soft Deletes (Belirsiz
Silme)
7.
Query Scopes (Sorgu
Kapsamları)
8.
Relationships İlişkiler: !
• One-to-One • One-to-Many • Many-to-Many • Has-Many-Through • Polymorphic • Many-to-Many Polymorphic
9.
Relationships //Temel bir
ilişki yapısı hazırlama public function iliskiAdi(){ return $this->iliskiSekli( 'ModelAdı', 'foreignVeyaLokalkey1', 'foreignVeyaLokalKey2') ->isteniyorsaWhereGibiFiltrelemeler() ->hattaOrderByGibiSıralama(); }
10.
One to One
Relationships
11.
One-to-one Relationship public
function relationAdi(){ return $this->hasOne( 'ModelAdı', //Hangi modelle ilişki? 'foreignKey', //ModelAdı'ndaki relation sütunu 'lokalRelationKey' //ya id değilse? ); }
12.
One-to-many Relationship
13.
One-to-many Relationship public
function relationAdi(){ return $this->hasMany( 'ModelAdı', //Hangi modelle ilişki? 'foreignKey', //ModelAdı'ndaki relation sütunu 'lokalRelationKey' //ya id değilse? ); }
14.
Many-to-Many Relationships blog_id
15.
Many-to-Many Relationship public
function relationAdi(){ return $this->belongsToMany( 'ModelAdı', //Hangi modelle ilişki? 'tabloadi', //Pivot tablo adı 'localKey', //Pivot tabloda kendi id'sini tutan sütun 'foreignKey', //Pivot tablodaki bağlanacağı modelin id'sin tutacak sütun ) (opsiyonel)->withPivot('pivotTablosundaki EkstraSutun'); //Eğer pivot tablosunda çekilmesi gereken ekstra sütun(lar) varsa (opsiyonel)->withTimestamps(); //eğer pivot tabloda timestampler varsa }
16.
Has-Many-Through Relationships
17.
Has-Many-Through Relationships
18.
Polymorphic Relations Çokbiçimli
ilişkiler
19.
Polymorphic Relations
20.
Polymorphic Relations
21.
Relation Sorgulama !
has() whereHas() orWhereHas()
22.
N+1 Sorgu Sorunsalı
! -Relationship'ler çok fazla loop olduğunda veri kaynağını yormaz mı? -Bu sorgularda performansı nasıl artırabiliriz?
23.
Eager Loading
24.
Teşekkürler!
25.
http://bit.ly/ laravel-kitabi Sorular?
http://bit.ly/laravel-design- patterns http://bit.ly/ raspberry-pi-kitabi
Download