In order to save listing items to the database, we first need a user model, as we want each user to have their own unique list. Adding a user model means we'll also need an authentication system so that users can sign in and out. Fortunately, Laravel provides a full-featured user model and authentication system out-of-the-box.
Let's now take a look at the user model boilerplate files to see what modifications will be needed to fit them for our purposes.
Looking first at the database migration, the user table schema already includes ID, name, email, and password columns.
database/migrations/2014_10_12_000000_create_users_table.php
:
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateUsersTable extends Migration { public function up() { Schema::create('users', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table...