Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
PHPKonf 2016
Search
Arda Kılıçdağı
May 21, 2016
Programming
2
170
PHPKonf 2016
"Laravel Tips and Tricks" presentation from PHPKonf 2016.
Arda Kılıçdağı
May 21, 2016
Tweet
Share
More Decks by Arda Kılıçdağı
See All by Arda Kılıçdağı
Profesyönel İş Dünyasında Yazılım Üretimi ve Raspberry Pi Üzerine Düşünceler
ardakilic
0
68
Other Decks in Programming
See All in Programming
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
0
100
Snowflake x dbtで作るセキュアでアジャイルなデータ基盤
tsoshiro
2
520
Enabling DevOps and Team Topologies Through Architecture: Architecting for Fast Flow
cer
PRO
0
340
とにかくAWS GameDay!AWSは世界の共通言語! / Anyway, AWS GameDay! AWS is the world's lingua franca!
seike460
PRO
1
900
Outline View in SwiftUI
1024jp
1
330
ペアーズにおけるAmazon Bedrockを⽤いた障害対応⽀援 ⽣成AIツールの導⼊事例 @ 20241115配信AWSウェビナー登壇
fukubaka0825
6
2k
macOS でできる リアルタイム動画像処理
biacco42
9
2.4k
初めてDefinitelyTypedにPRを出した話
syumai
0
420
NSOutlineView何もわからん:( 前編 / I Don't Understand About NSOutlineView :( Pt. 1
usagimaru
0
340
タクシーアプリ『GO』のリアルタイムデータ分析基盤における機械学習サービスの活用
mot_techtalk
4
1.5k
Make Impossible States Impossibleを 意識してReactのPropsを設計しよう
ikumatadokoro
0
230
Pinia Colada が実現するスマートな非同期処理
naokihaba
4
230
Featured
See All Featured
GraphQLとの向き合い方2022年版
quramy
43
13k
Building Adaptive Systems
keathley
38
2.3k
It's Worth the Effort
3n
183
27k
Reflections from 52 weeks, 52 projects
jeffersonlam
346
20k
YesSQL, Process and Tooling at Scale
rocio
169
14k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
720
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
A Philosophy of Restraint
colly
203
16k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
RailsConf 2023
tenderlove
29
900
Thoughts on Productivity
jonyablonski
67
4.3k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
Transcript
LARAVEL TIPS AND TRICKS ARDA KILIÇDAĞI Twitter: @ardadev GitHub: Ardakilic
LinkedIn: ardakilicdagi
ARDA KILIÇDAĞI 2
ARDA KILIÇDAĞI bit.ly/laravel-design-patterns bit.ly/laravel-kitabi bit.ly/raspberry-pi-kitabi 3
ELOQUENT 4
ELOQUENT WHITELIST / BLACKLIST 5
ELOQUENT CONNECTING TO DIFFERENT DB DRIVES 6
ELOQUENT CONNECTING TO DIFFERENT DB DRIVES 7
ELOQUENT CHANGING CONNECTION DYNAMICALLY 8
ELOQUENT TRAITS AND GENERALISED RANDOM() USAGE 9
ELOQUENT TRAITS AND GENERALISED RANDOM() USAGE 10
ELOQUENT TRAITS AND GENERALISED RANDOM() USAGE 11 http://bit.ly/laravel-random-trait
ELOQUENT EAGER LOADING 12
ELOQUENT LAZY LOADING AND HYDRATORS 13
ELOQUENT LAZY LOADING VE HYDRATOR 14
ELOQUENT SETTING ALIASES TO RELATIONS 15
ELOQUENT SETTING ALIASES TO RELATIONS 16
ELOQUENT RECURSIVE RELATIONS 17
ELOQUENT RECURSIVE RELATIONS 18
ELOQUENT MODEL EVENTS AND ADDING VALUES DYNAMICALLY 19
ELOQUENT MODEL EVENTS AND ADDING VALUES DYNAMICALLY 20
ELOQUENT CONDITIONAL RELATIONS, SORTING AND FILTERING 21
ELOQUENT DATE BASED FILTERINGS 22
ELOQUENT ACCESSORS 23
ELOQUENT FILTERING OVER RELATIONS 24
ELOQUENT NESTED RELATION FILTERING 25
COLLECTIONS 26
COLLECTIONS CREATING MANUALLY, APPENDING, FILTERING 27
COLLECTIONS PREPENDING, AND CREATING A COLLECTION FOR DROPDOWN(S) 28
COLLECTIONS KEYS OF THE COLLECTIONS 29
MISC 30
MISC ROUTE GROUPS 31
MISC SELF-REFRESHING CACHE 32
MISC WHOOPS WITH LARAVEL 5.X 33 http://bit.ly/laravel-5-whoops
MISC CALLING DIFFERENT .ENV FILES CONDITIONALLY 34 (Don’t do it)
MISC VIEW COMPOSERS, CENTRALISED META TAG MANAGEMENT FOR SEO 35
http://bit.ly/laravel-view-composer-seo
MISC VIEW COMPOSERS, CENTRALISED META TAG MANAGEMENT FOR SEO 36
http://bit.ly/laravel-view-composer-seo
MISC VIEW COMPOSERS, CENTRALISED META TAG MANAGEMENT FOR SEO 37
http://bit.ly/laravel-view-composer-seo
MISC VIEW COMPOSERS, CENTRALISED META TAG MANAGEMENT FOR SEO 38
http://bit.ly/laravel-view-composer-seo
QUESTIONS? 39 https://github.com/Ardakilic/phpkonf-2016
THANKS! 40 twitter.com/ardadev github.com/ardakilic linkedin.com/in/ardakilicdagi