我已经通过Laravel的Cashier软件包订阅了用户订阅计划.我现在想要显示用户下次开帐单的日期,但是这似乎不是通过Billable特征可用的日期.
如何获得下一个结算日期?谢谢!
我有这样的HTML结构:
<div contenteditable="true">This is some plain, boring content.</div>
Run Code Online (Sandbox Code Playgroud)
我也有这个功能,允许我将插入位置设置到div中我想要的任何位置:
// Move caret to a specific point in a DOM element
function SetCaretPosition(object, pos)
{
// Get key data
var el = object.get(0); // Strip inner object from jQuery object
var range = document.createRange();
var sel = window.getSelection();
// Set the range of the DOM element
range.setStart(el.childNodes[0], pos);
range.collapse(true);
// Set the selection point
sel.removeAllRanges();
sel.addRange(range);
}
Run Code Online (Sandbox Code Playgroud)
这个代码完全正常,直到我开始向(span, b, i, u, strike, sup, sub)
div 添加子标签,例如
<div contenteditable="true">
This is …
Run Code Online (Sandbox Code Playgroud) 如何应用Laravel的Eloquent whereIn()以使其包含null?
我试过了:
User::whereIn("column", [null, 1, 2]) -> get();
Run Code Online (Sandbox Code Playgroud)
和
User::whereIn("column", [DB::raw("null"), 1, 2]) -> get();
Run Code Online (Sandbox Code Playgroud)
但两个查询都没有返回结果.
谢谢!