我需要你的帮助来在我的本地计算机上使用 Nginx 和 SSL“假”证书设置我的 Laradock(带有 Docker)。
我不知道如何设置它。请你帮助我好吗?
谢谢
我需要你的帮助!我有两个模型customer和membership。客户hasMany会员资格。我需要提取具有成员资格的所有客户active。我这样做了,但是它只提取成员身份,而没有客户数据。如何更改它以解决问题?
Membership::has("customer")
->forCompany($companyId)
->whereIn('state', ['ATTIVA', 'IN ATTESA DI ESITO', 'DA INVIARE'])
->where(function ($query) {
$query
->where('end_date', '>=', Carbon::now()->toDateString())
->orWhereNull('end_date');
})
Run Code Online (Sandbox Code Playgroud) 我对jQuery函数创建的新元素上的"click"操作有问题,但它不起作用.
我为这个链接(JSFiddle)创建了一个JSFiddle ,但它不能很好地工作,因为我无法在JSFiddle中调用Ajax请求.
我有这两个按钮,
<input type="button" onclick="invia('SIC-034031','', 's');" value="AGGIUNGI" style="height: 20px; width: 110px; background-color: #A5EFC5 ; color: #000000; font-family: Arial,Helvetica,sans-serif; font-size: 12px; background-repeat: no-repeat; background-position: left center;" id="iscriviSIC-034031" class="pulsanteIscrizioni" name="xaggiorna"/>
<input type="button" onclick="invia('SIC-034031','R', 's');" value="RISERVA" style="height: 20px; width: 110px; background-color: #F00000; color: #FFFFFF; font-family: Arial,Helvetica,sans-serif; font-size: 12px; background-repeat: no-repeat; background-position: left center;" id="iscriviRSIC-034031" class="pulsanteIscrizioni" name="xaggiorna"/>
Run Code Online (Sandbox Code Playgroud)
当你第一次调用ajax函数时,按钮1会回答这个输出:
OK;I;SIC-034031
Run Code Online (Sandbox Code Playgroud)
按钮2仅用于擦除.按钮一创建.
<input id="iscriviSIC-034031" class="pulsanteIscrizioni" type="button" name="xaggiorna" style="height: 20px; width: 110px; background-color: #03F; color: #FFF; font-family: Arial,Helvetica,sans-serif; font-size: 12px;" value="TOGLI" onclick="invia('SIC-034031','');">
Run Code Online (Sandbox Code Playgroud)
当我单击这个新按钮时,ajax函数返回此信息, …