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
Hide 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 @@
...
@@ -2,20 +2,20 @@
namespace
App\Http\Controllers\Backend\Access\Role
;
namespace
App\Http\Controllers\Backend\Access\Role
;
use
App\Models\Access\Role\Role
;
use
App\Http\Controllers\Controller
;
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\CreateRoleRequest
;
use
App\Http\Requests\Backend\Access\Role\DeleteRoleRequest
;
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\ManageRoleRequest
;
use
App\Http\Requests\Backend\Access\Role\StoreRoleRequest
;
use
App\Http\Requests\Backend\Access\Role\UpdateRoleRequest
;
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\Permission\PermissionRepository
;
use
App\Repositories\Backend\Access\Role\RoleRepository
;
/**
/**
* Class RoleController.
* Class RoleController.
...
@@ -33,8 +33,8 @@ class RoleController extends Controller
...
@@ -33,8 +33,8 @@ class RoleController extends Controller
protected
$permissions
;
protected
$permissions
;
/**
/**
* @param \App\Repositories\Backend\Access\Role\RoleRepository
$roles
* @param \App\Repositories\Backend\Access\Role\RoleRepository $roles
* @param \App\Repositories\Backend\Access\Permission\PermissionRepository
$permissions
* @param \App\Repositories\Backend\Access\Permission\PermissionRepository $permissions
*/
*/
public
function
__construct
(
RoleRepository
$roles
,
PermissionRepository
$permissions
)
public
function
__construct
(
RoleRepository
$roles
,
PermissionRepository
$permissions
)
{
{
...
@@ -75,8 +75,8 @@ class RoleController extends Controller
...
@@ -75,8 +75,8 @@ class RoleController extends Controller
}
}
/**
/**
* @param \App\Models\Access\Role\Role
$role
* @param \App\Models\Access\Role\Role $role
* @param \App\Http\Requests\Backend\Access\Role\EditRoleRequest
$request
* @param \App\Http\Requests\Backend\Access\Role\EditRoleRequest $request
*
*
* @return \App\Http\Responses\Backend\Access\Role\EditResponse
* @return \App\Http\Responses\Backend\Access\Role\EditResponse
*/
*/
...
@@ -86,8 +86,8 @@ class RoleController extends Controller
...
@@ -86,8 +86,8 @@ class RoleController extends Controller
}
}
/**
/**
* @param \App\Models\Access\Role\Role
$role
* @param \App\Models\Access\Role\Role $role
* @param \App\Http\Requests\Backend\Access\Role\UpdateRoleRequest
$request
* @param \App\Http\Requests\Backend\Access\Role\UpdateRoleRequest $request
*
*
* @return \App\Http\Responses\RedirectResponse
* @return \App\Http\Responses\RedirectResponse
*/
*/
...
@@ -99,8 +99,8 @@ class RoleController extends Controller
...
@@ -99,8 +99,8 @@ class RoleController extends Controller
}
}
/**
/**
* @param \App\Models\Access\Role\Role
$role
* @param \App\Models\Access\Role\Role $role
* @param \App\Http\Requests\Backend\Access\Role\DeleteRoleRequest
$request
* @param \App\Http\Requests\Backend\Access\Role\DeleteRoleRequest $request
*
*
* @return \App\Http\Responses\RedirectResponse
* @return \App\Http\Responses\RedirectResponse
*/
*/
...
...
app/Http/Controllers/Backend/Access/User/UserController.php
View file @
d8218f5f
...
@@ -2,23 +2,23 @@
...
@@ -2,23 +2,23 @@
namespace
App\Http\Controllers\Backend\Access\User
;
namespace
App\Http\Controllers\Backend\Access\User
;
use
App\Models\Access\User\User
;
use
App\Http\Controllers\Controller
;
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\CreateUserRequest
;
use
App\Http\Requests\Backend\Access\User\DeleteUserRequest
;
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\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\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.
* Class UserController.
...
...
app/Http/Responses/Backend/Access/Role/CreateResponse.php
View file @
d8218f5f
...
@@ -17,8 +17,8 @@ class CreateResponse implements Responsable
...
@@ -17,8 +17,8 @@ class CreateResponse implements Responsable
protected
$permissions
;
protected
$permissions
;
/**
/**
* @param \App\Repositories\Backend\Access\Permission\PermissionRepository
$permissions
* @param \App\Repositories\Backend\Access\Permission\PermissionRepository $permissions
* @param \App\Repositories\Backend\Access\Role\RoleRepository
$roles
* @param \App\Repositories\Backend\Access\Role\RoleRepository $roles
*/
*/
public
function
__construct
(
$permissions
,
$roles
)
public
function
__construct
(
$permissions
,
$roles
)
{
{
...
...
app/Http/Responses/Backend/Access/Role/EditResponse.php
View file @
d8218f5f
...
@@ -17,8 +17,8 @@ class EditResponse implements Responsable
...
@@ -17,8 +17,8 @@ class EditResponse implements Responsable
protected
$permissions
;
protected
$permissions
;
/**
/**
* @param \App\Models\Access\Role\Role
$role
* @param \App\Models\Access\Role\Role $role
* @param \App\Repositories\Backend\Access\Permission\PermissionRepository
$permissions
* @param \App\Repositories\Backend\Access\Permission\PermissionRepository $permissions
*/
*/
public
function
__construct
(
$role
,
$permissions
)
public
function
__construct
(
$role
,
$permissions
)
{
{
...
@@ -27,9 +27,10 @@ class EditResponse implements Responsable
...
@@ -27,9 +27,10 @@ class EditResponse implements Responsable
}
}
/**
/**
* toReponse
* toReponse
.
*
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Http\Request $request
*
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
*/
*/
public
function
toResponse
(
$request
)
public
function
toResponse
(
$request
)
...
...
app/Http/Responses/Backend/Access/User/EditResponse.php
View file @
d8218f5f
...
@@ -32,9 +32,10 @@ class EditResponse implements Responsable
...
@@ -32,9 +32,10 @@ class EditResponse implements Responsable
}
}
/**
/**
* toReponse
* toReponse
.
*
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Http\Request $request
*
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
*/
*/
public
function
toResponse
(
$request
)
public
function
toResponse
(
$request
)
...
...
app/Http/Responses/ViewResponse.php
View file @
d8218f5f
...
@@ -7,18 +7,18 @@ use Illuminate\Contracts\Support\Responsable;
...
@@ -7,18 +7,18 @@ use Illuminate\Contracts\Support\Responsable;
class
ViewResponse
implements
Responsable
class
ViewResponse
implements
Responsable
{
{
/**
/**
* @var
S
tring
* @var
s
tring
*/
*/
protected
$view
;
protected
$view
;
/**
/**
* @var
A
rray
* @var
a
rray
*/
*/
protected
$with
;
protected
$with
;
/**
/**
* @param
String
$view
* @param
string
$view
* @param
Array
$with
* @param
array
$with
*/
*/
public
function
__construct
(
$view
,
$with
=
[])
public
function
__construct
(
$view
,
$with
=
[])
{
{
...
@@ -35,8 +35,7 @@ class ViewResponse implements Responsable
...
@@ -35,8 +35,7 @@ class ViewResponse implements Responsable
*/
*/
public
function
toResponse
(
$request
)
public
function
toResponse
(
$request
)
{
{
if
(
!
empty
(
$this
->
with
))
if
(
!
empty
(
$this
->
with
))
{
{
return
view
(
$this
->
view
)
->
with
(
$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