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

revisi folder application

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