我有多个article元素更喜欢反向顺序,但第一个元素是一个header元素,我需要它在顶部粘,我怎么能反转所有项目,但第一个标题元素?
#content {
display: flex;
flex-direction: column-reverse;
}
Run Code Online (Sandbox Code Playgroud)
和
<div id="content">
<header>something</header>
<article>1</article>
<article>2</article>
<article>3</article>
<article>4</article>
<article>5</article>
</div>
Run Code Online (Sandbox Code Playgroud) 有很多用户在我的网站上购买高级帐户。我如何选择帐户到期日恰好在 5 天后的用户并通知他们续订帐户?
添加app\console\kernel.php以下函数,但不知道如何在查询中编写有关时间的代码。
/**
* Define the application's command schedule.
*/
protected function schedule(Schedule $schedule)
{
// $schedule->command('inspire')
// ->hourly();
$schedule->call(function () {
$users = User::where('expiration_time', '=', Carbon::now()->addDays(5))->get();
//Notify related user about account emigrations
Notification::send($users, new AccountExpiration());
})->daily();
}
Run Code Online (Sandbox Code Playgroud)