8000 Merge pull request #13 from milwad-dev/patch-3 · NativeLaravel/laravel@2545589 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2545589

Browse files
authored
Merge pull request NativePHP#13 from milwad-dev/patch-3
2 parents 03791d1 + 7edae49 commit 2545589

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Http/Controllers/CreateSecurityCookieController.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ class CreateSecurityCookieController
88
{
99
public function __invoke(Request $request)
1010
{
11-
if ($request->get('secret') !== config('native-php.secret')) {
12-
return abort(403);
13-
}
11+
abort_if($request->get('secret') !== config('native-php.secret'), 403);
1412

1513
return redirect('/')->cookie(cookie(
1614
name: '_php_native',

0 commit comments

Comments
 (0)
0