This commit is contained in:
tanch0
2024-06-21 13:29:04 +05:45
parent 5b3c44aa33
commit 25760ad989
50 changed files with 1180 additions and 111 deletions

View File

@ -174,6 +174,7 @@ return [
Bibhuti\Installer\Providers\LaravelInstallerServiceProvider::class,
Brian2694\Toastr\ToastrServiceProvider::class,
Spatie\Permission\PermissionServiceProvider::class,
Jorenvh\Share\Providers\ShareServiceProvider::class,
])->toArray(),
@ -191,6 +192,7 @@ return [
'aliases' => Facade::defaultAliases()->merge([
'Toastr' => Brian2694\Toastr\Facades\Toastr::class,
'Share' => Jorenvh\Share\ShareFacade::class,
])->toArray(),
];

57
config/laravel-share.php Normal file
View File

@ -0,0 +1,57 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Services
|--------------------------------------------------------------------------
|
| Specify the base uri for each service.
|
|
|
*/
'services' => [
'facebook' => [
'uri' => 'https://www.facebook.com/sharer/sharer.php?u=',
],
'twitter' => [
'uri' => 'https://twitter.com/intent/tweet',
'text' => 'Default share text',
],
'linkedin' => [
'uri' => 'https://www.linkedin.com/sharing/share-offsite', // oud: http://www.linkedin.com/shareArticle
'extra' => ['mini' => 'true'],
],
'whatsapp' => [
'uri' => 'https://wa.me/?text=',
'extra' => ['mini' => 'true'],
],
'pinterest' => [
'uri' => 'https://pinterest.com/pin/create/button/?url=',
],
'reddit' => [
'uri' => 'https://www.reddit.com/submit',
'text' => 'Default share text',
],
'telegram' => [
'uri' => 'https://telegram.me/share/url',
'text' => 'Default share text',
],
],
/*
|--------------------------------------------------------------------------
| Font Awesome
|--------------------------------------------------------------------------
|
| Specify the version of Font Awesome that you want to use.
| We support version 4 and 5.
|
|
*/
'fontAwesomeVersion' => 5,
];