Index
A
- all() method / The overview page
- anonymous functions
- about / Embracing PHP
- API
- URL / Exploring Laravel
- App**environment() method / Environment configuration made easy
- application
- sketching / Sketching out the application
- entity / Entities, relationships, and attributes
- relationships / Entities, relationships, and attributes
- attributes / Entities, relationships, and attributes
- map / The map of our application
- starting / Starting the application
- built-in development server, using / Using the built-in development server
- inspecting with / Inspecting and interacting with your application
- interacting with / Inspecting and interacting with your application
- internals, fiddling with / Fiddling with the internals
- engine, turning off / Turning the engine off
- tuning / Fine-tuning your application
- application container / The application container and request lifecycle
- array helpers
- about / Array helpers
- example / The usage examples of array helpers
- Artisan Anywhere
- assertions / Defining what you expect with assertions
- attributes / Entities, relationships, and attributes
- Auth$$attempt method / Authentication routes and views
- Auth$$check() method / Authentication routes and views
B
- be() method / Impersonating users
- Blade
- mastering / Mastering Blade
- master view, creating / Creating a master view
- Blade template helpers
- URL / Creating a master view
- Boolean functions
- about / Boolean functions
- boolean methods
- about / Boolean methods
- Bootstrap 3 CSS framework
- URL / Creating a master view
- built-in development server
C
- $cat variable / Displaying a cat's page
- call() method / Framework assertions
- Carbon
- URL / Easier date and time handling with Carbon
- date handling with / Easier date and time handling with Carbon
- time handling with / Easier date and time handling with Carbon
- for Eloquent DateTime properties / Carbon for Eloquent DateTime properties
- Carbon objects
- instantiating / Instantiating Carbon objects
- CatController class / Straightforward REST routing
- cat page
- displaying / Displaying a cat's page
- deleting / Adding, editing, and deleting cats
- editing / Adding, editing, and deleting cats
- adding / Adding, editing, and deleting cats
- close() method / Testing interdependent classes in isolation
- command
- creating / Creating the command
- anatomy / The anatomy of a command
- writing / Writing the command
- command line
- working with / Working with the command line
- Composer
- URL / How does Composer work?
- working / How does Composer work?
- installing, on UNIX / Unix (Mac OS, Linux)
- installing, on Windows / Windows
- Composer class / The application container and request lifecycle
- composer validate command / Finding and installing new packages
- Config**get($setting, $default) method / Adding your own configuration settings
- content
- escapipng, to prevent cross-site scripting / Escaping content to prevent cross-site scripting – XSS
- controllers
- about / Moving from simple routing to powerful controllers
- controller actions / Moving from simple routing to powerful controllers
- UserController.php, creating / Moving from simple routing to powerful controllers
- explicit routing / Favoring explicit routing
- REST routing / Straightforward REST routing
- cookies
- securing / Cookies – secure by default
- create() method / Adding, editing, and deleting cats
- CSRF
- about / Cross-site request forgery
- csrf_token() function / Cross-site request forgery
D
- database
- preparing / Preparing the database
- Eloquent models, creating / Creating the Eloquent models
- schema, building / Building the database schema
- seeding / Seeding the database
- testing with / Testing with a database
- database schema
- building / Building the database schema
- creating / Creating the necessary database schema
- date() method / Building the database schema
- DB$$raw method / Avoiding SQL injection
- DB**raw method / More control with SQL
- deployment
- about / Deployment, the old-school way
- DomCrawler component
- down method / Generating migrations
E
- e-mails
- sending / Sending e-mails
- Eloquent, features
- performance tricks / Simple performance tricks
- soft deletes / Foolproof models with soft deletes
- SQL / More control with SQL
- model events / Listening for model events
- paginator class / The handy paginator class
- Eloquent models
- creating / Creating the Eloquent models
- EloquentModelStub object / Expecting exceptions
- embedData method / Sending e-mails
- end-to-end testing
- about / End-to-end testing
- batteries / Testing – batteries included
- framework assertions / Framework assertions
- users, impersonating / Impersonating users
- database, testing with / Testing with a database
- rendered views, inspecting / Inspecting the rendered views
- ends_with() function / String and text manipulation
- engine
- turning off / Turning the engine off
- entity / Entities, relationships, and attributes
- Environment class / Testing interdependent classes in isolation
- environment configuration
- about / Environment configuration made easy
- tinker command / Environments and Artisan
- setting, adding / Adding your own configuration settings
- exceptions
- expecting / Expecting exceptions
F
- --fields parameter / Generating migrations
- file manipulation methods
- about / File manipulation methods
- files
- dealing with / Dealing with files
- file uploads
- about / File uploads
- fill() method / Expecting exceptions
- find() method / Displaying a cat's page
- forceDelete() method / Foolproof models with soft deletes
- forever
- Form$$model() method / Adding, editing, and deleting cats
- framework assertions / Framework assertions
- frameworks
- need for / The need for frameworks
- homemade tools, limitations / The limitations of homemade tools
- Laravel, using / Laravel to the rescue
G
- $guarded property / Using mass-assignment with care
- generate$migration command / Generating migrations
- generators
- , speeding up with / Speeding up your workflow with generators
- migrations, generating / Generating migrations
- HTML forms, generating / Generating HTML forms
- getAuthIdentifier() method / Creating the user model
- getAuthPassword() method / Creating the user model
- getCurrentPage() method / Testing interdependent classes in isolation
- getDates() method / Carbon for Eloquent DateTime properties
- GET method / The map of our application
- guard() method / Expecting exceptions
H
- homemade tools
- limitations / The limitations of homemade tools
- HTML forms
- generating / Generating HTML forms
- HTTP foundation / A more robust HTTP foundation
- HTTPS
I
- inflection functions
- about / Inflection functions
- Input$$get() method / Adding, editing, and deleting cats
- intended() method / Authentication routes and views
- interdependent classes
- testing, in isolation / Testing interdependent classes in isolation
- interfaces
- about / Embracing PHP
- internals
- fiddling with / Fiddling with the internals
J
- job
- creating / Creating a job and pushing it onto the queue
- pushing, onto queue / Creating a job and pushing it onto the queue
- executing / Listening to a queue and executing jobs
- job fail
- notifying / Getting notified when a job fails
- JSON serialization features
- using / Playing nice with the frontend
L
- Laravel
- using / Laravel to the rescue
- features / Laravel's main features and sources of inspiration, Expressiveness and simplicity, Responsibilities, naming, and conventions, Helping you become a better developer
- models / Responsibilities, naming, and conventions
- controllers / Responsibilities, naming, and conventions
- views / Responsibilities, naming, and conventions
- templates / Responsibilities, naming, and conventions
- exploring / Exploring Laravel
- moving, to version 4 / Moving from Version 3 to Version 4
- URL / Where to go next?
- Laravel application
- structure / Structure of a Laravel application
- application container / The application container and request lifecycle
- request lifecycle / The application container and request lifecycle
- creating / Creating a new Laravel application
M
- mass-assignment
- using / Using mass-assignment with care
- master view
- creating / Creating a master view
- method variable / Adding, editing, and deleting cats
- migrations
- generating / Generating migrations
- missing method / Catching the missing routes
- missing routes
- identifying / Catching the missing routes
- mocks
- Model-View-Controller (MVC) / Laravel to the rescue
N
- namespaces
- about / Embracing PHP
- nullable() method / Building the database schema
O
- objects
- cleaning up / Preparing the scene and cleaning up objects
- overloading
- about / Embracing PHP
- overview page / The overview page
P
- package installation guide
- packages
- finding / Finding and installing new packages
- URL / Finding and installing new packages
- installing / Finding and installing new packages
- Packagist
- URL / How does Composer work?
- PATH variable / Testing – batteries included
- PHP
- embracing / Embracing PHP
- prettifying / Prettifying PHP
- PHP application
- developing / A new approach to developing PHP applications
- HTTP foundation / A more robust HTTP foundation
- PHP classes
- including / Bringing in your own classes
- PHPUnit
- phpunit command / Testing – batteries included, Framework assertions
- PHPUnit_Framework_TestCase class / The anatomy of a test
Q
- queue
- job, pushing onto / Creating a job and pushing it onto the queue
- listening to / Listening to a queue and executing jobs
- without background processes / Queues without background processes
- Queue$$marshal() method / Queues without background processes
- queue$listen command / Listening to a queue and executing jobs
- queue$subscribe command / Queues without background processes
R
- raw method / Avoiding SQL injection
- Read-Eval-Print Loop (REPL) / Fiddling with the internals
- Redirect$$guest() method / Authentication routes and views
- redirections
- handling / Handling redirections
- Redirect object / Handling redirections
- relationships / Entities, relationships, and attributes
- rendered views
- inspecting / Inspecting the rendered views
- render method / Writing the command
- request lifecycle / The application container and request lifecycle
- resource controllers
- Response object / Catching the missing routes
- route parameters
- restricting / Restricting the route parameters
- routes
- writing / Writing the first routes
- route parameters, restricting / Restricting the route parameters
- missing routes, identifying / Catching the missing routes
- redirections, handling / Handling redirections
- views, returning / Returning views
- overview page / The overview page
- cat page, displaying / Displaying a cat's page
- cat page, adding / Adding, editing, and deleting cats
- cat page, editing / Adding, editing, and deleting cats
- cat page, deleting / Adding, editing, and deleting cats
- authenticating / Authentication routes and views
- routes command / Inspecting and interacting with your application
- run() method / Seeding the database
S
- scene
- preparing / Preparing the scene and cleaning up objects
- setUp() method / Preparing the scene and cleaning up objects, Framework assertions, Testing with a database
- shorter array syntax
- about / Embracing PHP
- single command
- deploying / Deploying with a single command
- SQL injection
- avoiding / Avoiding SQL injection
- standard controllers
- Str$$endsWith() method / String and text manipulation
- string() method / Building the database schema
- Str object / String and text manipulation
T
- $this->error() method / Writing the command
- $this->info() method / Writing the command
- $timestamps property / Creating the Eloquent models
- tearDown() method / Preparing the scene and cleaning up objects
- test anatomy
- about / The anatomy of a test
- TestCase class / The anatomy of a test
- testing
- benefits / The benefits of testing
- third-party commands
- installing / Installing third-party commands
- workflow, speeding up with generators / Speeding up your workflow with generators
- single command, deploying / Deploying with a single command
- tinker command / Environments and Artisan
- toArray() method / Writing the command
- toJson() method / Embracing PHP
- transformation functions
- about / Transformation functions
U
- unit testing
- about / Unit testing with PHPUnit
- with PHPUnit / Unit testing with PHPUnit
- unit testing, PHPUnit
- assertions / Defining what you expect with assertions
- scene, preparing / Preparing the scene and cleaning up objects
- objects, cleaning up / Preparing the scene and cleaning up objects
- exceptions, expecting / Expecting exceptions
- interdependent classes, testing in isolation / Testing interdependent classes in isolation
- UNIX
- Composer, installing on / Unix (Mac OS, Linux)
- update() method / Adding, editing, and deleting cats
- update command / Finding and installing new packages
- user-friendly timestamps
- outputting / Outputting user-friendly timestamps
- user input
- validating / Validating user input
- user model
- creating / Creating the user model
- users
- authenticating / Authenticating users
- impersonating / Impersonating users
- users, authenticating
- user model, creating / Creating the user model
- database schema, creating / Creating the necessary database schema
- routes, authenticating / Authentication routes and views
- views, authenticating / Authentication routes and views
- user input, validating / Validating user input
V
- vendor-cleanup command / Deployment, the old-school way
- View$$make method / Returning views
- View object / Returning views
- views
- returning / Returning views
- authenticating / Authentication routes and views
W
- Windows
- Composer, installing on / Windows
- with() method / The overview page
- with method / Eager loading records
- withTrashed() method / Foolproof models with soft deletes
- workflow
- speeding up, with generators / Speeding up your workflow with generators