Subversion-Projekte lars-tiefland.webanos.marine-sales.de

Revision

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

Revision 47 Revision 48
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 PriceAgencyRequest 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 PriceAgencyRequest extends FormRequest
-
 
8
    {
13
     */
9
        /**
-
 
10
         * Determine if the user is authorized to make this request.
-
 
11
         *
14
    public function authorize()
12
         * @return bool
-
 
13
         */
-
 
14
        public function authorize()
-
 
15
        {
-
 
16
            if ( isset( $GLOBALS["user_rechte"]["marketing"]["preisagenturen"]["preisagenturen"] ) )
Zeile -... Zeile 17...
-
 
17
            {
-
 
18
                return true;
-
 
19
            }
15
    {
20
 
16
        return false;
21
            return false;
17
    }
22
        }
18
 
23
 
19
    /**
24
        /**
20
     * Get the validation rules that apply to the request.
25
         * Get the validation rules that apply to the request.
21
     *
26
         *
22
     * @return array<string, mixed>
27
         * @return array<string, mixed>
-
 
28
         */
-
 
29
        public function rules()
-
 
30
        {
-
 
31
            return [
-
 
32
                "nur_lieferbar"   => "required|int|max:1|min:0",
-
 
33
                "min_preis"       => "decimal:0,2",
-
 
34
                "Kontakt_Name"    => "sometimes|max:255",
-
 
35
                "Kontakt_Email"   => "sometimes|max:255",
-
 
36
                "Kontakt_Telefon" => "sometimes|max:255",
-
 
37
                "Zugang_URL"      => "sometimes|max:255",
23
     */
38
                "Zugang_Benutzer" => "required_if:Zugang_URL|max:255",
24
    public function rules()
39
                "Zugang_Passwort" => "required_if:Zugang_Benutzer|max:255",
25
    {
40
                "Bemerkung"       => "sometimes",
26
        return [
-