Author: - Post Category: Laravel, Resources - Date:January 5, 2020

Laravel Social Share Package

Sharing online

Laravel Share is an optional package for Laravel useful to generate social media shareable links.

Categories: Laravel and Resources. Tags: laravel-share and social media share.
Laravel Share Package Banner

Laravel Share is an optional package for Laravel useful to generate social media shareable links.

From the package documentation:

https://packagist.org/packages/jorenvanhocht/laravel-share

Available services

  • Facebook
  • Twitter
  • Linkedin
  • WhatsApp
  • Reddit
  • Telegram

Usage

Creating one share link

Facebook

Share::page('http://jorenvanhocht.be')->facebook();

Twitter

Share::page('http://jorenvanhocht.be', 'Your share text can be placed here')->twitter();

Reddit

Share::page('http://jorenvanhocht.be', 'Your share text can be placed here')->reddit();

Linkedin

Share::page('http://jorenvanhocht.be', 'Share title')->linkedin('Extra linkedin summary can be passed here')

Whatsapp

Share::page('http://jorenvanhocht.be')->whatsapp()

Telegram

Share::page('http://jorenvanhocht.be', 'Your share text can be placed here')->telegram();