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

Revision

Revision 267 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
261 lars 1
<?php
2
 
3
namespace App\Http\Requests;
4
 
5
use Illuminate\Foundation\Http\FormRequest;
6
 
7
class UpdateShippingRequest extends FormRequest
8
{
9
    /**
10
     * Determine if the user is authorized to make this request.
11
     *
12
     * @return bool
13
     */
267 lars 14
    public function authorize(): bool
261 lars 15
    {
280 lars 16
        if ( isset( $GLOBALS["user_rechte"]["online_shop"]["porto_neu"] ) )
267 lars 17
        {
18
            return true;
19
        }
261 lars 20
        return false;
21
    }
22
 
23
    /**
24
     * Get the validation rules that apply to the request.
25
     *
26
     * @return array<string, mixed>
27
     */
267 lars 28
    public function rules(): array
261 lars 29
    {
30
        return [
31
            //
32
        ];
33
    }
34
}