source: database/factories/DepartmentFactory.php@ 24a616f

develop
Last change on this file since 24a616f was 24a616f, checked in by Berat Kjufliju <kufliju@…>, 3 years ago

added documents crud, added last_seen_to_user, edited views

  • Property mode set to 100644
File size: 649 bytes
RevLine 
[24a616f]1<?php
2
3namespace Database\Factories;
4
5use App\Models\Department;
6use Illuminate\Database\Eloquent\Factories\Factory;
7
8class DepartmentFactory extends Factory
9{
10 /**
11 * The name of the factory's corresponding model.
12 *
13 * @var string
14 */
15 protected $model = Department::class;
16
17 /**
18 * Define the model's default state.
19 *
20 * @return array
21 */
22 public function definition()
23 {
24 return [
25 'name' => $this->faker->name(),
26 'code' => $this->faker->unique()->numerify(),
27 'location' => $this->faker->unique()->name(),
28 'user_id' => "1",
29 ];
30 }
31}
Note: See TracBrowser for help on using the repository browser.