Commit 5f08d941 authored by Dzulfqar Ridha's avatar Dzulfqar Ridha

revisi folder application

parent cd9dcac5
...@@ -9,12 +9,15 @@ ...@@ -9,12 +9,15 @@
namespace App\Http\Controllers; namespace App\Http\Controllers;
use App\Classes\MResponse; use App\Classes\MResponse;
use App\Http\Request\Application\CreateRequest; use App\Http\Request\AppCreateRequest;
use App\Http\Request\Application\UpdateRequest; use App\Http\Request\AppUpdateRequest;
use App\Http\Request\AppDeleteRequest;
use App\Http\Request\AppGetByAppIdRequest;
use App\Http\Request\AppGetByUserIdRequest;
class ApplicationController extends BaseController class ApplicationController extends BaseController
{ {
public function create(CreateRequest $request) public function create(AppCreateRequest $request)
{ {
$mResponse = new MResponse(); $mResponse = new MResponse();
$statusCode = 200; $statusCode = 200;
...@@ -47,7 +50,7 @@ class ApplicationController extends BaseController ...@@ -47,7 +50,7 @@ class ApplicationController extends BaseController
return response()->json($mResponse, $statusCode); return response()->json($mResponse, $statusCode);
} }
public function update(UpdateRequest $request) public function update(AppUpdateRequest $request)
{ {
$mResponse = new MResponse(); $mResponse = new MResponse();
$statusCode = 200; $statusCode = 200;
...@@ -80,7 +83,7 @@ class ApplicationController extends BaseController ...@@ -80,7 +83,7 @@ class ApplicationController extends BaseController
return response()->json($mResponse, $statusCode); return response()->json($mResponse, $statusCode);
} }
public function delete(DeleteRequest $request) public function delete(AppDeleteRequest $request)
{ {
$mResponse = new MResponse(); $mResponse = new MResponse();
$statusCode = 200; $statusCode = 200;
...@@ -108,7 +111,7 @@ class ApplicationController extends BaseController ...@@ -108,7 +111,7 @@ class ApplicationController extends BaseController
return response()->json($mResponse, $statusCode); return response()->json($mResponse, $statusCode);
} }
public function getByUserID(GetByUserIdRequest $request) public function getByUserID(AppGetByUserIdRequest $request)
{ {
$mResponse = new MResponse(); $mResponse = new MResponse();
$statusCode = 200; $statusCode = 200;
...@@ -136,7 +139,7 @@ class ApplicationController extends BaseController ...@@ -136,7 +139,7 @@ class ApplicationController extends BaseController
return response()->json($mResponse, $statusCode); return response()->json($mResponse, $statusCode);
} }
public function getByAppId(GetByAppId $request) public function getByAppId(AppGetByAppId $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\Application; namespace App\Http\Request;
use App\Htpp\Request\FormRequestErrors; class AppCreateRequest 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\Application; namespace App\Http\Request;
use App\Htpp\Request\FormRequestErrors; class AppDeleteRequest extends FormRequestErrors
class DeleteRequest 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\Application; namespace App\Http\Request;
use App\Htpp\Request\FormRequestErrors; class AppGetByAppIdRequest extends FormRequestErrors
class GetByAppIdRequest 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\Application; namespace App\Http\Request;
use App\Htpp\Request\FormRequestErrors; class AppGetByUserId extends FormRequestErrors
class GetByUserId 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\Application; namespace App\Http\Request;
use App\Htpp\Request\FormRequestErrors; class AppUpdateRequest 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