WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
This repository was archived by the owner on Feb 16, 2024. It is now read-only.

Commit 57344cf

Browse files
committed
⚙️ Use the config file for the requests.
1 parent d154194 commit 57344cf

24 files changed

+24
-28
lines changed

src/Requests/Address/CreateTypeRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ public function authorize()
3535
*/
3636
public function rules()
3737
{
38-
return Type::$rules;
38+
return (config('pwweb.core.models.type'))::$rules;
3939
}
4040
}

src/Requests/Address/UpdateTypeRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ public function authorize()
3535
*/
3636
public function rules()
3737
{
38-
return Type::$rules;
38+
return (config('pwweb.core.models.type'))::$rules;
3939
}
4040
}

src/Requests/CreateAddressRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ public function authorize()
3535
*/
3636
public function rules()
3737
{
38-
return Address::$rules;
38+
return (config('pwweb.core.models.address'))::$rules;
3939
}
4040
}

src/Requests/CreateCountryRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ public function authorize()
3535
*/
3636
public function rules()
3737
{
38-
return Country::$rules;
38+
return (config('pwweb.core.models.country'))::$rules;
3939
}
4040
}

src/Requests/CreateCurrencyRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ public function authorize()
3535
*/
3636
public function rules()
3737
{
38-
return Currency::$rules;
38+
return (config('pwweb.core.models.currency'))::$rules;
3939
}
4040
}

src/Requests/CreateExchangeRateRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ public function authorize()
3535
*/
3636
public function rules()
3737
{
38-
return ExchangeRate::$rules;
38+
return (config('pwweb.core.models.exchange_rate'))::$rules;
3939
}
4040
}

src/Requests/CreateLanguageRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ public function authorize()
3535
*/
3636
public function rules()
3737
{
38-
return Language::$rules;
38+
return (config('pwweb.core.models.language'))::$rules;
3939
}
4040
}

src/Requests/CreateMenuRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ public function authorize()
3535
*/
3636
public function rules()
3737
{
38-
return Menu::$rules;
38+
return (config('pwweb.core.models.menu'))::$rules;
3939
}
4040
}

src/Requests/CreatePersonRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ public function authorize()
3535
*/
3636
public function rules()
3737
{
38-
return Person::$rules;
38+
return (config('pwweb.core.models.person'))::$rules;
3939
}
4040
}

src/Requests/CreateUserRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ public function authorize()
3535
*/
3636
public function rules()
3737
{
38-
return User::$rules;
38+
return (config('pwweb.core.models.user'))::$rules;
3939
}
4040
}

0 commit comments

Comments
 (0)