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
7f7092d0
Unverified
Commit
7f7092d0
authored
Nov 26, 2017
by
Viral Solani
Committed by
GitHub
Nov 26, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #45 from viralsolani/analysis-8md3xa
Apply fixes from StyleCI
parents
de5ba46e
37a77d6a
Changes
29
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
32 additions
and
50 deletions
+32
-50
UserController.php
app/Http/Controllers/Backend/Access/User/UserController.php
+7
-8
Permission.php
app/Models/Access/Permission/Permission.php
+1
-1
Role.php
app/Models/Access/Role/Role.php
+1
-1
User.php
app/Models/Access/User/User.php
+0
-1
BaseModel.php
app/Models/BaseModel.php
+13
-14
BlogCategory.php
app/Models/BlogCategories/BlogCategory.php
+2
-2
BlogTag.php
app/Models/BlogTags/BlogTag.php
+1
-1
Blog.php
app/Models/Blogs/Blog.php
+1
-1
City.php
app/Models/Cities/City.php
+1
-1
EmailTemplate.php
app/Models/EmailTemplates/EmailTemplate.php
+1
-1
Faq.php
app/Models/Faqs/Faq.php
+1
-1
History.php
app/Models/History/History.php
+1
-1
Page.php
app/Models/Page/Page.php
+1
-1
State.php
app/Models/States/State.php
+1
-1
CmsPageRepository.php
app/Repositories/Api/CmsPage/CmsPageRepository.php
+0
-1
RoleRepository.php
app/Repositories/Api/Role/RoleRepository.php
+0
-1
PasswordResetRepository.php
app/Repositories/Api/User/PasswordResetRepository.php
+0
-1
UserRepository.php
app/Repositories/Api/User/UserRepository.php
+0
-1
PermissionRepository.php
...tories/Backend/Access/Permission/PermissionRepository.php
+0
-1
RoleRepository.php
app/Repositories/Backend/Access/Role/RoleRepository.php
+0
-1
UserRepository.php
app/Repositories/Backend/Access/User/UserRepository.php
+0
-1
BlogCategoriesRepository.php
...ories/Backend/BlogCategories/BlogCategoriesRepository.php
+0
-1
BlogTagsRepository.php
app/Repositories/Backend/BlogTags/BlogTagsRepository.php
+0
-1
BlogsRepository.php
app/Repositories/Backend/Blogs/BlogsRepository.php
+0
-1
EmailTemplatesRepository.php
...ories/Backend/EmailTemplates/EmailTemplatesRepository.php
+0
-1
FaqsRepository.php
app/Repositories/Backend/Faqs/FaqsRepository.php
+0
-1
PagesRepository.php
app/Repositories/Backend/Pages/PagesRepository.php
+0
-1
SettingsRepository.php
app/Repositories/Backend/Settings/SettingsRepository.php
+0
-1
CMSPagesRepository.php
app/Repositories/Frontend/CMSPages/CMSPagesRepository.php
+0
-1
No files found.
app/Http/Controllers/Backend/Access/User/UserController.php
View file @
7f7092d0
...
...
@@ -2,19 +2,18 @@
namespace
App\Http\Controllers\Backend\Access\User
;
use
App\Models\Access\User\User
;
use
Illuminate\Support\Facades\DB
;
use
App\Http\Controllers\Controller
;
use
App\Models\Access\Permission\Permission
;
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\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\Models\Access\User\User
;
use
App\Repositories\Backend\Access\Role\RoleRepository
;
use
App\Repositories\Backend\Access\User\UserRepository
;
use
Illuminate\Support\Facades\DB
;
/**
* Class UserController.
...
...
app/Models/Access/Permission/Permission.php
View file @
7f7092d0
...
...
@@ -4,8 +4,8 @@ namespace App\Models\Access\Permission;
use
App\Models\Access\Permission\Traits\Attribute\PermissionAttribute
;
use
App\Models\Access\Permission\Traits\Relationship\PermissionRelationship
;
use
App\Models\ModelTrait
;
use
App\Models\BaseModel
;
use
App\Models\ModelTrait
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
/**
...
...
app/Models/Access/Role/Role.php
View file @
7f7092d0
...
...
@@ -6,8 +6,8 @@ use App\Models\Access\Role\Traits\Attribute\RoleAttribute;
use
App\Models\Access\Role\Traits\Relationship\RoleRelationship
;
use
App\Models\Access\Role\Traits\RoleAccess
;
use
App\Models\Access\Role\Traits\Scope\RoleScope
;
use
App\Models\ModelTrait
;
use
App\Models\BaseModel
;
use
App\Models\ModelTrait
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
/**
...
...
app/Models/Access/User/User.php
View file @
7f7092d0
...
...
@@ -9,7 +9,6 @@ use App\Models\Access\User\Traits\UserAccess;
use
App\Models\Access\User\Traits\UserSendPasswordReset
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
use
Illuminate\Foundation\Auth\User
as
Authenticatable
;
use
Illuminate\Contracts\Auth\Authenticatable
as
AuthenticatableContract
;
use
Illuminate\Notifications\Notifiable
;
/**
...
...
app/Models/BaseModel.php
View file @
7f7092d0
<?php
namespace
App\Models
;
<?php
namespace
App\Models
;
use
Illuminate\Database\Eloquent\Model
;
class
BaseModel
extends
Model
{
/**
* Generate drop-down select data with basic IDs
* Generate drop-down select data with basic IDs
.
*
* @param null $id
* @param null $val
*
* @return array
*/
public
static
function
getSelectData
(
$id
=
null
,
$val
=
null
)
{
$collection
=
parent
::
all
();
return
self
::
getItems
(
$collection
);
}
/**
* Generate items for drop-down select data with basic IDs
* Generate items for drop-down select data with basic IDs
.
*
* @param $collection
*
* @return array
*/
public
static
function
getItems
(
$collection
)
{
$items
=
array
()
;
$items
=
[]
;
foreach
(
$collection
as
$model
)
{
foreach
(
$collection
as
$model
)
{
$items
[
$model
->
id
]
=
[
'id'
=>
$model
->
id
,
'name'
=>
$model
->
name
,
...
...
@@ -37,14 +40,10 @@ class BaseModel extends Model
];
}
foreach
(
$items
as
$id
=>
$item
)
{
if
(
isset
(
static
::
$selectHTMLFormat
)
&&
static
::
$selectHTMLFormat
!==
''
)
{
foreach
(
$items
as
$id
=>
$item
)
{
if
(
isset
(
static
::
$selectHTMLFormat
)
&&
static
::
$selectHTMLFormat
!==
''
)
{
$items
[
$item
[
'id'
]]
=
static
::
generateSelectName
(
$item
[
'model'
],
static
::
$selectHTMLFormat
);
}
else
{
}
else
{
$items
[
$item
[
'id'
]]
=
$item
[
'name'
];
}
}
...
...
app/Models/BlogCategories/BlogCategory.php
View file @
7f7092d0
...
...
@@ -3,10 +3,10 @@
namespace
App\Models\BlogCategories
;
use
App\Models\BaseModel
;
use
App\Models\ModelTrait
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
use
App\Models\BlogCategories\Traits\Attribute\BlogCategoryAttribute
;
use
App\Models\BlogCategories\Traits\Relationship\BlogCategoryRelationship
;
use
App\Models\ModelTrait
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
class
BlogCategory
extends
BaseModel
{
...
...
app/Models/BlogTags/BlogTag.php
View file @
7f7092d0
...
...
@@ -2,10 +2,10 @@
namespace
App\Models\BlogTags
;
use
App\Models\BaseModel
;
use
App\Models\BlogTags\Traits\Attribute\BlogTagAttribute
;
use
App\Models\BlogTags\Traits\Relationship\BlogTagRelationship
;
use
App\Models\ModelTrait
;
use
App\Models\BaseModel
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
class
BlogTag
extends
BaseModel
...
...
app/Models/Blogs/Blog.php
View file @
7f7092d0
...
...
@@ -2,10 +2,10 @@
namespace
App\Models\Blogs
;
use
App\Models\BaseModel
;
use
App\Models\Blogs\Traits\Attribute\BlogAttribute
;
use
App\Models\Blogs\Traits\Relationship\BlogRelationship
;
use
App\Models\ModelTrait
;
use
App\Models\BaseModel
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
class
Blog
extends
BaseModel
...
...
app/Models/Cities/City.php
View file @
7f7092d0
...
...
@@ -2,8 +2,8 @@
namespace
App\Models\Cities
;
use
App\Models\Cities\Traits\Relationship\CityRelationship
;
use
App\Models\BaseModel
;
use
App\Models\Cities\Traits\Relationship\CityRelationship
;
class
City
extends
BaseModel
{
...
...
app/Models/EmailTemplates/EmailTemplate.php
View file @
7f7092d0
...
...
@@ -2,9 +2,9 @@
namespace
App\Models\EmailTemplates
;
use
App\Models\BaseModel
;
use
App\Models\EmailTemplates\Traits\Attribute\EmailTemplateAttribute
;
use
App\Models\ModelTrait
;
use
App\Models\BaseModel
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
class
EmailTemplate
extends
BaseModel
...
...
app/Models/Faqs/Faq.php
View file @
7f7092d0
...
...
@@ -2,9 +2,9 @@
namespace
App\Models\Faqs
;
use
App\Models\BaseModel
;
use
App\Models\Faqs\Traits\Attribute\FaqAttribute
;
use
App\Models\ModelTrait
;
use
App\Models\BaseModel
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
class
Faq
extends
BaseModel
...
...
app/Models/History/History.php
View file @
7f7092d0
...
...
@@ -2,8 +2,8 @@
namespace
App\Models\History
;
use
App\Models\History\Traits\Relationship\HistoryRelationship
;
use
App\Models\BaseModel
;
use
App\Models\History\Traits\Relationship\HistoryRelationship
;
/**
* Class History
...
...
app/Models/Page/Page.php
View file @
7f7092d0
...
...
@@ -4,8 +4,8 @@ namespace App\Models\Page;
use
App\Models\BaseModel
;
use
App\Models\ModelTrait
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
use
App\Models\Page\Traits\Attribute\PageAttribute
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
class
Page
extends
BaseModel
{
...
...
app/Models/States/State.php
View file @
7f7092d0
...
...
@@ -2,8 +2,8 @@
namespace
App\Models\States
;
use
App\Models\States\Traits\Relationship\StateRelationship
;
use
App\Models\BaseModel
;
use
App\Models\States\Traits\Relationship\StateRelationship
;
class
State
extends
BaseModel
{
...
...
app/Repositories/Api/CmsPage/CmsPageRepository.php
View file @
7f7092d0
...
...
@@ -5,7 +5,6 @@ namespace App\Repositories\Api\CmsPage;
use
App\Exceptions\GeneralException
;
use
App\Models\CMSPages\CMSPage
;
use
App\Repositories\BaseRepository
;
use
App\Models\BaseModel
;
/**
* Class CmsPageRepository.
...
...
app/Repositories/Api/Role/RoleRepository.php
View file @
7f7092d0
...
...
@@ -4,7 +4,6 @@ namespace App\Repositories\Api\Role;
use
App\Models\Access\Role\Role
;
use
App\Repositories\BaseRepository
;
use
App\Models\BaseModel
;
/**
* Class RoleRepository.
...
...
app/Repositories/Api/User/PasswordResetRepository.php
View file @
7f7092d0
...
...
@@ -4,7 +4,6 @@ namespace App\Repositories\Api\User;
use
App\Models\Access\PasswordReset\PasswordReset
;
use
App\Repositories\BaseRepository
;
use
App\Models\BaseModel
;
/**
* Class PermissionRepository.
...
...
app/Repositories/Api/User/UserRepository.php
View file @
7f7092d0
...
...
@@ -6,7 +6,6 @@ use App\Mail\ConfirmAcoountMail;
use
App\Models\Access\User\User
;
use
App\Repositories\Backend\Access\Role\RoleRepository
;
use
App\Repositories\BaseRepository
;
use
App\Models\BaseModel
;
/**
* Class PermissionRepository.
...
...
app/Repositories/Backend/Access/Permission/PermissionRepository.php
View file @
7f7092d0
...
...
@@ -9,7 +9,6 @@ use App\Exceptions\GeneralException;
use
App\Models\Access\Permission\Permission
;
use
App\Repositories\BaseRepository
;
use
DB
;
use
App\Models\BaseModel
;
/**
* Class PermissionRepository.
...
...
app/Repositories/Backend/Access/Role/RoleRepository.php
View file @
7f7092d0
...
...
@@ -8,7 +8,6 @@ use App\Events\Backend\Access\Role\RoleUpdated;
use
App\Exceptions\GeneralException
;
use
App\Models\Access\Role\Role
;
use
App\Repositories\BaseRepository
;
use
App\Models\BaseModel
;
use
Illuminate\Support\Facades\DB
;
/**
...
...
app/Repositories/Backend/Access/User/UserRepository.php
View file @
7f7092d0
...
...
@@ -14,7 +14,6 @@ use App\Exceptions\GeneralException;
use
App\Models\Access\User\User
;
use
App\Repositories\Backend\Access\Role\RoleRepository
;
use
App\Repositories\BaseRepository
;
use
App\Models\BaseModel
;
use
Illuminate\Support\Facades\DB
;
use
Illuminate\Support\Facades\Hash
;
...
...
app/Repositories/Backend/BlogCategories/BlogCategoriesRepository.php
View file @
7f7092d0
...
...
@@ -9,7 +9,6 @@ use App\Exceptions\GeneralException;
use
App\Models\BlogCategories\BlogCategory
;
use
App\Repositories\BaseRepository
;
use
DB
;
use
App\Models\BaseModel
;
/**
* Class BlogCategoriesRepository.
...
...
app/Repositories/Backend/BlogTags/BlogTagsRepository.php
View file @
7f7092d0
...
...
@@ -9,7 +9,6 @@ use App\Exceptions\GeneralException;
use
App\Models\BlogTags\BlogTag
;
use
App\Repositories\BaseRepository
;
use
DB
;
use
App\Models\BaseModel
;
/**
* Class BlogTagsRepository.
...
...
app/Repositories/Backend/Blogs/BlogsRepository.php
View file @
7f7092d0
...
...
@@ -13,7 +13,6 @@ use App\Models\Blogs\Blog;
use
App\Repositories\BaseRepository
;
use
Carbon\Carbon
;
use
DB
;
use
App\Models\BaseModel
;
/**
* Class BlogsRepository.
...
...
app/Repositories/Backend/EmailTemplates/EmailTemplatesRepository.php
View file @
7f7092d0
...
...
@@ -8,7 +8,6 @@ use App\Exceptions\GeneralException;
use
App\Models\EmailTemplates\EmailTemplate
;
use
App\Repositories\BaseRepository
;
use
DB
;
use
App\Models\BaseModel
;
/**
* Class EmailTemplatesRepository.
...
...
app/Repositories/Backend/Faqs/FaqsRepository.php
View file @
7f7092d0
...
...
@@ -5,7 +5,6 @@ namespace App\Repositories\Backend\Faqs;
use
App\Exceptions\GeneralException
;
use
App\Models\Faqs\Faq
;
use
App\Repositories\BaseRepository
;
use
App\Models\BaseModel
;
/**
* Class FaqsRepository.
...
...
app/Repositories/Backend/Pages/PagesRepository.php
View file @
7f7092d0
...
...
@@ -9,7 +9,6 @@ use App\Exceptions\GeneralException;
use
App\Models\Page\Page
;
use
App\Repositories\BaseRepository
;
use
DB
;
use
App\Models\BaseModel
;
/**
* Class PagesRepository.
...
...
app/Repositories/Backend/Settings/SettingsRepository.php
View file @
7f7092d0
...
...
@@ -6,7 +6,6 @@ use App\Exceptions\GeneralException;
use
App\Models\Settings\Setting
;
use
App\Repositories\BaseRepository
;
use
DB
;
use
App\Models\BaseModel
;
/**
* Class SettingsRepository.
...
...
app/Repositories/Frontend/CMSPages/CMSPagesRepository.php
View file @
7f7092d0
...
...
@@ -5,7 +5,6 @@ namespace App\Repositories\Frontend\CMSPages;
use
App\Exceptions\GeneralException
;
use
App\Models\CMSPages\CMSPage
;
use
App\Repositories\BaseRepository
;
use
App\Models\BaseModel
;
/**
* Class CMSPagesRepository.
...
...
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