Subversion-Projekte lars-tiefland.laravel_shop

Revision

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

Revision 1295 Revision 1296
Zeile 1... Zeile 1...
1
<?php
1
<?php
Zeile 2... Zeile 2...
2
 
2
 
Zeile 3... Zeile 3...
3
namespace App\Http\Requests;
3
    namespace App\Http\Requests;
Zeile 4... Zeile 4...
4
 
4
 
5
use Illuminate\Foundation\Http\FormRequest;
-
 
6
 
-
 
7
class UserUpdateRequest extends FormRequest
-
 
8
{
-
 
9
    /**
-
 
10
     * Determine if the user is authorized to make this request.
-
 
11
     *
-
 
12
     * @return bool
5
    use Illuminate\Foundation\Http\FormRequest;
-
 
6
 
-
 
7
    class UserUpdateRequest extends FormRequest
-
 
8
    {
-
 
9
        /**
-
 
10
         * Determine if the user is authorized to make this request.
-
 
11
         *
-
 
12
         * @return bool
13
     */
13
         */
-
 
14
        public function authorize()
-
 
15
        {
-
 
16
            return true;
-
 
17
        }
-
 
18
 
-
 
19
        /**
-
 
20
         * Get the validation rules that apply to the request.
-
 
21
         *
-
 
22
         * @return array<string, mixed>
-
 
23
         */
-
 
24
        public function rules()
-
 
25
        {
14
    public function authorize()
26
            return [
Zeile 15... Zeile -...
15
    {
-
 
16
        return true;
-
 
17
    }
-
 
18
 
-
 
19
    /**
-
 
20
     * Get the validation rules that apply to the request.
-
 
21
     *
-
 
22
     * @return array<string, mixed>
-
 
23
     */
-
 
24
    public function rules()
-
 
25
    {
-
 
26
        return [
27
                //
27
            //
28
            ];
28
        ];
29
        }
29
    }
30
 
30
        protected function prepareForValidation(): void
31
        protected function prepareForValidation(): void