我的项目是用户的项目被保存在里面,并有START_TIME和finish_time和价格表,我把它作为具有此代码的形式:如何减去两个日期在Laravel5.4
<div class="form-group">
<input type="date" class="form-control" name="start_time" >
</div>
<div class="form-group">
<input type="date" class="form-control" name="finish_time" >
</div>
<div class="form-group">
<input type="text" class="form-control" name="price" >
</div>
现在,我想减去日期,如果结果是负面可以乘以价格和结果,我该如何做到这一点?
使用碳类 – Webdesigner
请写下我的代码 – Honey
**堆栈溢出不是一个免费的编码平台**。这里是文档http://carbon.nesbot.com/docs/ ...尝试一下吧!如果你有一些你认为应该工作但不需要的东西,请将它张贴在这里,我们正在空想帮助你。 – Webdesigner