Views
3 years ago

Learning Laravel's Eloquent

Learning Laravel's

[ 1 ] www.it-ebooks.info

  • Page 2 and 3: Learning Laravel's Eloquent Develop
  • Page 4 and 5: Credits Author Francesco Malatesta
  • Page 6 and 7: Acknowledgments There are many peop
  • Page 8 and 9: www.PacktPub.com Support files, eBo
  • Page 10 and 11: Table of Contents Preface v Chapter
  • Page 12 and 13: Table of Contents Querying-related
  • Page 14 and 15: Preface If you are associated with
  • Page 16 and 17: Conventions In this book, you will
  • Page 18 and 19: Setting Up Our First Project "Chi b
  • Page 20 and 21: Chapter 1 Once Composer is installe
  • Page 22 and 23: Chapter 1 In order to know what mus
  • Page 24 and 25: The Laravel community knows a coupl
  • Page 26 and 27: Chapter 1 After that, you can initi
  • Page 28 and 29: Chapter 1 2. Put the generated SSH
  • Page 30 and 31: Chapter 1 The default username for
  • Page 32 and 33: Chapter 1 Installing Laravel Before
  • Page 34 and 35: Chapter 1 What are you waiting for?
  • Page 36 and 37: Chapter 1 Setting up the database c
  • Page 38 and 39: Let's delete everything and replace
  • Page 40 and 41: Hey hero! Building the Database wit
  • Page 42 and 43: Chapter 2 When possible, I like to
  • Page 44 and 45: Chapter 2 $table->increments('id');
  • Page 46 and 47: Chapter 2 Method Description $table
  • Page 48 and 49: Chapter 2 If you want to specify a
  • Page 50 and 51: Chapter 2 You can also add a foreig
  • Page 52 and 53:

    Chapter 2 Database versioning with

  • Page 54 and 55:

    Chapter 2 $table->dropColumn('publi

  • Page 56 and 57:

    Chapter 2 { $table->increments('id'

  • Page 58 and 59:

    Summary Finally, the hero leaves hi

  • Page 60 and 61:

    The Most Important Element - the Mo

  • Page 62 and 63:

    2. Once you have done this, let's o

  • Page 64 and 65:

    Now, if you run this code and then

  • Page 66 and 67:

    After this, again execute your code

  • Page 68 and 69:

    Chapter 3 Getting back to our where

  • Page 70 and 71:

    Chapter 3 Here's a key concept. Whe

  • Page 72 and 73:

    Instead of specifying three paramet

  • Page 74 and 75:

    Obviously, the wherePagesCount meth

  • Page 76 and 77:

    Chapter 3 We are telling Eloquent t

  • Page 78 and 79:

    Chapter 3 protected $fillable = [ '

  • Page 80 and 81:

    Chapter 3 However, sometimes they a

  • Page 82 and 83:

    Chapter 3 First of all, here's an e

  • Page 84 and 85:

    Chapter 3 Here it is:

  • Page 86 and 87:

    Attributes casting The easier way t

  • Page 88 and 89:

    Chapter 3 Nothing more. Now, have a

  • Page 90 and 91:

    Quick conversion to array or JSON D

  • Page 92 and 93:

    Chapter 3 Imaginary attributes Usin

  • Page 94 and 95:

    Chapter 3 It's a little trick but s

  • Page 96 and 97:

    Exploring the World of Relationship

  • Page 98 and 99:

    Chapter 4 The trinity - one to one,

  • Page 100 and 101:

    Chapter 4 The syntax makes sense, r

  • Page 102 and 103:

    If you want, you can specify a diff

  • Page 104 and 105:

    Chapter 4 You can then use the belo

  • Page 106 and 107:

    Chapter 4 } return $this->belongsTo

  • Page 108 and 109:

    Chapter 4 Let's suppose that we are

  • Page 110 and 111:

    Accessing a pivot table Working wit

  • Page 112 and 113:

    Chapter 4 Using what we've learned

  • Page 114 and 115:

    Chapter 4 You can do it like this:

  • Page 116 and 117:

    Chapter 4 Let's rewrite this exampl

  • Page 118 and 119:

    Chapter 4 However, the first method

  • Page 120 and 121:

    Chapter 4 Confused? Let me explain

  • Page 122 and 123:

    Chapter 4 } return $this->belongsTo

  • Page 124 and 125:

    Chapter 4 use Illuminate\Database\E

  • Page 126 and 127:

    Chapter 4 class Category extends Mo

  • Page 128 and 129:

    A many-to-many polymorphic relation

  • Page 130 and 131:

    Chapter 4 Pay maximum attention to

  • Page 132 and 133:

    Using Collections to Enhance Result

  • Page 134 and 135:

    Chapter 5 • With this powered syn

  • Page 136 and 137:

    Chapter 5 With this simple call, yo

  • Page 138 and 139:

    "2015">Chapter 5 } ] "created_at" => "2015

  • Page 140 and 141:

    Chapter 5 The syntax is really simi

  • Page 142 and 143:

    Everything under Control with Event

  • Page 144 and 145:

    Chapter 6 For every operation, you

  • Page 146 and 147:

    An example of model events We can n

  • Page 148 and 149:

    Chapter 6 There is nothing more to

  • Page 150 and 151:

    Chapter 6 You can name your classes

  • Page 152 and 153:

    Chapter 6 A very rude approach, I k

  • Page 154 and 155:

    Chapter 6 Summary Great! You are no

  • Page 156 and 157:

    Eloquent… without Laravel! Our jo

  • Page 158 and 159:

    Chapter 7 Folder Migrations Query S

  • Page 160 and 161:

    Set the event dispatcher used by El

  • Page 162 and 163:

    Chapter 7 The Query Builder The Que

  • Page 164 and 165:

    It's Not Enough! Extending Eloquent

  • Page 166 and 167:

    Chapter 8 Then, in the dedicated po

  • Page 168 and 169:

    Chapter 8 If this isn't enough, the

  • Page 170 and 171:

    Chapter 8 So, in your Model, you wi

  • Page 172 and 173:

    Actually, when you create a new mod

  • Page 174 and 175:

    Chapter 8 The Aweloquent Model self

  • Page 176 and 177:

    Great! The Validator Facadec is use

  • Page 178 and 179:

    Chapter 8 $validator = Validator::m

  • Page 180 and 181:

    Chapter 8 This time, I used the Str

  • Page 182 and 183:

    Chapter 8 // if updating, use "upda

  • Page 184 and 185:

    Chapter 8 This extract is from the

  • Page 186 and 187:

    So, imagine a repository as somethi

  • Page 188 and 189:

    Chapter 8 public function find($aut

  • Page 190 and 191:

    In a few words, the concept is that

  • Page 192 and 193:

    Chapter 8 interface AuthorsReposito

  • Page 194 and 195:

    Chapter 8 public function getAll($p

  • Page 196 and 197:

    Index A accessors about 70 naming c

  • Page 198 and 199:

    model observers about 130, 131 exam

  • Page 200 and 201:

    Thank you for buying Learning Larav

  • Page 202:

    Learning Laravel 4 Application Deve

Laravel Starter - PHP User Group (Myanmar)
TurboIMAGE to Eloquence Migration - OpenMPE
TurboIMAGE to Eloquence Migration - OpenMPE
Why You Should Learn Laravel Framework in 2017?
Why Laravel is Best PHP Framework for Development in 2017?
PHP.Architectnanobooks.PHP_.Architects.Guide_.to_.PHP_.Design.Patterns.2005.LotB_
EXTENDED LEARNING MODULE J - McGraw-Hill Learning Solutions
EXTENDED LEARNING MODULE C - McGraw-Hill Learning Solutions
Laravel and its Lightweight Breadcrumbs
Print Version -- Eloquent J... - Eloquent JavaScript
What Makes Laravel the Most Desirable Framework Amongst Developers
Q&A about Public Access into Eloquent Archives™ Contents
Transforming TurboIMAGE Data for Eloquence, Oracle ... - OpenMPE
Lessons Learned Using the VOResource XML Schemas in ... - IVOA
Schemaless Attributes Package _ Complete overview
Learning Tree International, Course Outline
Exercises on XML and Semantic Web Technologies ... - ISMLL