Introduce the Subscriber API. Closes #787

This commit is contained in:
James Brooks
2015-07-14 14:09:32 +01:00
parent 38257c6ae6
commit 71f5de8726
10 changed files with 338 additions and 5 deletions

View File

@@ -9,6 +9,8 @@
* file that was distributed with this source code.
*/
use Carbon\Carbon;
$factory->define('CachetHQ\Cachet\Models\User', function ($faker) {
return [
'username' => $faker->userName,
@@ -57,3 +59,11 @@ $factory->define('CachetHQ\Cachet\Models\MetricPoint', function ($faker) {
'value' => rand(1, 100),
];
});
$factory->define('CachetHQ\Cachet\Models\Subscriber', function ($faker) {
return [
'email' => $faker->email,
'verify_code' => 'Mqr80r2wJtxHCW5Ep4azkldFfIwHhw98M9HF04dn0z',
'verified_at' => Carbon::now(),
];
});