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
eab15229
Commit
eab15229
authored
Apr 10, 2019
by
Dzulfqar Ridha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update dir user request
parent
5f08d941
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
24 deletions
+16
-24
UserController.php
app/Http/Controllers/UserController.php
+8
-8
UserCreateRequest.php
app/Http/Request/UserCreateRequest.php
+2
-4
UserGetByIdRequest.php
app/Http/Request/UserGetByIdRequest.php
+2
-4
UserGetByUsernameRequest.php
app/Http/Request/UserGetByUsernameRequest.php
+2
-4
UserUpdateRequest.php
app/Http/Request/UserUpdateRequest.php
+2
-4
No files found.
app/Http/Controllers/UserController.php
View file @
eab15229
...
...
@@ -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
(
User
GetByUsernameRequest
$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
(
User
GetByIdRequest
$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
(
User
CreateRequest
$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
(
U
serU
pdateRequest
$request
){
$mResponse
=
new
MResponse
();
$statusCode
=
200
;
...
...
app/Http/Request/User
/
CreateRequest.php
→
app/Http/Request/UserCreateRequest.php
View file @
eab15229
...
...
@@ -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
()
{
...
...
app/Http/Request/User
/
GetByIdRequest.php
→
app/Http/Request/UserGetByIdRequest.php
View file @
eab15229
...
...
@@ -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
()
{
...
...
app/Http/Request/User
/
GetByUsernameRequest.php
→
app/Http/Request/UserGetByUsernameRequest.php
View file @
eab15229
...
...
@@ -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
()
{
...
...
app/Http/Request/User
/
UpdateRequest.php
→
app/Http/Request/UserUpdateRequest.php
View file @
eab15229
...
...
@@ -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
()
{
...
...
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