This is a filamentphp plugin. It helps you to define the social networks you use in the filament backend, and display it on your website using Blade component provided.
Display your social networks on your front with the help of Blade component provided in this plugin
List of all of your social networks
Detail of one of your social network
- possibility to add, modify, delete, list social networks among the following 21 :
- DeviantArt
- Discord
- Github
- Medium
- Skype
- Snapchat
- Soundcloud
- Telegram
- TikTok
- Tumblr
- Twitch
- Vimeo
- WattPad
- Youtube
- easy to install as Filament plugin (see below)
- possibility to use OrbitPHP or classical driver database
- social networks icons provided by default via svgporn
- possibility to add your custom icons if you want
- possibility to activate or not a social network
- by default link open in a new tab (target='_blank')
- add more social networks
- improve form appearance
- deactivate already selected social network
- provide more Blade component to display on front
- add localization
- add possibility to search the social network in the list
- if you have an idea of improvment, let me know !
If you want and if you can, you can sponsorship this project.
It will help me a lot ;-)
You can install the package via composer:
composer require happytodev/filament-social-networks
If you use Orbit as database driver, there is no migrations to launch.
Instead, you have to :
- install Orbit
composer require ryangjchandler/orbit
- publish model file directly by using :
php artisan vendor:publish --tag="filament-social-networks-model-with-orbit"
You have to publish and run the migrations with:
php artisan vendor:publish --tag="filament-social-networks-migrations"
php artisan migrate
- publish model file directly by using :
php artisan vendor:publish --tag="filament-social-networks-model-classical"
To use default picture for Social Network, you have to publish assets :
php artisan vendor:publish --tag="filament-social-networks-assets"
Optionnaly, you can publish the config file with:
php artisan vendor:publish --tag="filament-social-networks-config"
This is the contents of the published config file:
return [
];
Optionally, you can publish the views using
php artisan vendor:publish --tag="filament-social-networks-views"
Connect to your Filament dashboard.
You will see a new entry in the menu Social Networks
By clicking on the 'New social network' button (in the top right corner), you can add a new group of social networks.
You have to give it a name that you need after to display it.
You can, also, decide to let it inactive for the moment.
In that group, you can add every available social networks. You can order them simply by drag and drop. Every social network added to a group can be active (by default) or inactive.
You can collapse one, many or all Social Networks you've set if you need
Don't forget to save when you are satisfied by your social network group.
When you're satisfied, you can use everywhere you want the Blade component provided by this plugin in your template file :
<x-happytodev-filament-social-networks name="video"/>
Et voilà !
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.