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
Modern Angular: Renovation for Your Applications
manfredsteyer
PRO
0
210
LLM生成文章の精度評価自動化とプロンプトチューニングの効率化について
layerx
PRO
2
140
Tuning GraphQL on Rails
pyama86
2
1k
Go言語でターミナルフレンドリーなAIコマンド、afaを作った/fukuokago20_afa
monochromegane
2
140
Kotlin2でdataクラスの copyメソッドを禁止する/Data class copy function to have the same visibility as constructor
eichisanden
1
140
【Kaigi on Rails 2024】YOUTRUST スポンサーLT
krpk1900
1
250
推し活の ハイトラフィックに立ち向かう Railsとアーキテクチャ - Kaigi on Rails 2024
falcon8823
6
2.2k
デプロイを任されたので、教わった通りにデプロイしたら障害になった件 ~俺のやらかしを越えてゆけ~
techouse
52
32k
現場で役立つモデリング 超入門
masuda220
PRO
13
2.9k
VR HMDとしてのVision Pro+ゲーム開発について
yasei_no_otoko
0
100
Googleのテストサイズを活用したテスト環境の構築
toms74209200
0
270
Vue SFCのtemplateでTypeScriptの型を活用しよう
tsukkee
3
1.5k
Featured
See All Featured
Mobile First: as difficult as doing things right
swwweet
222
8.9k
How to train your dragon (web standard)
notwaldorf
88
5.7k
How to Think Like a Performance Engineer
csswizardry
19
1.1k
Building Applications with DynamoDB
mza
90
6.1k
Testing 201, or: Great Expectations
jmmastey
38
7k
5 minutes of I Can Smell Your CMS
philhawksworth
202
19k
Product Roadmaps are Hard
iamctodd
PRO
48
10k
No one is an island. Learnings from fostering a developers community.
thoeni
19
3k
Building a Scalable Design System with Sketch
lauravandoore
459
33k
Building an army of robots
kneath
302
42k
Fontdeck: Realign not Redesign
paulrobertlloyd
81
5.2k
Learning to Love Humans: Emotional Interface Design
aarron
272
40k
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