1 | <?php |
||
12 | trait SeederHelper |
||
13 | { |
||
14 | /** |
||
15 | * Seed the given resources. |
||
16 | * |
||
17 | * @param \Illuminate\Database\Eloquent\Model $model |
||
18 | * @param string $seeder |
||
19 | * @param array $initialExclude |
||
20 | * @param \Closure $callback |
||
|
|||
21 | * |
||
22 | * @throws \Exception |
||
23 | * |
||
24 | * @return void |
||
25 | */ |
||
26 | protected function seedResources(Model $model, string $seeder, array $initialExclude = [], Closure $callback = null) |
||
43 | |||
44 | /** |
||
45 | * Ensure existing database tables. |
||
46 | * |
||
47 | * @param string $package |
||
48 | * |
||
49 | * @return bool |
||
50 | */ |
||
51 | protected function ensureExistingDatabaseTables(string $package) |
||
60 | |||
61 | /** |
||
62 | * Check if all required database tables exists. |
||
63 | * |
||
64 | * @param string $package |
||
65 | * |
||
66 | * @return bool |
||
67 | */ |
||
68 | protected function hasDatabaseTables(string $package) |
||
80 | } |
||
81 |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.