O'Reilly logo

Learning Laravel's Eloquent by Francesco Malatesta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. Building the Database with the Schema Builder Class

Hey hero!

Our development environment is now ready. No more worries, and a whole new world awaits: the hero left his home. Little by little, step by step, he is going forward toward the goal. The hero knows what is really important: to stay grounded. Having a good foundation helps. No big differences for an application: a well-designed database for your project is always the best start.

Starting from this important assumption, the question naturally arises: is there a way, with Laravel, to deal with the design of a database before using it, maybe in a smart way that you can easily manage? The answer is, as you can imagine, yes.

In this chapter, we will look at the Schema Builder class. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required