Last active
August 10, 2019 03:50
-
-
Save jhowbhz/95eb053289ea793062b17a7a1f1bc888 to your computer and use it in GitHub Desktop.
exemplo de um seed laravel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
/ in command line: php artisan make:seed UsersTableSeeder; | |
*/ | |
use Illuminate\Database\Seeder; | |
use App\User; | |
class UsersTableSeeder extends Seeder | |
{ | |
public function run() | |
{ | |
User::create([ | |
'name' => 'your name', | |
'email' => '[email protected]', | |
'password' => bcrypt('YOU_PASSWORD'), | |
]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment