<p style="margin-top:0px; margin-bottom:1.46em; color:rgb(68,68,67); font-family:Georgia,"Xin Gothic","Hiragino Sans GB","Droid Sans Fallback","Microsoft YaHei",sans-serif; font-size:18px"> <img alt="" src="https://beijingoptbbs.oss-cn-beijing.aliyuncs.com/cs/5606289-fc5cde3793a83618daec316748d82805"><br> </p>
<p style="margin-top:0px; margin-bottom:1.46em; color:rgb(68,68,67); font-family:Georgia,"Xin Gothic","Hiragino Sans GB","Droid Sans Fallback","Microsoft YaHei",sans-serif; font-size:18px"> 新特性:</p>
<h2 id="laraveldusk" style="font-family:Georgia,"Xin Gothic","Hiragino Sans GB","Droid Sans Fallback","Microsoft YaHei",SimSun,sans-serif; font-weight:400; line-height:1.1; color:rgb(34,34,35); margin:0.83em 0px"> Laravel Dusk</h2>
<p style="margin-top:0px; margin-bottom:1.46em; color:rgb(68,68,67); font-family:Georgia,"Xin Gothic","Hiragino Sans GB","Droid Sans Fallback","Microsoft YaHei",sans-serif; font-size:18px"> Laravel Dusk 是一个端到端(end-to-end)的浏览器测试工具。对于夹杂了 JavaScript 开发的应用,Dusk 可以提供页面交互测试,因此,你可以用 Dusk 测试点击按钮、链接、表单,甚至拖拽功能。</p>
<p style="margin-top:0px; margin-bottom:1.46em; color:rgb(68,68,67); font-family:Georgia,"Xin Gothic","Hiragino Sans GB","Droid Sans Fallback","Microsoft YaHei",sans-serif; font-size:18px"> Dusk 利用 ChromeDriver 和 Facebook 的 Php-webdriver 实现的测试功能。它可以和 Selenium 浏览器协同工作,但是由于自带了 ChromeDriver,你可以省去安装 JDK 或 Selenium 了。</p>
<p style="margin-top:0px; margin-bottom:1.46em; color:rgb(68,68,67); font-family:Georgia,"Xin Gothic","Hiragino Sans GB","Droid Sans Fallback","Microsoft YaHei",sans-serif; font-size:18px"> Dusk 非常易用,无须设置 Selenium,也无需每次都启动服务。</p>
<h2 id="laravelmix" style="font-family:Georgia,"Xin Gothic","Hiragino Sans GB","Droid Sans Fallback","Microsoft YaHei",SimSun,sans-serif; font-weight:400; line-height:1.1; color:rgb(34,34,35); margin:0.83em 0px"> Laravel Mix</h2>
<p style="margin-top:0px; margin-bottom:1.46em; color:rgb(68,68,67); font-family:Georgia,"Xin Gothic","Hiragino Sans GB","Droid Sans Fallback","Microsoft YaHei",sans-serif; font-size:18px"> Laravel Mix 是 Elixir 的继任者。Mix 抛弃了 Gulp,投入了 webpack 的怀抱。这次改名字就是为了凸显这次变化的重大。</p>
<p style="margin-top:0px; margin-bottom:1.46em; color:rgb(68,68,67); font-family:Georgia,"Xin Gothic","Hiragino Sans GB","Droid Sans Fallback","Microsoft YaHei",sans-serif; font-size:18px"> 除非你对 Elixir 的设置做了定制,否则迁移到 Mix 轻而易举。</p>
<h2 id="markdown" style="font-family:Georgia,"Xin Gothic","Hiragino Sans GB","Droid Sans Fallback","Microsoft YaHei",SimSun,sans-serif; font-weight:400; line-height:1.1; color:rgb(34,34,35); margin:0.83em 0px"> Markdown 邮件</h2>
<p style="margin-top:0px; margin-bottom:1.46em; color:rgb(68,68,67); font-family:Georgia,"Xin Gothic","Hiragino Sans GB","Droid Sans Fallback","Microsoft YaHei",sans-serif; font-size:18px"> Laravel 5.3 曾经引入了两个关于邮件的新特性:Mailables 和 Notifications,能帮你通过邮件、短信或其他通道发送同一份信息。</p>
<p style="margin-top:0px; margin-bottom:1.46em; color:rgb(68,68,67); font-family:Georgia,"Xin Gothic","Hiragino Sans GB","Droid Sans Fallback","Microsoft YaHei",sans-serif; font-size:18px"> 基于上述两个功能,Laravel 5.4 包含了全新的创建邮件模版的 Markdown 系统。</p>
<p style="margin-top:0px; margin-bottom:1.46em; color:rgb(68,68,67); font-family:Georgia,"Xin Gothic","Hiragino Sans GB","Droid Sans Fallback","Microsoft YaHei",sans-serif; font-size:18px"> 底层原理是基于 Markdown Extra 实现了 Parsedown 解析器,因此你可以这样:</p>
<pre style="overflow:auto; font-family:Menlo,Monaco,Consolas,"Courier New",monospace; font-size:0.96em; padding:7px 7px 7px 10px; margin-top:1.64em; margin-bottom:1.64em; line-height:1.5; color:rgb(76,76,76); word-break:break-all; word-wrap:break-word; background:none rgb(249,249,247); border-top:none; border-right:none; border-bottom:none; border-left:3px solid rgb(218,218,218)"><code class="hljs perl" style="font-family:Menlo,Monaco,Consolas,"Courier New",monospace; font-size:0.96em; padding:0px; background:none; white-space:pre-wrap; display:block; overflow-x:auto; border:none; word-wrap:break-word">@component(<span class="hljs-string" style="color:rgb(163,21,21)">'mail:message'</span>)
<span class="hljs-comment" style="color:rgb(0,128,0)"># Thank You</span>
Thank you <span class="hljs-keyword" style="color:rgb(0,0,255)">for</span> purchasing from <span class="hljs-keyword" style="color:rgb(0,0,255)">our</span> store.
@component(<span class="hljs-string" style="color:rgb(163,21,21)">'mail::button'</span>, [<span class="hljs-string" style="color:rgb(163,21,21)">'url'</span> => $actionUrl, |
|