可以来看看三分钟简短的介绍,我如何自定义Laravel的分页。
以下为5.5版之前的影片
在5.6版后,您还需要将您要使用的View在AppServiceProvider中指定哦。
use Illuminate\Pagination\Paginator;
public function boot()
{
Paginator::defaultView('pagination::default');
use Illuminate\Pagination\Paginator;
public function boot()
{
Paginator::defaultView('pagination::default');
D-Laravel的fpm image在php 7.2.1以前是使用docker php官方的dockerfile重build的, 并且所以我可以指定了fpm的默认的owner是dlaravel, --with-fpm-user=USER Set the user for php-fpm to run as. (default: nobody) --with-fpm-group=GRP Set the group for php-fpm to run as.
这个影片介绍了在D-Laravel环境上,我们如何指定Public Ip(公有IP)给特定的Project的使用。 不论是外部Production环境的设置或是内网自己项目Demo时,都可参考此影片的设置方式哦 。 在影片中虽然我采用了PPPoE拨接的外网IP进行说明,但是我们改变一下也可以用自己电脑上的区网IP。 这样就可以让同事连到我们的D-Laravel的Project了。
特别对於有在研究SEO的朋友应该会知道,有时我们会需要进行301页面重导,在Laravel 5.5提供了 相当简易的Route::redirect的功能了,另外使用Route::view对於静态页面的套版也相当有用。
No Comment
Post your comment