Squashed commit of the following: commit e6e0ea2e6e0db9637ae67dfa913ec42f7f08b81e Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Oct 19 21:49:59 2016 +0100 Remove needless .gitkeep files commit 1c7704b2913c689c6cad0eb934787e9fedf0f4fa Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Oct 19 21:48:47 2016 +0100 Use fullpath import for the validator facade commit dbc28853b6712ba040394cf9943a1a8de85bf44c Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Oct 19 21:46:07 2016 +0100 Add redirectTo attribute to the reset password controller commit 0555680e24c0175acce0be66a2f332c5fa4b35a1 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Oct 19 21:44:00 2016 +0100 Ignore Passport-generated OAuth keys commit 1be872180c52bc267cd43f3a7b8e2b49b4c6f023 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Oct 19 21:41:42 2016 +0100 Fixing typehint commit d72b783f8511898fe13fbb99fa5739a846801db9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Oct 19 21:40:35 2016 +0100 fix spacing commit 4870a56fbe273a37ce67203c0e0aed857dccbb1f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Wed Oct 19 21:39:54 2016 +0100 Add typehint for factory
29 lines
888 B
PHP
29 lines
888 B
PHP
<?php
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Model Factories
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here you may define all of your model factories. Model factories give
|
|
| you a convenient way to create models for testing and seeding your
|
|
| database. Just tell the factory how a default model should look.
|
|
|
|
|
*/
|
|
|
|
/** @var \Illuminate\Database\Eloquent\Factory $factory */
|
|
$factory->define(App\User::class, function (Faker\Generator $faker) {
|
|
return [
|
|
'name' => $faker->name,
|
|
'email' => $faker->safeEmail,
|
|
'password' => bcrypt(str_random(10)),
|
|
'remember_token' => str_random(10),
|
|
];
|
|
});
|
|
|
|
$factory->define(App\Note::class, function (Faker\Generator $faker) {
|
|
return [
|
|
'note' => $faker->paragraph,
|
|
'tweet_id' => $faker->randomNumber(9),
|
|
];
|
|
});
|