PHP code example of hebrahimzadeh / laravel-share

1. Go to this page and download the library: Download hebrahimzadeh/laravel-share library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

hebrahimzadeh / laravel-share example snippets


Route::get('/', function()
{
    return Share::page('http://www.example.com', 'My example')->twitter();
});

Route::get('/', function()
{
    return Share::page('http://www.example.com', 'Link description')->services('facebook', 'twitter')->getLinks();
});

Route::get('/', function()
{
    return Share::page('http://www.example.com', 'Link description')->services();
});

php artisan vendor:publish --provider='Hebrahimzadeh\Share\ShareServiceProvider'

'mynewservice' => [ 'view' => 'share.mynewservice' ]
 echo $sep; 
 echo $sep; 
 echo $sep 
 echo $sep;