问题描述
我将软件包用作 https://packagist.org/packages/jorenvanhocht/laravel-share 我怎样才能实现这个包只共享当前页面
{!! Share::page('https://medmax.com.np/',null,[],'<ul class="ul_social">','</ul>')
->facebook()
->twitter()
->linkedin()
->whatsapp()!!}
解决方法
分享当前网址 您可以选择使用 currentPage 函数,而不是手动传递 url。 分享::currentPage()->facebook();