Passed
Push — develop ( c3d6a0...515348 )
by Septianata
14:35
created

ConfigurationFactory::definition()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 6
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Database\Factories;
4
5
use App\Models\Configuration;
6
use Illuminate\Database\Eloquent\Factories\Factory;
7
use Illuminate\Support\Str;
8
9
class ConfigurationFactory extends Factory
10
{
11
    /**
12
     * The name of the factory's corresponding model.
13
     *
14
     * @var string
15
     */
16
    protected $model = Configuration::class;
17
18
    /**
19
     * Define the model's default state.
20
     *
21
     * @return array
22
     */
23
    public function definition()
24
    {
25
        return [
26
            'key' => Str::random(8),
27
            'value' => $this->faker->word,
28
            'description' => $this->faker->realText(),
29
        ];
30
    }
31
}
32