25.06.2018 Views

Full-Stack Vue.js 2 and Laravel 5

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Creating a seeder<br />

<strong>Laravel</strong> includes a seeder class that we can extend called Seeder. Use this Artisan<br />

comm<strong>and</strong> to implement it: $ php artisan make:seeder ListingsTableSeeder<br />

When we run the seeder, any code in the run method is executed.<br />

database/ListingsTableSeeder.php:<br />

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

Saved successfully!

Ooh no, something went wrong!