|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace PWWEB\Localisation\Database\Factories; |
|
4
|
|
|
|
|
5
|
|
|
use PWWEB\Localisation\Models\Address; |
|
6
|
|
|
|
|
7
|
|
|
/** |
|
8
|
|
|
* The database factory for Address. |
|
9
|
|
|
* Class AppBaseController. |
|
10
|
|
|
* |
|
11
|
|
|
* @author Frank Pillukeit <[email protected]> |
|
12
|
|
|
* @author Richard Browne <[email protected] |
|
13
|
|
|
* @copyright 2020 pw-websolutions.com |
|
14
|
|
|
* @license http://www.opensource.org/licenses/mit-license.html MIT License |
|
15
|
|
|
* @var \Illuminate\Database\Eloquent\Factory $factory |
|
16
|
|
|
*/ |
|
17
|
|
|
class AddressFactory extends Factory |
|
|
|
|
|
|
18
|
|
|
{ |
|
19
|
|
|
/** |
|
20
|
|
|
* The name of the factory's corresponding model. |
|
21
|
|
|
* |
|
22
|
|
|
* @var string |
|
23
|
|
|
*/ |
|
24
|
|
|
protected $model = Address::class; |
|
25
|
|
|
|
|
26
|
|
|
/** |
|
27
|
|
|
* Define the model's default state. |
|
28
|
|
|
* |
|
29
|
|
|
* @return array |
|
30
|
|
|
*/ |
|
31
|
|
|
public function definition() |
|
32
|
|
|
{ |
|
33
|
|
|
return [ |
|
34
|
|
|
'country_id' => $this->faker->word, |
|
35
|
|
|
'type_id' => $this->faker->word, |
|
36
|
|
|
'street' => $this->faker->word, |
|
37
|
|
|
'street2' => $this->faker->word, |
|
38
|
|
|
'city' => $this->faker->word, |
|
39
|
|
|
'state' => $this->faker->word, |
|
40
|
|
|
'postcode' => $this->faker->word, |
|
41
|
|
|
'lat' => $this->faker->randomDigitNotNull, |
|
42
|
|
|
'lng' => $this->faker->randomDigitNotNull, |
|
43
|
|
|
'primary' => $this->faker->word, |
|
44
|
|
|
'created_at' => $this->faker->date('Y-m-d H:i:s'), |
|
45
|
|
|
'updated_at' => $this->faker->date('Y-m-d H:i:s'), |
|
46
|
|
|
]; |
|
47
|
|
|
} |
|
48
|
|
|
} |
|
49
|
|
|
|
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths