CustomerLogFactory.php 656 B

1234567891011121314151617181920212223
  1. <?php
  2. /** @var Factory $factory */
  3. use App\Customer;
  4. use App\CustomerLogStatus;
  5. use App\User;
  6. use Faker\Generator as Faker;
  7. use Illuminate\Database\Eloquent\Factory;
  8. $factory->define(App\CustomerLog::class, function (Faker $faker) {
  9. return [
  10. // 'customer_id' => function () {
  11. // return factory(Customer::class)->create()->id;
  12. // },
  13. // 'customer_log_status_id' => function () {
  14. // return factory(CustomerLogStatus::class)->create()->id;
  15. // },
  16. // 'user_id' => function () {
  17. // return factory(User::class)->create()->id;
  18. // },
  19. 'description' => $faker->text,
  20. ];
  21. });