Skip to content

Commit 9c787d9

Browse files
committed
fix spatie links
1 parent 51fa9a6 commit 9c787d9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ php artisan vendor:publish --tag=laravel-email-database-log-migration
389389
- Use Laravel HTML Facade with [Laravel Collective](https://laravelcollective.com/):
390390
391391
```
392-
{!! html()->link(route('social.redirect', ['provider' => 'twitch']), 'Twitch', array('class' => 'btn btn-lg btn-primary btn-block twitch')) !!}
392+
{!! html()->a(route('social.redirect', ['provider' => 'twitch']), 'Twitch', array('class' => 'btn btn-lg btn-primary btn-block twitch')) !!}
393393
```
394394
395395
### Other API keys

app/Http/Controllers/ProfilesController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
use App\Notifications\SendGoodbyeEmail;
1212
use App\Traits\CaptureIpTrait;
1313
use Illuminate\Database\Eloquent\ModelNotFoundException;
14-
use Illuminate\Filesystem\Filesystem;
1514
use Illuminate\Http\Request;
1615
use Illuminate\Support\Facades\Auth;
16+
use Illuminate\Support\Facades\File;
1717
use Illuminate\Support\Facades\Hash;
1818
use Illuminate\Support\Facades\Validator;
1919
use Intervention\Image\Facades\Image;
@@ -233,7 +233,7 @@ public function upload(Request $request)
233233
$public_path = '/images/profile/'.$currentUser->id.'/avatar/'.$filename;
234234

235235
// Make the user a folder and set permissions
236-
Filesystem::makeDirectory($save_path, $mode = 0755, true, true);
236+
File::makeDirectory($save_path, $mode = 0755, true, true);
237237

238238
// Save the file to the server
239239
Image::make($avatar)->resize(300, 300)->save($save_path.$filename);

resources/views/profiles/show.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
{{ trans('profile.showProfileTwitterUsername') }}
101101
</dt>
102102
<dd>
103-
{!! html()->link('https://twitter.com/'.$user->profile->twitter_username, $user->profile->twitter_username, array('class' => 'twitter-link', 'target' => '_blank')) !!}
103+
{!! html()->a('https://twitter.com/'.$user->profile->twitter_username, $user->profile->twitter_username, array('class' => 'twitter-link', 'target' => '_blank')) !!}
104104
</dd>
105105
@endif
106106

@@ -109,7 +109,7 @@
109109
{{ trans('profile.showProfileGitHubUsername') }}
110110
</dt>
111111
<dd>
112-
{!! html()->link('https://github.com/'.$user->profile->github_username, $user->profile->github_username, array('class' => 'github-link', 'target' => '_blank')) !!}
112+
{!! html()->a('https://github.com/'.$user->profile->github_username, $user->profile->github_username, array('class' => 'github-link', 'target' => '_blank')) !!}
113113
</dd>
114114
@endif
115115
@endif

0 commit comments

Comments
 (0)