Total Complexity | 3 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
11 | class Store |
||
12 | { |
||
13 | use AsAction, WithAttributes; |
||
14 | |||
15 | /** |
||
16 | * Get the validation rules that apply to the action. |
||
17 | * |
||
18 | * @return array |
||
19 | */ |
||
20 | public function rules(): array |
||
29 | ]; |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * Define validation attributes. |
||
34 | * |
||
35 | * @return array |
||
36 | */ |
||
37 | public function getValidationAttributes() |
||
41 | ]; |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * Execute the action and return a result. |
||
46 | * |
||
47 | * @return mixed |
||
48 | */ |
||
49 | public function handle(array $attributes): Testimonial |
||
60 |