Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
MP-Tsel
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dzulfiqar Ridha
MP-Tsel
Commits
5f08d941
Commit
5f08d941
authored
Apr 10, 2019
by
Dzulfqar Ridha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revisi folder application
parent
cd9dcac5
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
27 deletions
+20
-27
ApplicationController.php
app/Http/Controllers/ApplicationController.php
+10
-7
AppCreateRequest.php
app/Http/Request/AppCreateRequest.php
+2
-4
AppDeleteRequest.php
app/Http/Request/AppDeleteRequest.php
+2
-4
AppGetByAppIdRequest.php
app/Http/Request/AppGetByAppIdRequest.php
+2
-4
AppGetByUserIdRequest.php
app/Http/Request/AppGetByUserIdRequest.php
+2
-4
AppUpdateRequest.php
app/Http/Request/AppUpdateRequest.php
+2
-4
No files found.
app/Http/Controllers/ApplicationController.php
View file @
5f08d941
...
...
@@ -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
(
App
CreateRequest
$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
(
App
UpdateRequest
$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
(
App
DeleteRequest
$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
(
App
GetByUserIdRequest
$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
(
App
GetByAppId
$request
)
{
$mResponse
=
new
MResponse
();
$statusCode
=
200
;
...
...
app/Http/Request/App
lication/
CreateRequest.php
→
app/Http/Request/AppCreateRequest.php
View file @
5f08d941
...
...
@@ -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
()
{
...
...
app/Http/Request/App
lication/
DeleteRequest.php
→
app/Http/Request/AppDeleteRequest.php
View file @
5f08d941
...
...
@@ -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
()
{
...
...
app/Http/Request/App
lication/
GetByAppIdRequest.php
→
app/Http/Request/AppGetByAppIdRequest.php
View file @
5f08d941
...
...
@@ -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
()
{
...
...
app/Http/Request/App
lication/
GetByUserIdRequest.php
→
app/Http/Request/AppGetByUserIdRequest.php
View file @
5f08d941
...
...
@@ -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
()
{
...
...
app/Http/Request/App
lication/
UpdateRequest.php
→
app/Http/Request/AppUpdateRequest.php
View file @
5f08d941
...
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment