25.06.2018 Views

Full-Stack Vue.js 2 and Laravel 5

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Let's now rerun our migrations <strong>and</strong> seeder to install the user table <strong>and</strong> data with<br />

the following comm<strong>and</strong>: $ php artisan migrate:refresh --seed<br />

To confirm that our user table <strong>and</strong> data were created correctly, we'll use Tinker to<br />

query the table. You should get an output similar to the following: $ php artisan<br />

tinker >>> DB::table('users')->get();<br />

/*<br />

{ "id": 1, "name": "Jane Doe", "email": "test@gmail.com", "password":<br />

"...", "remember_token": null, "created_at": "2017-10-27 02:30:31",<br />

"updated_at": "2017-10-27 02:30:31", "saved": "[1,5,7,9]" } */

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!