Skip to content

Commit

Permalink
add delete to response types
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed May 29, 2023
1 parent e14ae7f commit 1d040ad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 1 addition & 3 deletions app/Http/Controllers/DeleteResponseTypesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
namespace App\Http\Controllers;

use App\Models\ResponseType;
use App\Models\Transformer;
use Illuminate\Http\Request;

class DeleteResponseTypesController extends Controller
{
Expand All @@ -16,7 +14,7 @@ public function delete(ResponseType $responseType)

request()->session()->flash('flash.banner', 'ResponseType deleted...');

return to_route('outbounds.' . $outbound->type->value . '.show', [
return to_route('outbounds.'.$outbound->type->value.'.show', [
'outbound' => $outbound->id,
'project' => $outbound->project_id,
]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
namespace Tests\Feature\Http\Controllers;

use App\Models\ResponseType;
use App\Models\Transformer;
use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\WithFaker;
use Tests\TestCase;

class DeleteResponseTypesControllerTest extends TestCase
Expand Down

0 comments on commit 1d040ad

Please sign in to comment.