social share buttons in laravel blade

943 0 0 0

Last Updated : 2024-04-19 16:29:45

how to create social share buttons in laravel blade

// facebook
<a href="https://www.facebook.com/sharer/sharer.php?u={{ Request::url() }}&display=popup" class="social-icon social-icon-small social-icon-colored social-icon-facebook" target="_blank">facebook button</a>

// twitter
<a href="https://twitter.com/share?ref_src=twsrc%5Etfw" class="social-icon social-icon-small social-icon-colored social-icon-twitter" target="_blank">twitter button </a>
// don't forget to include twitter sharing script in your website like this
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>

//pinterest
<a href="http://pinterest.com/pin/create/button/?url={{ Request::url() }}&media={{ asset('storage') }}/{{ $project->images->first()->image }}&description={{ $project->decription }}" class="social-icon social-icon-small social-icon-colored social-icon-pinterest" target="_blank">pinterest button</a>

//linkedin
<a href="https://www.linkedin.com/shareArticle?mini=true&url={{ Request::url() }}&title={{ $project->name }}&summary={{ $project->description }}" class="social-icon social-icon-small social-icon-colored social-icon-linkedin" target="_blank">linkedin button</a>

Mahmoud Anwar

Mahmoud Anwar

Back End Developer with a passion for developing innovative web applications that expedite the efficiency and effectiveness of organizational success. Well-versed in technology and writing code to create systems that are reliable and user-friendly. Also has the proven ability to motivate, educate, and collaborate effectively to build web applications and effectively track changes. Confident communicator, strategic thinker, and innovative creator to develop software that is customized to meet a company’s organizational needs, highlight their core competencies, and further their success.