Skip to content

Latest commit

 

History

History
58 lines (43 loc) · 1.34 KB

index.md

File metadata and controls

58 lines (43 loc) · 1.34 KB

Manage social media links in Flament

Package to manage social media links using our Settings package and display them in the front-end using blade components.

Installation

You can install the package via composer:

composer require codedor/filament-social-media-links

You can publish the config file with:

php artisan vendor:publish --tag="filament-social-media-links-config"

This is the contents of the published config file:

return [
    'platforms' => [
        'facebook' => 'fab fa-facebook',
        'instagram' => 'fab fa-instagram',
        'twitter' => 'fab fa-twitter',
        'linkedIn' => 'fab fa-linkedin',
        'pinterest' => 'fab fa-pinterest',
        'youtube' => 'fab fa-youtube',
        'vimeo' => 'fab fa-vimeo',
        'github' => 'fab fa-github',
        'tripAdvisor' => 'fab fa-tripadvisor',
        'skype' => 'fab fa-skype',
        'tiktok' => 'fab fa-tiktok',
    ],
    'formatter-formats' => [

    ],
];

Optionally, you can publish the views using

php artisan vendor:publish --tag="filament-social-media-links-views"

Rendering in front-end

<x-social-media-links::overview />

If you want to render with icons only, pass the show-icon attribute.

<x-social-media-links::overview show-icon />