News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

NetTuts.com:
Build Web Apps from Scratch with Laravel - The Eloquent ORM
June 28, 2012 @ 12:27:14

In the second part of their series looking at the Laravel PHP framework and creating your first application with it. In part one you got a brief introduction to creating and configuring an application. In part two they dig a little deeper and talk about Laravel's ORM functionality.

In this Nettuts+ mini-series, we'll build a web application from scratch, while diving into a great new PHP framework that's rapidly picking up steam, called Laravel. In this lesson, we'll be working on an integral part of any web application: the Models. Along the way, we'll learn about Laravel's amazing ORM implementation: Eloquent.

The tutorial introduces you to the concept of "Models" and some of the conventions that surround them in the Laravel framework. They show some of the most common operations (CRUD) and how to define relationships between the models (has many, has one, etc). They apply this to their "Instapics" example application, creating the interfaces for the users, profiles, relationships, photos and comments. They include the code to create the controllers/views to go along with them, making a simple interface to show users and their photos.

You can find out more about the Eloquent ORM in this section of the Laravel manual.

0 comments voice your opinion now!
laravel tutorial eloquent orm instapics user profile photo model


blog comments powered by Disqus

Similar Posts

Daniel Cousineau's Blog: ImagePlane and some simple OOP designs

Inside DealTaker Blog: Kohana PHP 2.3.x Tutorial Part 1

PHPMaster.com: Practical Aspects of the Adapter Pattern

PHPMaster.com: Introduction to Git, Part 1

Rob Morgan's Blog: Howto Publish a Pear Package on Pearhub


Community Events





Don't see your event here?
Let us know!


release composer symfony community opinion laravel update version tool library language framework voicesoftheelephpant podcast introduction install series interview package security

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework