Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 1314 | Revision 1316 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 1314 Revision 1315
Zeile 28... Zeile 28...
28
         * @return array<string, mixed>
28
         * @return array<string, mixed>
29
         */
29
         */
30
        public function rules(): array
30
        public function rules(): array
31
        {
31
        {
32
            return [
32
            return [
33
                'email'    => 'bail|required|email|max:255', Rule::unique( BackendUser::class )->ignore( $this->user()->email ),
33
                'email'        => 'bail|required|email|max:255', Rule::unique( BackendUser::class )->ignore( $this->user()->email ),
34
                'employee' => 'in:0,1',
34
                'employee'     => 'in:0,1',
35
                'rank'     => 'integer|min:0|max:500',
35
                'rank'         => 'integer|min:0|max:500',
-
 
36
                'terminpflege' => 'optional',
-
 
37
                'description'  => 'optional',
36
            ];
38
            ];
37
        }
39
        }
Zeile 38... Zeile 40...
38
 
40
 
39
        protected function prepareForValidation(): void
41
        protected function prepareForValidation(): void