Commit eab15229 authored by Dzulfqar Ridha's avatar Dzulfqar Ridha

update dir user request

parent 5f08d941
...@@ -9,14 +9,14 @@ ...@@ -9,14 +9,14 @@
namespace App\Http\Controllers; namespace App\Http\Controllers;
use App\Classes\MResponse; use App\Classes\MResponse;
use App\Htpp\Request\User\CreateRequest; use App\Htpp\Request\UserCreateRequest;
use App\Http\Request\User\GetByUsernameRequest; use App\Http\Request\UserGetByUsernameRequest;
use App\Http\Request\User\GetByIdRequest; use App\Http\Request\UserGetByIdRequest;
use App\Http\Request\User\UpdateRequest; use App\Http\Request\UserUpdateRequest;
class UserController extends BaseController class UserController extends BaseController
{ {
public function getByUsername(GetByUsernameRequest $request) public function getByUsername(UserGetByUsernameRequest $request)
{ {
$mResponse = new MResponse(); $mResponse = new MResponse();
$statusCode = 200; $statusCode = 200;
...@@ -46,7 +46,7 @@ class UserController extends BaseController ...@@ -46,7 +46,7 @@ class UserController extends BaseController
return response()->json($mResponse, $statusCode); return response()->json($mResponse, $statusCode);
} }
public function getById(GetByIdRequest $request){ public function getById(UserGetByIdRequest $request){
$mResponse = new MResponse(); $mResponse = new MResponse();
$statusCode = 200; $statusCode = 200;
...@@ -73,7 +73,7 @@ class UserController extends BaseController ...@@ -73,7 +73,7 @@ class UserController extends BaseController
return response()->json($mResponse, $statusCode); return response()->json($mResponse, $statusCode);
} }
public function createUser(CreateRequest $request) public function createUser(UserCreateRequest $request)
{ {
$mResponse = new MResponse(); $mResponse = new MResponse();
$statusCode = 200; $statusCode = 200;
...@@ -108,7 +108,7 @@ class UserController extends BaseController ...@@ -108,7 +108,7 @@ class UserController extends BaseController
return response()->json($mResponse, $statusCode); return response()->json($mResponse, $statusCode);
} }
public function updateUser(UpdateRequest $request){ public function updateUser(UserUpdateRequest $request){
$mResponse = new MResponse(); $mResponse = new MResponse();
$statusCode = 200; $statusCode = 200;
......
...@@ -6,11 +6,9 @@ ...@@ -6,11 +6,9 @@
* Time: 3:45 PM * Time: 3:45 PM
*/ */
namespace App\Http\Request\User; namespace App\Http\Request;
use App\Htpp\Request\FormRequestErrors; class UserCreateRequest extends FormRequestErrors
class CreateRequest extends FormRequestErrors
{ {
protected function validationData() protected function validationData()
{ {
......
...@@ -6,11 +6,9 @@ ...@@ -6,11 +6,9 @@
* Time: 3:45 PM * Time: 3:45 PM
*/ */
namespace App\Http\Request\User; namespace App\Http\Request;
use App\Htpp\Request\FormRequestErrors; class UserGetByIdRequest extends FormRequestErrors
class GetByIdRequest extends FormRequestErrors
{ {
protected function validationData() protected function validationData()
{ {
......
...@@ -6,11 +6,9 @@ ...@@ -6,11 +6,9 @@
* Time: 3:45 PM * Time: 3:45 PM
*/ */
namespace App\Http\Request\User; namespace App\Http\Request;
use App\Htpp\Request\FormRequestErrors; class UserGetByUsernameRequest extends FormRequestErrors
class GetByUsernameRequest extends FormRequestErrors
{ {
protected function validationData() protected function validationData()
{ {
......
...@@ -6,11 +6,9 @@ ...@@ -6,11 +6,9 @@
* Time: 3:45 PM * Time: 3:45 PM
*/ */
namespace App\Http\Request\User; namespace App\Http\Request;
use App\Htpp\Request\FormRequestErrors; class UserUpdateRequest extends FormRequestErrors
class UpdateRequest extends FormRequestErrors
{ {
protected function validationData() protected function validationData()
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment