O'Reilly logo

Laravel Application Development Blueprints by Halil İbrahim Yılmaz, Arda Kılıçdağı

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 1. Building a URL Shortener Website

Throughout the book, we will be using the Laravel PHP framework to build different types of web projects.

In this chapter, we'll see how to build a URL Shortener website with the basics of Laravel framework. The covered topics include:

  • Creating a database and migrating our URL Shortener's table
  • Creating our form
  • Creating our Link model
  • Saving data to the database
  • Getting individual URL from the database and redirecting

Creating a database and migrating our URL shortener's table

Migrations are like version control for your application's database. They permit a team (or yourself) to modify the database schema, and provide up-to-date information on the current schema state. To create and migrate your URL Shortener's ...

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