Skip to content

Commit

Permalink
Merge 92d757e into b3884d0
Browse files Browse the repository at this point in the history
  • Loading branch information
realodix committed Dec 22, 2022
2 parents b3884d0 + 92d757e commit c5fef77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

namespace App\Services;
namespace App\Actions;

use App\Helpers\Helper;
use App\Models\Url;
use App\Models\Visit;

class UrlRedirectionService
class UrlRedirectionAction
{
/**
* Handle the HTTP redirect and return the redirect response.
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/UrlRedirectController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace App\Http\Controllers;

use App\Actions\UrlRedirectionAction;
use App\Models\Url;
use App\Services\UrlRedirectionService;
use Illuminate\Support\Facades\DB;

class UrlRedirectController extends Controller
Expand All @@ -14,7 +14,7 @@ class UrlRedirectController extends Controller
*
* @return \Illuminate\Http\RedirectResponse
*/
public function __invoke(UrlRedirectionService $service, string $key)
public function __invoke(UrlRedirectionAction $service, string $key)
{
return DB::transaction(function () use ($service, $key) {
$url = Url::whereKeyword($key)->firstOrFail();
Expand Down

0 comments on commit c5fef77

Please sign in to comment.