Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
laravel-adminpanel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
laravel-adminpanel
Commits
d8218f5f
Unverified
Commit
d8218f5f
authored
Jun 03, 2018
by
Vipul Basapati
Committed by
GitHub
Jun 03, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into develop
parents
124c718d
371a28e4
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
41 additions
and
40 deletions
+41
-40
RoleController.php
app/Http/Controllers/Backend/Access/Role/RoleController.php
+16
-16
UserController.php
app/Http/Controllers/Backend/Access/User/UserController.php
+12
-12
CreateResponse.php
app/Http/Responses/Backend/Access/Role/CreateResponse.php
+2
-2
EditResponse.php
app/Http/Responses/Backend/Access/Role/EditResponse.php
+4
-3
EditResponse.php
app/Http/Responses/Backend/Access/User/EditResponse.php
+2
-1
ViewResponse.php
app/Http/Responses/ViewResponse.php
+5
-6
No files found.
app/Http/Controllers/Backend/Access/Role/RoleController.php
View file @
d8218f5f
...
...
@@ -2,20 +2,20 @@
namespace
App\Http\Controllers\Backend\Access\Role
;
use
App\Models\Access\Role\Role
;
use
App\Http\Controllers\Controller
;
use
App\Http\Responses\ViewResponse
;
use
App\Http\Responses\RedirectResponse
;
use
App\Http\Responses\Backend\Access\Role\EditResponse
;
use
App\Repositories\Backend\Access\Role\RoleRepository
;
use
App\Http\Requests\Backend\Access\Role\EditRoleRequest
;
use
App\Http\Responses\Backend\Access\Role\CreateResponse
;
use
App\Http\Requests\Backend\Access\Role\StoreRoleRequest
;
use
App\Http\Requests\Backend\Access\Role\CreateRoleRequest
;
use
App\Http\Requests\Backend\Access\Role\DeleteRoleRequest
;
use
App\Http\Requests\Backend\Access\Role\EditRoleRequest
;
use
App\Http\Requests\Backend\Access\Role\ManageRoleRequest
;
use
App\Http\Requests\Backend\Access\Role\StoreRoleRequest
;
use
App\Http\Requests\Backend\Access\Role\UpdateRoleRequest
;
use
App\Http\Responses\Backend\Access\Role\CreateResponse
;
use
App\Http\Responses\Backend\Access\Role\EditResponse
;
use
App\Http\Responses\RedirectResponse
;
use
App\Http\Responses\ViewResponse
;
use
App\Models\Access\Role\Role
;
use
App\Repositories\Backend\Access\Permission\PermissionRepository
;
use
App\Repositories\Backend\Access\Role\RoleRepository
;
/**
* Class RoleController.
...
...
app/Http/Controllers/Backend/Access/User/UserController.php
View file @
d8218f5f
...
...
@@ -2,23 +2,23 @@
namespace
App\Http\Controllers\Backend\Access\User
;
use
App\Models\Access\User\User
;
use
App\Http\Controllers\Controller
;
use
App\Http\Responses\ViewResponse
;
use
App\Http\Responses\RedirectResponse
;
use
App\Models\Access\Permission\Permission
;
use
App\Http\Responses\Backend\Access\User\EditResponse
;
use
App\Http\Responses\Backend\Access\User\ShowResponse
;
use
App\Repositories\Backend\Access\Role\RoleRepository
;
use
App\Repositories\Backend\Access\User\UserRepository
;
use
App\Http\Requests\Backend\Access\User\EditUserRequest
;
use
App\Http\Requests\Backend\Access\User\ShowUserRequest
;
use
App\Http\Responses\Backend\Access\User\CreateResponse
;
use
App\Http\Requests\Backend\Access\User\StoreUserRequest
;
use
App\Http\Requests\Backend\Access\User\CreateUserRequest
;
use
App\Http\Requests\Backend\Access\User\DeleteUserRequest
;
use
App\Http\Requests\Backend\Access\User\EditUserRequest
;
use
App\Http\Requests\Backend\Access\User\ManageUserRequest
;
use
App\Http\Requests\Backend\Access\User\ShowUserRequest
;
use
App\Http\Requests\Backend\Access\User\StoreUserRequest
;
use
App\Http\Requests\Backend\Access\User\UpdateUserRequest
;
use
App\Http\Responses\Backend\Access\User\CreateResponse
;
use
App\Http\Responses\Backend\Access\User\EditResponse
;
use
App\Http\Responses\Backend\Access\User\ShowResponse
;
use
App\Http\Responses\RedirectResponse
;
use
App\Http\Responses\ViewResponse
;
use
App\Models\Access\Permission\Permission
;
use
App\Models\Access\User\User
;
use
App\Repositories\Backend\Access\Role\RoleRepository
;
use
App\Repositories\Backend\Access\User\UserRepository
;
/**
* Class UserController.
...
...
app/Http/Responses/Backend/Access/Role/CreateResponse.php
View file @
d8218f5f
app/Http/Responses/Backend/Access/Role/EditResponse.php
View file @
d8218f5f
...
...
@@ -27,9 +27,10 @@ class EditResponse implements Responsable
}
/**
* toReponse
* toReponse
.
*
* @param \Illuminate\Http\Request $request
*
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
*/
public
function
toResponse
(
$request
)
...
...
app/Http/Responses/Backend/Access/User/EditResponse.php
View file @
d8218f5f
...
...
@@ -32,9 +32,10 @@ class EditResponse implements Responsable
}
/**
* toReponse
* toReponse
.
*
* @param \Illuminate\Http\Request $request
*
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
*/
public
function
toResponse
(
$request
)
...
...
app/Http/Responses/ViewResponse.php
View file @
d8218f5f
...
...
@@ -7,18 +7,18 @@ use Illuminate\Contracts\Support\Responsable;
class
ViewResponse
implements
Responsable
{
/**
* @var
S
tring
* @var
s
tring
*/
protected
$view
;
/**
* @var
A
rray
* @var
a
rray
*/
protected
$with
;
/**
* @param
String
$view
* @param
Array
$with
* @param
string
$view
* @param
array
$with
*/
public
function
__construct
(
$view
,
$with
=
[])
{
...
...
@@ -35,8 +35,7 @@ class ViewResponse implements Responsable
*/
public
function
toResponse
(
$request
)
{
if
(
!
empty
(
$this
->
with
))
{
if
(
!
empty
(
$this
->
with
))
{
return
view
(
$this
->
view
)
->
with
(
$this
->
with
);
}
...
...
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