Revision 280 | Blame | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed
<?phpnamespace App\Http\Requests;use Illuminate\Foundation\Http\FormRequest;class UpdateSupplierShippingRequest extends FormRequest{/*** Determine if the user is authorized to make this request.** @return bool*/public function authorize(): bool{if ( isset( $GLOBALS["user_rechte"]["online_shop"]["porto_neu"] ) ){return true;}return false;}/*** Get the validation rules that apply to the request.** @return array<string, mixed>*/public function rules(): array{return [//"name" => "required|max:255","rank" => "required|int|min:0|max:999","price" => "required|decimal:0,2","shipping_group_id" => "required|int","info_shop" => "sometimes","info_mail" => "sometimes","info_internal" => "sometimes",];}}