Commit eab15229 authored by Dzulfqar Ridha's avatar Dzulfqar Ridha

update dir user request

parent 5f08d941
......@@ -9,14 +9,14 @@
namespace App\Http\Controllers;
use App\Classes\MResponse;
use App\Htpp\Request\User\CreateRequest;
use App\Http\Request\User\GetByUsernameRequest;
use App\Http\Request\User\GetByIdRequest;
use App\Http\Request\User\UpdateRequest;
use App\Htpp\Request\UserCreateRequest;
use App\Http\Request\UserGetByUsernameRequest;
use App\Http\Request\UserGetByIdRequest;
use App\Http\Request\UserUpdateRequest;
class UserController extends BaseController
{
public function getByUsername(GetByUsernameRequest $request)
public function getByUsername(UserGetByUsernameRequest $request)
{
$mResponse = new MResponse();
$statusCode = 200;
......@@ -46,7 +46,7 @@ class UserController extends BaseController
return response()->json($mResponse, $statusCode);
}
public function getById(GetByIdRequest $request){
public function getById(UserGetByIdRequest $request){
$mResponse = new MResponse();
$statusCode = 200;
......@@ -73,7 +73,7 @@ class UserController extends BaseController
return response()->json($mResponse, $statusCode);
}
public function createUser(CreateRequest $request)
public function createUser(UserCreateRequest $request)
{
$mResponse = new MResponse();
$statusCode = 200;
......@@ -108,7 +108,7 @@ class UserController extends BaseController
return response()->json($mResponse, $statusCode);
}
public function updateUser(UpdateRequest $request){
public function updateUser(UserUpdateRequest $request){
$mResponse = new MResponse();
$statusCode = 200;
......
......@@ -6,11 +6,9 @@
* Time: 3:45 PM
*/
namespace App\Http\Request\User;
namespace App\Http\Request;
use App\Htpp\Request\FormRequestErrors;
class CreateRequest extends FormRequestErrors
class UserCreateRequest extends FormRequestErrors
{
protected function validationData()
{
......
......@@ -6,11 +6,9 @@
* Time: 3:45 PM
*/
namespace App\Http\Request\User;
namespace App\Http\Request;
use App\Htpp\Request\FormRequestErrors;
class GetByIdRequest extends FormRequestErrors
class UserGetByIdRequest extends FormRequestErrors
{
protected function validationData()
{
......
......@@ -6,11 +6,9 @@
* Time: 3:45 PM
*/
namespace App\Http\Request\User;
namespace App\Http\Request;
use App\Htpp\Request\FormRequestErrors;
class GetByUsernameRequest extends FormRequestErrors
class UserGetByUsernameRequest extends FormRequestErrors
{
protected function validationData()
{
......
......@@ -6,11 +6,9 @@
* Time: 3:45 PM
*/
namespace App\Http\Request\User;
namespace App\Http\Request;
use App\Htpp\Request\FormRequestErrors;
class UpdateRequest extends FormRequestErrors
class UserUpdateRequest extends FormRequestErrors
{
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