We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
1 | <?php |
||
5 | trait Create |
||
6 | { |
||
7 | /* |
||
8 | |-------------------------------------------------------------------------- |
||
9 | | CREATE |
||
10 | |-------------------------------------------------------------------------- |
||
11 | */ |
||
12 | |||
13 | /** |
||
14 | * Insert a row in the database. |
||
15 | * |
||
16 | * @param [Request] All input values to be inserted. |
||
17 | * |
||
18 | * @return [Eloquent Collection] |
||
|
|||
19 | */ |
||
20 | public function create($data) |
||
30 | |||
31 | /** |
||
32 | * Get all fields needed for the ADD NEW ENTRY form. |
||
33 | * |
||
34 | * @return [array] The fields with attributes and fake attributes. |
||
35 | */ |
||
36 | public function getCreateFields() |
||
40 | |||
41 | /** |
||
42 | * Get all fields with relation set (model key set on field). |
||
43 | * |
||
44 | * @param [string: create/update/both] |
||
45 | * |
||
46 | * @return [array] The fields with model key set. |
||
47 | */ |
||
48 | public function getRelationFields($form = 'create') |
||
74 | |||
75 | public function syncPivot($model, $data, $form = 'create') |
||
103 | } |
||
104 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.