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
4c400c2a
Unverified
Commit
4c400c2a
authored
Jun 03, 2018
by
Viral Solani
Committed by
GitHub
Jun 03, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #230 from viralsolani/analysis-qgQZyw
Apply fixes from StyleCI
parents
849c0904
1aa29b35
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
84 additions
and
79 deletions
+84
-79
PermissionController.php
...ollers/Backend/Access/Permission/PermissionController.php
+8
-8
RoleController.php
app/Http/Controllers/Backend/Access/Role/RoleController.php
+1
-1
BlogCategoriesController.php
...llers/Backend/BlogCategories/BlogCategoriesController.php
+6
-6
BlogTagsController.php
app/Http/Controllers/Backend/BlogTags/BlogTagsController.php
+7
-7
FaqsController.php
app/Http/Controllers/Backend/Faqs/FaqsController.php
+8
-8
MenuController.php
app/Http/Controllers/Backend/Menu/MenuController.php
+15
-17
PagesController.php
app/Http/Controllers/Backend/Pages/PagesController.php
+8
-8
SettingsController.php
app/Http/Controllers/Backend/Settings/SettingsController.php
+4
-4
CreateResponse.php
...tp/Responses/Backend/Access/Permission/CreateResponse.php
+1
-1
EditResponse.php
...Http/Responses/Backend/Access/Permission/EditResponse.php
+3
-2
EditResponse.php
app/Http/Responses/Backend/BlogCategory/EditResponse.php
+3
-2
EditResponse.php
app/Http/Responses/Backend/BlogTag/EditResponse.php
+4
-3
EditResponse.php
app/Http/Responses/Backend/Faq/EditResponse.php
+3
-2
CreateResponse.php
app/Http/Responses/Backend/Menu/CreateResponse.php
+3
-3
EditResponse.php
app/Http/Responses/Backend/Menu/EditResponse.php
+6
-5
EditResponse.php
app/Http/Responses/Backend/Page/EditResponse.php
+2
-1
EditResponse.php
app/Http/Responses/Backend/Setting/EditResponse.php
+2
-1
No files found.
app/Http/Controllers/Backend/Access/Permission/PermissionController.php
View file @
4c400c2a
...
...
@@ -3,18 +3,18 @@
namespace
App\Http\Controllers\Backend\Access\Permission
;
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\Permission\EditResponse
;
use
App\Http\Responses\Backend\Access\Permission\CreateResponse
;
use
App\Repositories\Backend\Access\Permission\PermissionRepository
;
use
App\Http\Requests\Backend\Access\Permission\EditPermissionRequest
;
use
App\Http\Requests\Backend\Access\Permission\StorePermissionRequest
;
use
App\Http\Requests\Backend\Access\Permission\CreatePermissionRequest
;
use
App\Http\Requests\Backend\Access\Permission\DeletePermissionRequest
;
use
App\Http\Requests\Backend\Access\Permission\EditPermissionRequest
;
use
App\Http\Requests\Backend\Access\Permission\ManagePermissionRequest
;
use
App\Http\Requests\Backend\Access\Permission\StorePermissionRequest
;
use
App\Http\Requests\Backend\Access\Permission\UpdatePermissionRequest
;
use
App\Http\Responses\Backend\Access\Permission\CreateResponse
;
use
App\Http\Responses\Backend\Access\Permission\EditResponse
;
use
App\Http\Responses\RedirectResponse
;
use
App\Http\Responses\ViewResponse
;
use
App\Models\Access\Permission\Permission
;
use
App\Repositories\Backend\Access\Permission\PermissionRepository
;
/**
* Class PermissionController.
...
...
app/Http/Controllers/Backend/Access/Role/RoleController.php
View file @
4c400c2a
...
...
@@ -108,6 +108,6 @@ class RoleController extends Controller
{
$this
->
roles
->
delete
(
$role
);
return
new
RedirectResponse
(
route
(
'admin.access.role.index'
),
[
'flash_success'
=>
trans
(
'alerts.backend.roles.deleted'
)]);
return
new
RedirectResponse
(
route
(
'admin.access.role.index'
),
[
'flash_success'
=>
trans
(
'alerts.backend.roles.deleted'
)]);
}
}
app/Http/Controllers/Backend/BlogCategories/BlogCategoriesController.php
View file @
4c400c2a
...
...
@@ -3,16 +3,16 @@
namespace
App\Http\Controllers\Backend\BlogCategories
;
use
App\Http\Controllers\Controller
;
use
App\Http\Responses\ViewResponse
;
use
App\Http\Responses\RedirectResponse
;
use
App\Models\BlogCategories\BlogCategory
;
use
App\Repositories\Backend\BlogCategories\BlogCategoriesRepository
;
use
App\Http\Requests\Backend\BlogCategories\EditBlogCategoriesRequest
;
use
App\Http\Requests\Backend\BlogCategories\StoreBlogCategoriesRequest
;
use
App\Http\Requests\Backend\BlogCategories\CreateBlogCategoriesRequest
;
use
App\Http\Requests\Backend\BlogCategories\DeleteBlogCategoriesRequest
;
use
App\Http\Requests\Backend\BlogCategories\EditBlogCategoriesRequest
;
use
App\Http\Requests\Backend\BlogCategories\ManageBlogCategoriesRequest
;
use
App\Http\Requests\Backend\BlogCategories\StoreBlogCategoriesRequest
;
use
App\Http\Requests\Backend\BlogCategories\UpdateBlogCategoriesRequest
;
use
App\Http\Responses\RedirectResponse
;
use
App\Http\Responses\ViewResponse
;
use
App\Models\BlogCategories\BlogCategory
;
use
App\Repositories\Backend\BlogCategories\BlogCategoriesRepository
;
/**
* Class BlogCategoriesController.
...
...
app/Http/Controllers/Backend/BlogTags/BlogTagsController.php
View file @
4c400c2a
...
...
@@ -2,18 +2,18 @@
namespace
App\Http\Controllers\Backend\BlogTags
;
use
App\Models\BlogTags\BlogTag
;
use
App\Http\Controllers\Controller
;
use
App\Http\Responses\ViewResponse
;
use
App\Http\Responses\RedirectResponse
;
use
App\Http\Responses\Backend\BlogTag\EditResponse
;
use
App\Repositories\Backend\BlogTags\BlogTagsRepository
;
use
App\Http\Requests\Backend\BlogTags\EditBlogTagsRequest
;
use
App\Http\Requests\Backend\BlogTags\StoreBlogTagsRequest
;
use
App\Http\Requests\Backend\BlogTags\CreateBlogTagsRequest
;
use
App\Http\Requests\Backend\BlogTags\DeleteBlogTagsRequest
;
use
App\Http\Requests\Backend\BlogTags\EditBlogTagsRequest
;
use
App\Http\Requests\Backend\BlogTags\ManageBlogTagsRequest
;
use
App\Http\Requests\Backend\BlogTags\StoreBlogTagsRequest
;
use
App\Http\Requests\Backend\BlogTags\UpdateBlogTagsRequest
;
use
App\Http\Responses\Backend\BlogTag\EditResponse
;
use
App\Http\Responses\RedirectResponse
;
use
App\Http\Responses\ViewResponse
;
use
App\Models\BlogTags\BlogTag
;
use
App\Repositories\Backend\BlogTags\BlogTagsRepository
;
/**
* Class BlogTagsController.
...
...
app/Http/Controllers/Backend/Faqs/FaqsController.php
View file @
4c400c2a
...
...
@@ -2,23 +2,23 @@
namespace
App\Http\Controllers\Backend\Faqs
;
use
App\Models\Faqs\Faq
;
use
App\Http\Controllers\Controller
;
use
App\Http\Responses\ViewResponse
;
use
App\Http\Responses\RedirectResponse
;
use
App\Http\Responses\Backend\Faq\EditResponse
;
use
App\Repositories\Backend\Faqs\FaqsRepository
;
use
App\Http\Requests\Backend\Faqs\EditFaqsRequest
;
use
App\Http\Requests\Backend\Faqs\StoreFaqsRequest
;
use
App\Http\Requests\Backend\Faqs\CreateFaqsRequest
;
use
App\Http\Requests\Backend\Faqs\DeleteFaqsRequest
;
use
App\Http\Requests\Backend\Faqs\EditFaqsRequest
;
use
App\Http\Requests\Backend\Faqs\ManageFaqsRequest
;
use
App\Http\Requests\Backend\Faqs\StoreFaqsRequest
;
use
App\Http\Requests\Backend\Faqs\UpdateFaqsRequest
;
use
App\Http\Responses\Backend\Faq\EditResponse
;
use
App\Http\Responses\RedirectResponse
;
use
App\Http\Responses\ViewResponse
;
use
App\Models\Faqs\Faq
;
use
App\Repositories\Backend\Faqs\FaqsRepository
;
class
FaqsController
extends
Controller
{
/**
* Faq Repository
* Faq Repository
.
*
* @var \App\Repositories\Backend\Faqs\FaqsRepository
*/
...
...
app/Http/Controllers/Backend/Menu/MenuController.php
View file @
4c400c2a
...
...
@@ -2,42 +2,41 @@
namespace
App\Http\Controllers\Backend\Menu
;
use
App\Models\Menu\Menu
;
use
Bvipul\Generator\Module
;
use
Illuminate\Support\Facades\DB
;
use
App\Http\Controllers\Controller
;
use
App\Http\Responses\ViewResponse
;
use
App\Http\Responses\RedirectResponse
;
use
App\Http\Responses\Backend\Menu\EditResponse
;
use
App\Repositories\Backend\Menu\MenuRepository
;
use
App\Http\Requests\Backend\Menu\EditMenuRequest
;
use
App\Http\Responses\Backend\Menu\CreateResponse
;
use
App\Http\Requests\Backend\Menu\StoreMenuRequest
;
use
App\Http\Requests\Backend\Menu\CreateMenuRequest
;
use
App\Http\Requests\Backend\Menu\DeleteMenuRequest
;
use
App\Http\Requests\Backend\Menu\EditMenuRequest
;
use
App\Http\Requests\Backend\Menu\ManageMenuRequest
;
use
App\Http\Requests\Backend\Menu\StoreMenuRequest
;
use
App\Http\Requests\Backend\Menu\UpdateMenuRequest
;
use
App\Http\Responses\Backend\Menu\CreateResponse
;
use
App\Http\Responses\Backend\Menu\EditResponse
;
use
App\Http\Responses\RedirectResponse
;
use
App\Http\Responses\ViewResponse
;
use
App\Models\Menu\Menu
;
use
App\Repositories\Backend\Menu\MenuRepository
;
use
Bvipul\Generator\Module
;
class
MenuController
extends
Controller
{
/**
* Menu Model Object
* Menu Model Object
.
*
* @var \App\Models\Menu\Menu
*/
protected
$menu
;
/**
* Module Model Object
* Module Model Object
.
*
* @var \Bvipul\Generator\Module
*/
protected
$modules
;
/**
* Menu Types
* Menu Types
.
*
* @var
A
rray
* @var
a
rray
*/
protected
$types
;
...
...
@@ -47,14 +46,13 @@ class MenuController extends Controller
public
function
__construct
(
MenuRepository
$menu
,
Module
$module
)
{
$this
->
menu
=
$menu
;
$this
->
modules
=
$module
;
$this
->
types
=
[
'backend'
=>
'Backend'
,
'frontend'
=>
'Frontend'
,
];
}
/**
...
...
app/Http/Controllers/Backend/Pages/PagesController.php
View file @
4c400c2a
...
...
@@ -2,18 +2,18 @@
namespace
App\Http\Controllers\Backend\Pages
;
use
App\Models\Page\Page
;
use
App\Http\Controllers\Controller
;
use
App\Http\Responses\ViewResponse
;
use
App\Http\Responses\RedirectResponse
;
use
App\Http\Responses\Backend\Page\EditResponse
;
use
App\Repositories\Backend\Pages\PagesRepository
;
use
App\Http\Requests\Backend\Pages\EditPageRequest
;
use
App\Http\Requests\Backend\Pages\StorePageRequest
;
use
App\Http\Requests\Backend\Pages\CreatePageRequest
;
use
App\Http\Requests\Backend\Pages\DeletePageRequest
;
use
App\Http\Requests\Backend\Pages\EditPageRequest
;
use
App\Http\Requests\Backend\Pages\ManagePageRequest
;
use
App\Http\Requests\Backend\Pages\StorePageRequest
;
use
App\Http\Requests\Backend\Pages\UpdatePageRequest
;
use
App\Http\Responses\Backend\Page\EditResponse
;
use
App\Http\Responses\RedirectResponse
;
use
App\Http\Responses\ViewResponse
;
use
App\Models\Page\Page
;
use
App\Repositories\Backend\Pages\PagesRepository
;
/**
* Class PagesController.
...
...
@@ -37,7 +37,7 @@ class PagesController extends Controller
*/
public
function
index
(
ManagePageRequest
$request
)
{
return
new
ViewResponse
(
'backend.pages.index'
);
return
new
ViewResponse
(
'backend.pages.index'
);
}
/**
...
...
app/Http/Controllers/Backend/Settings/SettingsController.php
View file @
4c400c2a
...
...
@@ -2,13 +2,13 @@
namespace
App\Http\Controllers\Backend\Settings
;
use
App\Models\Settings\Setting
;
use
App\Http\Controllers\Controller
;
use
App\Http\Responses\RedirectResponse
;
use
App\Http\Responses\Backend\Setting\EditResponse
;
use
App\Repositories\Backend\Settings\SettingsRepository
;
use
App\Http\Requests\Backend\Settings\ManageSettingsRequest
;
use
App\Http\Requests\Backend\Settings\UpdateSettingsRequest
;
use
App\Http\Responses\Backend\Setting\EditResponse
;
use
App\Http\Responses\RedirectResponse
;
use
App\Models\Settings\Setting
;
use
App\Repositories\Backend\Settings\SettingsRepository
;
/**
* Class SettingsController.
...
...
app/Http/Responses/Backend/Access/Permission/CreateResponse.php
View file @
4c400c2a
...
...
@@ -12,7 +12,7 @@ class CreateResponse implements Responsable
protected
$permissions
;
/**
* @param \App\Repositories\Backend\Access\Permission\PermissionRepository
$permissions
* @param \App\Repositories\Backend\Access\Permission\PermissionRepository $permissions
*/
public
function
__construct
(
$permissions
)
{
...
...
app/Http/Responses/Backend/Access/Permission/EditResponse.php
View file @
4c400c2a
...
...
@@ -12,7 +12,7 @@ class EditResponse implements Responsable
protected
$permission
;
/**
* @param \App\Models\Access\Permission\Permission
$permission
* @param \App\Models\Access\Permission\Permission $permission
*/
public
function
__construct
(
$permission
)
{
...
...
@@ -20,9 +20,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/BlogCategory/EditResponse.php
View file @
4c400c2a
...
...
@@ -12,7 +12,7 @@ class EditResponse implements Responsable
protected
$blogCategory
;
/**
* @param \App\Models\BlogCategories\BlogCategory
$blogCategory
* @param \App\Models\BlogCategories\BlogCategory $blogCategory
*/
public
function
__construct
(
$blogCategory
,
$types
,
$modules
)
{
...
...
@@ -20,9 +20,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/BlogTag/EditResponse.php
View file @
4c400c2a
...
...
@@ -20,14 +20,15 @@ class EditResponse implements Responsable
}
/**
* toReponse
* toReponse
.
*
* @param \Illuminate\Http\Request $request
*
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
*/
public
function
toResponse
(
$request
)
{
return
view
(
'backend.blogtags.edit'
)
->
with
(
'blogtag'
,
$this
->
blogTag
);
return
view
(
'backend.blogtags.edit'
)
->
with
(
'blogtag'
,
$this
->
blogTag
);
}
}
app/Http/Responses/Backend/Faq/EditResponse.php
View file @
4c400c2a
...
...
@@ -12,7 +12,7 @@ class EditResponse implements Responsable
protected
$faq
;
/**
* @param \App\Models\Faqs\Faq
$faq
* @param \App\Models\Faqs\Faq $faq
*/
public
function
__construct
(
$faq
)
{
...
...
@@ -20,9 +20,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/Menu/CreateResponse.php
View file @
4c400c2a
...
...
@@ -7,7 +7,7 @@ use Illuminate\Contracts\Support\Responsable;
class
CreateResponse
implements
Responsable
{
/**
* @var
A
rray
* @var
a
rray
*/
protected
$types
;
...
...
@@ -17,8 +17,8 @@ class CreateResponse implements Responsable
protected
$modules
;
/**
* @param
Array
$types
* @param \Bvipul\Generator\Module
$modules
* @param
array
$types
* @param \Bvipul\Generator\Module $modules
*/
public
function
__construct
(
$types
,
$modules
)
{
...
...
app/Http/Responses/Backend/Menu/EditResponse.php
View file @
4c400c2a
...
...
@@ -7,7 +7,7 @@ use Illuminate\Contracts\Support\Responsable;
class
EditResponse
implements
Responsable
{
/**
* @var
A
rray
* @var
a
rray
*/
protected
$types
;
...
...
@@ -22,9 +22,9 @@ class EditResponse implements Responsable
protected
$menu
;
/**
* @param \App\Models\Menu\Menu
$menu
* @param
Array
$types
* @param \Bvipul\Generator\Module
$modules
* @param \App\Models\Menu\Menu $menu
* @param
array
$types
* @param \Bvipul\Generator\Module $modules
*/
public
function
__construct
(
$menu
,
$types
,
$modules
)
{
...
...
@@ -34,9 +34,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/Page/EditResponse.php
View file @
4c400c2a
...
...
@@ -20,9 +20,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/Setting/EditResponse.php
View file @
4c400c2a
...
...
@@ -20,9 +20,10 @@ class EditResponse implements Responsable
}
/**
* toReponse
* toReponse
.
*
* @param \Illuminate\Http\Request $request
*
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
*/
public
function
toResponse
(
$request
)
...
...
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