Skip to content

Commit

Permalink
Update RestrictToSpecificIp.php
Browse files Browse the repository at this point in the history
  • Loading branch information
1batu committed Nov 13, 2024
1 parent 7a0e6b5 commit 9a0fa86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Middleware/RestrictToSpecificIp.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class RestrictToSpecificIp
{
public function handle(Request $request, Closure $next)
{
$allowedIps = config('iprestriction.allowed_ips');
$allowedIps = config('iprestriction.allowed_ips', []);

if (!in_array($request->ip(), $allowedIps)) {
abort(Response::HTTP_FORBIDDEN, 'Erişim izniniz bulunmamaktadır.');
Expand Down

0 comments on commit 9a0fa86

Please sign in to comment.