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
de5ba46e
Commit
de5ba46e
authored
Nov 26, 2017
by
Viral Solani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add basemodel
parent
f84e0ef6
Changes
40
Hide whitespace changes
Inline
Side-by-side
Showing
40 changed files
with
125 additions
and
70 deletions
+125
-70
UserController.php
app/Http/Controllers/Backend/Access/User/UserController.php
+8
-8
PasswordReset.php
app/Models/Access/PasswordReset/PasswordReset.php
+2
-2
Permission.php
app/Models/Access/Permission/Permission.php
+2
-2
Role.php
app/Models/Access/Role/Role.php
+2
-2
SocialLogin.php
app/Models/Access/User/SocialLogin.php
+2
-2
User.php
app/Models/Access/User/User.php
+1
-0
BaseModel.php
app/Models/BaseModel.php
+54
-0
BlogCategory.php
app/Models/BlogCategories/BlogCategory.php
+4
-4
BlogMapCategory.php
app/Models/BlogMapCategories/BlogMapCategory.php
+2
-2
BlogMapTag.php
app/Models/BlogMapTags/BlogMapTag.php
+2
-2
BlogTag.php
app/Models/BlogTags/BlogTag.php
+2
-2
Blog.php
app/Models/Blogs/Blog.php
+2
-2
City.php
app/Models/Cities/City.php
+2
-2
Country.php
app/Models/Countries/Country.php
+2
-2
EmailTemplatePlaceholder.php
...ls/EmailTemplatePlaceholders/EmailTemplatePlaceholder.php
+2
-2
EmailTemplateType.php
app/Models/EmailTemplateTypes/EmailTemplateType.php
+2
-2
EmailTemplate.php
app/Models/EmailTemplates/EmailTemplate.php
+2
-2
Faq.php
app/Models/Faqs/Faq.php
+2
-2
History.php
app/Models/History/History.php
+2
-2
HistoryType.php
app/Models/History/HistoryType.php
+2
-2
Notification.php
app/Models/Notification/Notification.php
+2
-2
Page.php
app/Models/Page/Page.php
+3
-3
Setting.php
app/Models/Settings/Setting.php
+2
-2
State.php
app/Models/States/State.php
+2
-2
Session.php
app/Models/System/Session.php
+2
-2
CmsPageRepository.php
app/Repositories/Api/CmsPage/CmsPageRepository.php
+1
-1
RoleRepository.php
app/Repositories/Api/Role/RoleRepository.php
+1
-1
PasswordResetRepository.php
app/Repositories/Api/User/PasswordResetRepository.php
+1
-1
UserRepository.php
app/Repositories/Api/User/UserRepository.php
+1
-1
PermissionRepository.php
...tories/Backend/Access/Permission/PermissionRepository.php
+1
-1
RoleRepository.php
app/Repositories/Backend/Access/Role/RoleRepository.php
+1
-1
UserRepository.php
app/Repositories/Backend/Access/User/UserRepository.php
+1
-1
BlogCategoriesRepository.php
...ories/Backend/BlogCategories/BlogCategoriesRepository.php
+1
-1
BlogTagsRepository.php
app/Repositories/Backend/BlogTags/BlogTagsRepository.php
+1
-1
BlogsRepository.php
app/Repositories/Backend/Blogs/BlogsRepository.php
+1
-1
EmailTemplatesRepository.php
...ories/Backend/EmailTemplates/EmailTemplatesRepository.php
+1
-1
FaqsRepository.php
app/Repositories/Backend/Faqs/FaqsRepository.php
+1
-1
PagesRepository.php
app/Repositories/Backend/Pages/PagesRepository.php
+1
-1
SettingsRepository.php
app/Repositories/Backend/Settings/SettingsRepository.php
+1
-1
CMSPagesRepository.php
app/Repositories/Frontend/CMSPages/CMSPagesRepository.php
+1
-1
No files found.
app/Http/Controllers/Backend/Access/User/UserController.php
View file @
de5ba46e
...
...
@@ -2,18 +2,19 @@
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\Http\Requests\Backend\Access\User\CreateUserRequest
;
use
App\Http\Requests\Backend\Access\User\DeleteUserRequest
;
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\ManageUserRequest
;
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\ManageUserRequest
;
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.
...
...
@@ -94,7 +95,6 @@ class UserController extends Controller
*/
public
function
edit
(
User
$user
,
EditUserRequest
$request
)
{
//@todo move queries in to repositery
$userPermissions
=
DB
::
table
(
'permission_user'
)
->
where
(
'user_id'
,
$user
->
id
)
->
pluck
(
'permission_id'
,
'permission_id'
)
->
toArray
();
$permissions
=
DB
::
table
(
'permissions'
)
->
pluck
(
'display_name'
,
'id'
)
->
toArray
();
ksort
(
$userPermissions
);
...
...
app/Models/Access/PasswordReset/PasswordReset.php
View file @
de5ba46e
...
...
@@ -2,12 +2,12 @@
namespace
App\Models\Access\PasswordReset
;
use
Illuminate\Database\Eloquent\
Model
;
use
App\Models\Base
Model
;
/**
* Password reset table model.
*/
class
PasswordReset
extends
Model
class
PasswordReset
extends
Base
Model
{
public
$timestamps
=
false
;
protected
$table
=
'password_resets'
;
...
...
app/Models/Access/Permission/Permission.php
View file @
de5ba46e
...
...
@@ -5,13 +5,13 @@ 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
Illuminate\Database\Eloquent\
Model
;
use
App\Models\Base
Model
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
/**
* Class Permission.
*/
class
Permission
extends
Model
class
Permission
extends
Base
Model
{
use
ModelTrait
,
SoftDeletes
,
...
...
app/Models/Access/Role/Role.php
View file @
de5ba46e
...
...
@@ -7,13 +7,13 @@ 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
Illuminate\Database\Eloquent\
Model
;
use
App\Models\Base
Model
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
/**
* Class Role.
*/
class
Role
extends
Model
class
Role
extends
Base
Model
{
use
RoleScope
,
ModelTrait
,
...
...
app/Models/Access/User/SocialLogin.php
View file @
de5ba46e
...
...
@@ -2,12 +2,12 @@
namespace
App\Models\Access\User
;
use
Illuminate\Database\Eloquent\
Model
;
use
App\Models\Base
Model
;
/**
* Class SocialLogin.
*/
class
SocialLogin
extends
Model
class
SocialLogin
extends
Base
Model
{
/**
* The database table used by the model.
...
...
app/Models/Access/User/User.php
View file @
de5ba46e
...
...
@@ -9,6 +9,7 @@ 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
0 → 100644
View file @
de5ba46e
<?php
namespace
App\Models
;
use
Illuminate\Database\Eloquent\Model
;
class
BaseModel
extends
Model
{
/**
* 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
*
* @param $collection
* @return array
*/
public
static
function
getItems
(
$collection
)
{
$items
=
array
();
foreach
(
$collection
as
$model
)
{
$items
[
$model
->
id
]
=
[
'id'
=>
$model
->
id
,
'name'
=>
$model
->
name
,
'model'
=>
$model
,
];
}
foreach
(
$items
as
$id
=>
$item
)
{
if
(
isset
(
static
::
$selectHTMLFormat
)
&&
static
::
$selectHTMLFormat
!==
''
)
{
$items
[
$item
[
'id'
]]
=
static
::
generateSelectName
(
$item
[
'model'
],
static
::
$selectHTMLFormat
);
}
else
{
$items
[
$item
[
'id'
]]
=
$item
[
'name'
];
}
}
return
$items
;
}
}
app/Models/BlogCategories/BlogCategory.php
View file @
de5ba46e
...
...
@@ -2,13 +2,13 @@
namespace
App\Models\BlogCategories
;
use
App\Models\BlogCategories\Traits\Attribute\BlogCategoryAttribute
;
use
App\Models\BlogCategories\Traits\Relationship\BlogCategoryRelationship
;
use
App\Models\BaseModel
;
use
App\Models\ModelTrait
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
use
App\Models\BlogCategories\Traits\Attribute\BlogCategoryAttribute
;
use
App\Models\BlogCategories\Traits\Relationship\BlogCategoryRelationship
;
class
BlogCategory
extends
Model
class
BlogCategory
extends
Base
Model
{
use
ModelTrait
,
SoftDeletes
,
...
...
app/Models/BlogMapCategories/BlogMapCategory.php
View file @
de5ba46e
...
...
@@ -2,9 +2,9 @@
namespace
App\Models\BlogMapCategories
;
use
Illuminate\Database\Eloquent\
Model
;
use
App\Models\Base
Model
;
class
BlogMapCategory
extends
Model
class
BlogMapCategory
extends
Base
Model
{
/**
* The database table used by the model.
...
...
app/Models/BlogMapTags/BlogMapTag.php
View file @
de5ba46e
...
...
@@ -2,9 +2,9 @@
namespace
App\Models\BlogMapTags
;
use
Illuminate\Database\Eloquent\
Model
;
use
App\Models\Base
Model
;
class
BlogMapTag
extends
Model
class
BlogMapTag
extends
Base
Model
{
/**
* The database table used by the model.
...
...
app/Models/BlogTags/BlogTag.php
View file @
de5ba46e
...
...
@@ -5,10 +5,10 @@ namespace App\Models\BlogTags;
use
App\Models\BlogTags\Traits\Attribute\BlogTagAttribute
;
use
App\Models\BlogTags\Traits\Relationship\BlogTagRelationship
;
use
App\Models\ModelTrait
;
use
Illuminate\Database\Eloquent\
Model
;
use
App\Models\Base
Model
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
class
BlogTag
extends
Model
class
BlogTag
extends
Base
Model
{
use
ModelTrait
,
SoftDeletes
,
...
...
app/Models/Blogs/Blog.php
View file @
de5ba46e
...
...
@@ -5,10 +5,10 @@ namespace App\Models\Blogs;
use
App\Models\Blogs\Traits\Attribute\BlogAttribute
;
use
App\Models\Blogs\Traits\Relationship\BlogRelationship
;
use
App\Models\ModelTrait
;
use
Illuminate\Database\Eloquent\
Model
;
use
App\Models\Base
Model
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
class
Blog
extends
Model
class
Blog
extends
Base
Model
{
use
ModelTrait
,
SoftDeletes
,
...
...
app/Models/Cities/City.php
View file @
de5ba46e
...
...
@@ -3,9 +3,9 @@
namespace
App\Models\Cities
;
use
App\Models\Cities\Traits\Relationship\CityRelationship
;
use
Illuminate\Database\Eloquent\
Model
;
use
App\Models\Base
Model
;
class
City
extends
Model
class
City
extends
Base
Model
{
use
CityRelationship
;
/**
...
...
app/Models/Countries/Country.php
View file @
de5ba46e
...
...
@@ -2,9 +2,9 @@
namespace
App\Models\Countries
;
use
Illuminate\Database\Eloquent\
Model
;
use
App\Models\Base
Model
;
class
Country
extends
Model
class
Country
extends
Base
Model
{
/**
* The database table used by the model.
...
...
app/Models/EmailTemplatePlaceholders/EmailTemplatePlaceholder.php
View file @
de5ba46e
...
...
@@ -2,9 +2,9 @@
namespace
App\Models\EmailTemplatePlaceholders
;
use
Illuminate\Database\Eloquent\
Model
;
use
App\Models\Base
Model
;
class
EmailTemplatePlaceholder
extends
Model
class
EmailTemplatePlaceholder
extends
Base
Model
{
/**
* The database table used by the model.
...
...
app/Models/EmailTemplateTypes/EmailTemplateType.php
View file @
de5ba46e
...
...
@@ -2,9 +2,9 @@
namespace
App\Models\EmailTemplateTypes
;
use
Illuminate\Database\Eloquent\
Model
;
use
App\Models\Base
Model
;
class
EmailTemplateType
extends
Model
class
EmailTemplateType
extends
Base
Model
{
/**
* The database table used by the model.
...
...
app/Models/EmailTemplates/EmailTemplate.php
View file @
de5ba46e
...
...
@@ -4,10 +4,10 @@ namespace App\Models\EmailTemplates;
use
App\Models\EmailTemplates\Traits\Attribute\EmailTemplateAttribute
;
use
App\Models\ModelTrait
;
use
Illuminate\Database\Eloquent\
Model
;
use
App\Models\Base
Model
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
class
EmailTemplate
extends
Model
class
EmailTemplate
extends
Base
Model
{
use
ModelTrait
,
SoftDeletes
,
...
...
app/Models/Faqs/Faq.php
View file @
de5ba46e
...
...
@@ -4,10 +4,10 @@ namespace App\Models\Faqs;
use
App\Models\Faqs\Traits\Attribute\FaqAttribute
;
use
App\Models\ModelTrait
;
use
Illuminate\Database\Eloquent\
Model
;
use
App\Models\Base
Model
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
class
Faq
extends
Model
class
Faq
extends
Base
Model
{
use
ModelTrait
,
SoftDeletes
,
...
...
app/Models/History/History.php
View file @
de5ba46e
...
...
@@ -3,13 +3,13 @@
namespace
App\Models\History
;
use
App\Models\History\Traits\Relationship\HistoryRelationship
;
use
Illuminate\Database\Eloquent\
Model
;
use
App\Models\Base
Model
;
/**
* Class History
* package App.
*/
class
History
extends
Model
class
History
extends
Base
Model
{
use
HistoryRelationship
;
...
...
app/Models/History/HistoryType.php
View file @
de5ba46e
...
...
@@ -2,13 +2,13 @@
namespace
App\Models\History
;
use
Illuminate\Database\Eloquent\
Model
;
use
App\Models\Base
Model
;
/**
* Class HistoryType
* package App.
*/
class
HistoryType
extends
Model
class
HistoryType
extends
Base
Model
{
/**
* The database table used by the model.
...
...
app/Models/Notification/Notification.php
View file @
de5ba46e
...
...
@@ -2,9 +2,9 @@
namespace
App\Models\Notification
;
use
Illuminate\Database\Eloquent\
Model
;
use
App\Models\Base
Model
;
class
Notification
extends
Model
class
Notification
extends
Base
Model
{
/**
* The database table used by the model.
...
...
app/Models/Page/Page.php
View file @
de5ba46e
...
...
@@ -2,12 +2,12 @@
namespace
App\Models\Page
;
use
App\Models\BaseModel
;
use
App\Models\ModelTrait
;
use
App\Models\Page\Traits\Attribute\PageAttribute
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
use
App\Models\Page\Traits\Attribute\PageAttribute
;
class
Page
extends
Model
class
Page
extends
Base
Model
{
use
ModelTrait
,
SoftDeletes
,
...
...
app/Models/Settings/Setting.php
View file @
de5ba46e
...
...
@@ -2,9 +2,9 @@
namespace
App\Models\Settings
;
use
Illuminate\Database\Eloquent\
Model
;
use
App\Models\Base
Model
;
class
Setting
extends
Model
class
Setting
extends
Base
Model
{
/**
* The database table used by the model.
...
...
app/Models/States/State.php
View file @
de5ba46e
...
...
@@ -3,9 +3,9 @@
namespace
App\Models\States
;
use
App\Models\States\Traits\Relationship\StateRelationship
;
use
Illuminate\Database\Eloquent\
Model
;
use
App\Models\Base
Model
;
class
State
extends
Model
class
State
extends
Base
Model
{
use
StateRelationship
;
/**
...
...
app/Models/System/Session.php
View file @
de5ba46e
...
...
@@ -2,13 +2,13 @@
namespace
App\Models\System
;
use
Illuminate\Database\Eloquent\
Model
;
use
App\Models\Base
Model
;
/**
* Class Session
* package App.
*/
class
Session
extends
Model
class
Session
extends
Base
Model
{
/**
* The database table used by the model.
...
...
app/Repositories/Api/CmsPage/CmsPageRepository.php
View file @
de5ba46e
...
...
@@ -5,7 +5,7 @@ namespace App\Repositories\Api\CmsPage;
use
App\Exceptions\GeneralException
;
use
App\Models\CMSPages\CMSPage
;
use
App\Repositories\BaseRepository
;
use
Illuminate\Database\Eloquent\
Model
;
use
App\Models\Base
Model
;
/**
* Class CmsPageRepository.
...
...
app/Repositories/Api/Role/RoleRepository.php
View file @
de5ba46e
...
...
@@ -4,7 +4,7 @@ namespace App\Repositories\Api\Role;
use
App\Models\Access\Role\Role
;
use
App\Repositories\BaseRepository
;
use
Illuminate\Database\Eloquent\
Model
;
use
App\Models\Base
Model
;
/**
* Class RoleRepository.
...
...
app/Repositories/Api/User/PasswordResetRepository.php
View file @
de5ba46e
...
...
@@ -4,7 +4,7 @@ namespace App\Repositories\Api\User;
use
App\Models\Access\PasswordReset\PasswordReset
;
use
App\Repositories\BaseRepository
;
use
Illuminate\Database\Eloquent\
Model
;
use
App\Models\Base
Model
;
/**
* Class PermissionRepository.
...
...
app/Repositories/Api/User/UserRepository.php
View file @
de5ba46e
...
...
@@ -6,7 +6,7 @@ use App\Mail\ConfirmAcoountMail;
use
App\Models\Access\User\User
;
use
App\Repositories\Backend\Access\Role\RoleRepository
;
use
App\Repositories\BaseRepository
;
use
Illuminate\Database\Eloquent\
Model
;
use
App\Models\Base
Model
;
/**
* Class PermissionRepository.
...
...
app/Repositories/Backend/Access/Permission/PermissionRepository.php
View file @
de5ba46e
...
...
@@ -9,7 +9,7 @@ use App\Exceptions\GeneralException;
use
App\Models\Access\Permission\Permission
;
use
App\Repositories\BaseRepository
;
use
DB
;
use
Illuminate\Database\Eloquent\
Model
;
use
App\Models\Base
Model
;
/**
* Class PermissionRepository.
...
...
app/Repositories/Backend/Access/Role/RoleRepository.php
View file @
de5ba46e
...
...
@@ -8,7 +8,7 @@ use App\Events\Backend\Access\Role\RoleUpdated;
use
App\Exceptions\GeneralException
;
use
App\Models\Access\Role\Role
;
use
App\Repositories\BaseRepository
;
use
Illuminate\Database\Eloquent\
Model
;
use
App\Models\Base
Model
;
use
Illuminate\Support\Facades\DB
;
/**
...
...
app/Repositories/Backend/Access/User/UserRepository.php
View file @
de5ba46e
...
...
@@ -14,7 +14,7 @@ use App\Exceptions\GeneralException;
use
App\Models\Access\User\User
;
use
App\Repositories\Backend\Access\Role\RoleRepository
;
use
App\Repositories\BaseRepository
;
use
Illuminate\Database\Eloquent\
Model
;
use
App\Models\Base
Model
;
use
Illuminate\Support\Facades\DB
;
use
Illuminate\Support\Facades\Hash
;
...
...
app/Repositories/Backend/BlogCategories/BlogCategoriesRepository.php
View file @
de5ba46e
...
...
@@ -9,7 +9,7 @@ use App\Exceptions\GeneralException;
use
App\Models\BlogCategories\BlogCategory
;
use
App\Repositories\BaseRepository
;
use
DB
;
use
Illuminate\Database\Eloquent\
Model
;
use
App\Models\Base
Model
;
/**
* Class BlogCategoriesRepository.
...
...
app/Repositories/Backend/BlogTags/BlogTagsRepository.php
View file @
de5ba46e
...
...
@@ -9,7 +9,7 @@ use App\Exceptions\GeneralException;
use
App\Models\BlogTags\BlogTag
;
use
App\Repositories\BaseRepository
;
use
DB
;
use
Illuminate\Database\Eloquent\
Model
;
use
App\Models\Base
Model
;
/**
* Class BlogTagsRepository.
...
...
app/Repositories/Backend/Blogs/BlogsRepository.php
View file @
de5ba46e
...
...
@@ -13,7 +13,7 @@ use App\Models\Blogs\Blog;
use
App\Repositories\BaseRepository
;
use
Carbon\Carbon
;
use
DB
;
use
Illuminate\Database\Eloquent\
Model
;
use
App\Models\Base
Model
;
/**
* Class BlogsRepository.
...
...
app/Repositories/Backend/EmailTemplates/EmailTemplatesRepository.php
View file @
de5ba46e
...
...
@@ -8,7 +8,7 @@ use App\Exceptions\GeneralException;
use
App\Models\EmailTemplates\EmailTemplate
;
use
App\Repositories\BaseRepository
;
use
DB
;
use
Illuminate\Database\Eloquent\
Model
;
use
App\Models\Base
Model
;
/**
* Class EmailTemplatesRepository.
...
...
app/Repositories/Backend/Faqs/FaqsRepository.php
View file @
de5ba46e
...
...
@@ -5,7 +5,7 @@ namespace App\Repositories\Backend\Faqs;
use
App\Exceptions\GeneralException
;
use
App\Models\Faqs\Faq
;
use
App\Repositories\BaseRepository
;
use
Illuminate\Database\Eloquent\
Model
;
use
App\Models\Base
Model
;
/**
* Class FaqsRepository.
...
...
app/Repositories/Backend/Pages/PagesRepository.php
View file @
de5ba46e
...
...
@@ -9,7 +9,7 @@ use App\Exceptions\GeneralException;
use
App\Models\Page\Page
;
use
App\Repositories\BaseRepository
;
use
DB
;
use
Illuminate\Database\Eloquent\
Model
;
use
App\Models\Base
Model
;
/**
* Class PagesRepository.
...
...
app/Repositories/Backend/Settings/SettingsRepository.php
View file @
de5ba46e
...
...
@@ -6,7 +6,7 @@ use App\Exceptions\GeneralException;
use
App\Models\Settings\Setting
;
use
App\Repositories\BaseRepository
;
use
DB
;
use
Illuminate\Database\Eloquent\
Model
;
use
App\Models\Base
Model
;
/**
* Class SettingsRepository.
...
...
app/Repositories/Frontend/CMSPages/CMSPagesRepository.php
View file @
de5ba46e
...
...
@@ -5,7 +5,7 @@ namespace App\Repositories\Frontend\CMSPages;
use
App\Exceptions\GeneralException
;
use
App\Models\CMSPages\CMSPage
;
use
App\Repositories\BaseRepository
;
use
Illuminate\Database\Eloquent\
Model
;
use
App\Models\Base
Model
;
/**
* 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