Skip to content

Commit

Permalink
Move Requests into Http\Requests
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com>
  • Loading branch information
sampoyigi committed May 29, 2024
1 parent 2c2e049 commit 95deaa2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ApiResources/Coupons.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Igniter\Coupons\ApiResources;

use Igniter\Api\Classes\ApiController;
use Igniter\Coupons\Requests\CouponRequest;
use Igniter\Coupons\Http\Requests\CouponRequest;

/**
* Coupons API Controller
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Controllers/Coupons.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Coupons extends \Igniter\Admin\Classes\AdminController
public array $formConfig = [
'name' => 'igniter.coupons::default.text_form_name',
'model' => \Igniter\Coupons\Models\Coupon::class,
'request' => \Igniter\Coupons\Requests\CouponRequest::class,
'request' => \Igniter\Coupons\Http\Requests\CouponRequest::class,
'create' => [
'title' => 'lang:admin::lang.form.create_title',
'redirect' => 'igniter/coupons/coupons/edit/{coupon_id}',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Igniter\Coupons\Requests;
namespace Igniter\Coupons\Http\Requests;

use Igniter\System\Classes\FormRequest;
use Illuminate\Validation\Rule;
Expand Down
2 changes: 1 addition & 1 deletion tests/Requests/CouponTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Tests\Requests;

use Igniter\Coupons\Requests\CouponRequest;
use Igniter\Coupons\Http\Requests\CouponRequest;
use Illuminate\Validation\Rule;

it('has required rule for inputs:
Expand Down

0 comments on commit 95deaa2

Please sign in to comment.