We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
1 | <?php |
||
8 | trait Update |
||
9 | { |
||
10 | /* |
||
11 | |-------------------------------------------------------------------------- |
||
12 | | UPDATE |
||
13 | |-------------------------------------------------------------------------- |
||
14 | */ |
||
15 | |||
16 | /** |
||
17 | * Update a row in the database. |
||
18 | * |
||
19 | * @param [Int] The entity's id |
||
20 | * @param [Request] All inputs to be updated. |
||
21 | * |
||
22 | * @return [Eloquent Collection] |
||
|
|||
23 | */ |
||
24 | 2 | public function update($id, $data) |
|
40 | |||
41 | /** |
||
42 | * Get all fields needed for the EDIT ENTRY form. |
||
43 | * |
||
44 | * @param int $id The id of the entry that is being edited. |
||
45 | * |
||
46 | * @return array The fields with attributes, fake attributes and values. |
||
47 | */ |
||
48 | 14 | public function getUpdateFields($id) |
|
78 | |||
79 | /** |
||
80 | * Get the value of the 'name' attribute from the declared relation model in the given field. |
||
81 | * |
||
82 | * @param \Illuminate\Database\Eloquent\Model $model The current CRUD model. |
||
83 | * @param array $field The CRUD field array. |
||
84 | * |
||
85 | * @return mixed The value of the 'name' attribute from the relation model. |
||
86 | */ |
||
87 | 7 | private function getModelAttributeValue($model, $field) |
|
107 | } |
||
108 |
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.