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
a4956390
Unverified
Commit
a4956390
authored
Nov 01, 2017
by
Viral Solani
Committed by
GitHub
Nov 01, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #18 from viralsolani/analysis-8KJaDA
Apply fixes from StyleCI
parents
0e316be3
ade26d19
Changes
49
Hide whitespace changes
Inline
Side-by-side
Showing
49 changed files
with
489 additions
and
488 deletions
+489
-488
BlogsController.php
app/Http/Controllers/Backend/Blogs/BlogsController.php
+1
-1
ResetPasswordController.php
...ttp/Controllers/Frontend/Auth/ResetPasswordController.php
+3
-3
VerifyJWTToken.php
app/Http/Middleware/VerifyJWTToken.php
+1
-1
StoreUserRequest.php
app/Http/Requests/Backend/Access/User/StoreUserRequest.php
+8
-8
UpdateUserRequest.php
app/Http/Requests/Backend/Access/User/UpdateUserRequest.php
+7
-7
StoreFaqsRequest.php
app/Http/Requests/Backend/Faqs/StoreFaqsRequest.php
+5
-5
UpdateFaqsRequest.php
app/Http/Requests/Backend/Faqs/UpdateFaqsRequest.php
+5
-5
StoreModuleRequest.php
app/Http/Requests/Backend/Modules/StoreModuleRequest.php
+5
-5
UpdateSettingsRequest.php
app/Http/Requests/Backend/Settings/UpdateSettingsRequest.php
+6
-6
RegisterRequest.php
app/Http/Requests/Frontend/Auth/RegisterRequest.php
+10
-10
UpdateProfileRequest.php
app/Http/Requests/Frontend/User/UpdateProfileRequest.php
+7
-7
Generator.php
app/Http/Utilities/Generator.php
+23
-23
Notification.php
app/Http/Utilities/Notification.php
+1
-1
SendEmail.php
app/Http/Utilities/SendEmail.php
+1
-1
Permission.php
app/Models/Access/Permission/Permission.php
+2
-2
Role.php
app/Models/Access/Role/Role.php
+4
-4
User.php
app/Models/Access/User/User.php
+6
-6
BlogCategory.php
app/Models/BlogCategories/BlogCategory.php
+2
-2
BlogCategoryAttribute.php
...BlogCategories/Traits/Attribute/BlogCategoryAttribute.php
+1
-1
BlogTag.php
app/Models/BlogTags/BlogTag.php
+2
-2
Blog.php
app/Models/Blogs/Blog.php
+2
-2
CMSPage.php
app/Models/CMSPages/CMSPage.php
+1
-1
EmailTemplate.php
app/Models/EmailTemplates/EmailTemplate.php
+1
-1
Faq.php
app/Models/Faqs/Faq.php
+1
-1
Menu.php
app/Models/Menu/Menu.php
+1
-1
ModelTrait.php
app/Models/ModelTrait.php
+4
-3
PasswordResetRepository.php
app/Repositories/Api/User/PasswordResetRepository.php
+1
-1
UserRepository.php
app/Repositories/Api/User/UserRepository.php
+5
-5
ModuleRepository.php
app/Repositories/Backend/Module/ModuleRepository.php
+4
-4
UserRepository.php
app/Repositories/Frontend/Access/User/UserRepository.php
+2
-2
api_validation.php
config/api_validation.php
+8
-8
datatables.php
config/datatables.php
+13
-13
gravatar.php
config/gravatar.php
+1
-1
log-viewer.php
config/log-viewer.php
+13
-13
no-captcha.php
config/no-captcha.php
+1
-1
DisableForeignKeys.php
database/DisableForeignKeys.php
+1
-1
EmailTemplatePlaceholderTableSeeder.php
database/seeds/EmailTemplatePlaceholderTableSeeder.php
+33
-33
EmailTemplateTableSeeder.php
database/seeds/EmailTemplateTableSeeder.php
+36
-36
EmailTemplateTypeTableSeeder.php
database/seeds/EmailTemplateTypeTableSeeder.php
+12
-12
MenuTableSeeder.php
database/seeds/MenuTableSeeder.php
+6
-6
ModulesTableSeeder.php
database/seeds/ModulesTableSeeder.php
+70
-70
SettingsTableSeeder.php
database/seeds/SettingsTableSeeder.php
+1
-1
alerts.php
resources/lang/en/alerts.php
+8
-8
buttons.php
resources/lang/en/buttons.php
+14
-14
exceptions.php
resources/lang/en/exceptions.php
+36
-36
labels.php
resources/lang/en/labels.php
+55
-55
validation.php
resources/lang/en/validation.php
+53
-53
Access.php
routes/Backend/Access.php
+3
-3
Search.php
routes/Backend/Search.php
+3
-3
No files found.
app/Http/Controllers/Backend/Blogs/BlogsController.php
View file @
a4956390
...
...
@@ -155,7 +155,7 @@ class BlogsController extends Controller
if
(
is_numeric
(
$tag
))
{
$tags_array
[]
=
$tag
;
}
else
{
$newTag
=
BlogTag
::
create
([
'name'
=>
$tag
,
'status'
=>
1
,
'created_by'
=>
1
]);
$newTag
=
BlogTag
::
create
([
'name'
=>
$tag
,
'status'
=>
1
,
'created_by'
=>
1
]);
$tags_array
[]
=
$newTag
->
id
;
}
}
...
...
app/Http/Controllers/Frontend/Auth/ResetPasswordController.php
View file @
a4956390
...
...
@@ -63,9 +63,9 @@ class ResetPasswordController extends Controller
protected
function
rules
()
{
return
[
'token'
=>
'required'
,
'email'
=>
'required|email'
,
'password'
=>
'required|min:8|confirmed|regex:"^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).{8,}$"'
,
'token'
=>
'required'
,
'email'
=>
'required|email'
,
'password'
=>
'required|min:8|confirmed|regex:"^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).{8,}$"'
,
];
}
...
...
app/Http/Middleware/VerifyJWTToken.php
View file @
a4956390
...
...
@@ -26,7 +26,7 @@ class VerifyJWTToken
}
elseif
(
$e
instanceof
\Tymon\JWTAuth\Exceptions\TokenInvalidException
)
{
return
response
()
->
json
([
'token_invalid'
],
$e
->
getStatusCode
());
}
else
{
return
response
()
->
json
([
'error'
=>
'Token is required'
]);
return
response
()
->
json
([
'error'
=>
'Token is required'
]);
}
}
...
...
app/Http/Requests/Backend/Access/User/StoreUserRequest.php
View file @
a4956390
...
...
@@ -28,14 +28,14 @@ class StoreUserRequest extends Request
public
function
rules
()
{
return
[
'first_name'
=>
'required|max:255'
,
'last_name'
=>
'required|max:255'
,
'email'
=>
[
'required'
,
'email'
,
'max:255'
,
Rule
::
unique
(
'users'
)],
'password'
=>
'required|min:6|confirmed'
,
'state_id'
=>
'required'
,
'city_id'
=>
'required'
,
'zip_code'
=>
'required|regex:/^[0-9]+$/'
,
'ssn'
=>
'required|regex:/^[0-9]+$/|max:9|min:9'
,
'first_name'
=>
'required|max:255'
,
'last_name'
=>
'required|max:255'
,
'email'
=>
[
'required'
,
'email'
,
'max:255'
,
Rule
::
unique
(
'users'
)],
'password'
=>
'required|min:6|confirmed'
,
'state_id'
=>
'required'
,
'city_id'
=>
'required'
,
'zip_code'
=>
'required|regex:/^[0-9]+$/'
,
'ssn'
=>
'required|regex:/^[0-9]+$/|max:9|min:9'
,
];
}
...
...
app/Http/Requests/Backend/Access/User/UpdateUserRequest.php
View file @
a4956390
...
...
@@ -27,13 +27,13 @@ class UpdateUserRequest extends Request
public
function
rules
()
{
return
[
'email'
=>
'required|email'
,
'first_name'
=>
'required'
,
'last_name'
=>
'required'
,
'state_id'
=>
'required'
,
'city_id'
=>
'required'
,
'zip_code'
=>
'required|regex:/^[0-9]+$/'
,
'ssn'
=>
'required|regex:/^[0-9]+$/|max:9|min:9'
,
'email'
=>
'required|email'
,
'first_name'
=>
'required'
,
'last_name'
=>
'required'
,
'state_id'
=>
'required'
,
'city_id'
=>
'required'
,
'zip_code'
=>
'required|regex:/^[0-9]+$/'
,
'ssn'
=>
'required|regex:/^[0-9]+$/|max:9|min:9'
,
];
}
...
...
app/Http/Requests/Backend/Faqs/StoreFaqsRequest.php
View file @
a4956390
...
...
@@ -24,8 +24,8 @@ class StoreFaqsRequest extends FormRequest
public
function
rules
()
{
return
[
'question'
=>
'required|max:191'
,
'answer'
=>
'required'
,
'question'
=>
'required|max:191'
,
'answer'
=>
'required'
,
];
}
...
...
@@ -37,9 +37,9 @@ class StoreFaqsRequest extends FormRequest
public
function
messages
()
{
return
[
'question.required'
=>
'Question field is required.'
,
'question.max'
=>
'Question may not be grater than 191 character.'
,
'answer.required'
=>
'Answer field is required.'
,
'question.required'
=>
'Question field is required.'
,
'question.max'
=>
'Question may not be grater than 191 character.'
,
'answer.required'
=>
'Answer field is required.'
,
];
}
}
app/Http/Requests/Backend/Faqs/UpdateFaqsRequest.php
View file @
a4956390
...
...
@@ -24,8 +24,8 @@ class UpdateFaqsRequest extends FormRequest
public
function
rules
()
{
return
[
'question'
=>
'required|max:191'
,
'answer'
=>
'required'
,
'question'
=>
'required|max:191'
,
'answer'
=>
'required'
,
];
}
...
...
@@ -37,9 +37,9 @@ class UpdateFaqsRequest extends FormRequest
public
function
messages
()
{
return
[
'question.required'
=>
'Question field is required.'
,
'question.max'
=>
'Question may not be grater than 191 character.'
,
'answer.required'
=>
'Answer field is required.'
,
'question.required'
=>
'Question field is required.'
,
'question.max'
=>
'Question may not be grater than 191 character.'
,
'answer.required'
=>
'Answer field is required.'
,
];
}
}
app/Http/Requests/Backend/Modules/StoreModuleRequest.php
View file @
a4956390
...
...
@@ -42,11 +42,11 @@ class StoreModuleRequest extends Request
public
function
messages
()
{
return
[
'name.required'
=>
'Module Name field is required to be filled'
,
'name.max'
=>
'Module Name should not exceed 191 characters'
,
'name.unique'
=>
'Module Name is already taken'
,
'directory_name.required'
=>
'Directory Name field is required to be filled'
,
'model_name.required'
=>
'Model Name field is required to be filled'
,
'name.required'
=>
'Module Name field is required to be filled'
,
'name.max'
=>
'Module Name should not exceed 191 characters'
,
'name.unique'
=>
'Module Name is already taken'
,
'directory_name.required'
=>
'Directory Name field is required to be filled'
,
'model_name.required'
=>
'Model Name field is required to be filled'
,
];
}
}
app/Http/Requests/Backend/Settings/UpdateSettingsRequest.php
View file @
a4956390
...
...
@@ -57,12 +57,12 @@ class UpdateSettingsRequest extends Request
public
function
messages
()
{
return
[
'logo.dimensions'
=>
'Invalid logo - should be minimum 226*48'
,
'favicon.dimensions'
=>
'Invalid icon - should be 16*16'
,
'logo.required'
=>
'The logo field is required in seo settings.'
,
'favicon.required'
=>
'The favicon field is required in seo settings.'
,
'from_name.required'
=>
'The from name field is required in mail settings.'
,
'from_email.required'
=>
'The from email field is required in mail settings.'
,
'logo.dimensions'
=>
'Invalid logo - should be minimum 226*48'
,
'favicon.dimensions'
=>
'Invalid icon - should be 16*16'
,
'logo.required'
=>
'The logo field is required in seo settings.'
,
'favicon.required'
=>
'The favicon field is required in seo settings.'
,
'from_name.required'
=>
'The from name field is required in mail settings.'
,
'from_email.required'
=>
'The from email field is required in mail settings.'
,
];
}
}
app/Http/Requests/Frontend/Auth/RegisterRequest.php
View file @
a4956390
...
...
@@ -28,16 +28,16 @@ class RegisterRequest extends Request
public
function
rules
()
{
return
[
'first_name'
=>
'required|max:255'
,
'last_name'
=>
'required|max:255'
,
'email'
=>
[
'required'
,
'email'
,
'max:255'
,
Rule
::
unique
(
'users'
)],
'password'
=>
'required|min:8|confirmed|regex:"^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).{8,}$"'
,
'state_id'
=>
'required'
,
'city_id'
=>
'required'
,
'zip_code'
=>
'required'
,
'ssn'
=>
'required'
,
'is_term_accept'
=>
'required'
,
'g-recaptcha-response'
=>
'required_if:captcha_status,true|captcha'
,
'first_name'
=>
'required|max:255'
,
'last_name'
=>
'required|max:255'
,
'email'
=>
[
'required'
,
'email'
,
'max:255'
,
Rule
::
unique
(
'users'
)],
'password'
=>
'required|min:8|confirmed|regex:"^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).{8,}$"'
,
'state_id'
=>
'required'
,
'city_id'
=>
'required'
,
'zip_code'
=>
'required'
,
'ssn'
=>
'required'
,
'is_term_accept'
=>
'required'
,
'g-recaptcha-response'
=>
'required_if:captcha_status,true|captcha'
,
];
}
...
...
app/Http/Requests/Frontend/User/UpdateProfileRequest.php
View file @
a4956390
...
...
@@ -28,13 +28,13 @@ class UpdateProfileRequest extends Request
public
function
rules
()
{
return
[
'first_name'
=>
'required|max:255'
,
'last_name'
=>
'required|max:255'
,
'email'
=>
[
'sometimes'
,
'required'
,
'email'
,
'max:255'
,
Rule
::
unique
(
'users'
)],
'state_id'
=>
'required'
,
'city_id'
=>
'required'
,
'zip_code'
=>
'required'
,
'ssn'
=>
'required'
,
'first_name'
=>
'required|max:255'
,
'last_name'
=>
'required|max:255'
,
'email'
=>
[
'sometimes'
,
'required'
,
'email'
,
'max:255'
,
Rule
::
unique
(
'users'
)],
'state_id'
=>
'required'
,
'city_id'
=>
'required'
,
'zip_code'
=>
'required'
,
'ssn'
=>
'required'
,
];
}
}
app/Http/Utilities/Generator.php
View file @
a4956390
...
...
@@ -374,7 +374,7 @@ class Generator
'editPermission'
=>
$this
->
edit_permission
,
'editRoute'
=>
$this
->
edit_route
,
'deletePermission'
=>
$this
->
delete_permission
,
'deleteRoute'
=>
$this
->
delete_route
'deleteRoute'
=>
$this
->
delete_route
,
],
lcfirst
(
$this
->
attribute_namespace
));
//Generate Relationship File
...
...
@@ -574,13 +574,13 @@ class Generator
$this
->
createDirectory
(
$this
->
getBasePath
(
$this
->
table_controller_namespace
,
true
));
//replacements to be done in table controller stub
$replacements
=
[
'DummyNamespace'
=>
ucfirst
(
$this
->
removeFileNameFromEndOfNamespace
(
$this
->
table_controller_namespace
)),
'DummyRepositoryNamespace'
=>
$this
->
repo_namespace
,
'DummyManageRequestNamespace'
=>
$this
->
manage_request_namespace
,
'DummyTableController'
=>
$this
->
table_controller
,
'dummy_repository'
=>
$this
->
repository
,
'dummy_small_repo_name'
=>
strtolower
(
$this
->
model
),
'dummy_manage_request_name'
=>
$this
->
manage_request
,
'DummyNamespace'
=>
ucfirst
(
$this
->
removeFileNameFromEndOfNamespace
(
$this
->
table_controller_namespace
)),
'DummyRepositoryNamespace'
=>
$this
->
repo_namespace
,
'DummyManageRequestNamespace'
=>
$this
->
manage_request_namespace
,
'DummyTableController'
=>
$this
->
table_controller
,
'dummy_repository'
=>
$this
->
repository
,
'dummy_small_repo_name'
=>
strtolower
(
$this
->
model
),
'dummy_manage_request_name'
=>
$this
->
manage_request
,
];
//generating the file
$this
->
generateFile
(
'TableController'
,
$replacements
,
lcfirst
(
$this
->
table_controller_namespace
));
...
...
@@ -661,14 +661,14 @@ class Generator
$this
->
createDirectory
(
$path
);
//Labels file
$labels
=
[
'create'
=>
"Create
$model_singular
"
,
'edit'
=>
"Edit
$model_singular
"
,
'management'
=>
"
$model_singular
Management"
,
'title'
=>
"
$model_plural_capital
"
,
'table'
=>
[
'id'
=>
'Id'
,
'createdat'
=>
'Created At'
,
'create'
=>
"Create
$model_singular
"
,
'edit'
=>
"Edit
$model_singular
"
,
'management'
=>
"
$model_singular
Management"
,
'title'
=>
"
$model_plural_capital
"
,
'table'
=>
[
'id'
=>
'Id'
,
'createdat'
=>
'Created At'
,
],
];
//Pushing values to labels
...
...
@@ -685,11 +685,11 @@ class Generator
add_key_value_in_file
(
$path
.
'/menus.php'
,
[
$model_plural
=>
$menus
],
'backend'
);
//Exceptions file
$exceptions
=
[
'already_exists'
=>
"That
$model_singular
already exists. Please choose a different name."
,
'create_error'
=>
"There was a problem creating this
$model_singular
. Please try again."
,
'delete_error'
=>
"There was a problem deleting this
$model_singular
. Please try again."
,
'not_found'
=>
"That
$model_singular
does not exist."
,
'update_error'
=>
"There was a problem updating this
$model_singular
. Please try again."
,
'already_exists'
=>
"That
$model_singular
already exists. Please choose a different name."
,
'create_error'
=>
"There was a problem creating this
$model_singular
. Please try again."
,
'delete_error'
=>
"There was a problem deleting this
$model_singular
. Please try again."
,
'not_found'
=>
"That
$model_singular
does not exist."
,
'update_error'
=>
"There was a problem updating this
$model_singular
. Please try again."
,
];
//Alerts File
$alerts
=
[
...
...
@@ -800,8 +800,8 @@ class Generator
}
else
{
//Calling Artisan command to create table
Artisan
::
call
(
'make:migration'
,
[
'name'
=>
'create_'
.
$table
.
'_table'
,
'--create'
=>
$table
,
'name'
=>
'create_'
.
$table
.
'_table'
,
'--create'
=>
$table
,
]);
return
Artisan
::
output
();
...
...
app/Http/Utilities/Notification.php
View file @
a4956390
...
...
@@ -101,7 +101,7 @@ abstract class Notification
*/
public
function
setOptions
(
array
$options
)
{
foreach
(
$options
as
$optionKey
=>
$option
)
{
foreach
(
$options
as
$optionKey
=>
$option
)
{
$methodName
=
'set'
.
ucfirst
(
$optionKey
);
$propertyName
=
'_'
.
$optionKey
;
if
(
method_exists
(
$methodName
,
$this
))
{
...
...
app/Http/Utilities/SendEmail.php
View file @
a4956390
...
...
@@ -91,7 +91,7 @@ class SendEmail
break
;
}
// Send email code
$message
=
[
'data'
=>
$content
];
$message
=
[
'data'
=>
$content
];
return
Mail
::
send
([
'html'
=>
'emails.template'
],
$message
,
function
(
$message
)
use
(
$data
)
{
$message
->
to
(
$data
[
'to'
]);
...
...
app/Models/Access/Permission/Permission.php
View file @
a4956390
...
...
@@ -2,11 +2,11 @@
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
Illuminate\Database\Eloquent\SoftDeletes
;
use
App\Models\Access\Permission\Traits\Attribute\PermissionAttribute
;
use
App\Models\Access\Permission\Traits\Relationship\PermissionRelationship
;
/**
* Class Permission.
...
...
app/Models/Access/Role/Role.php
View file @
a4956390
...
...
@@ -2,13 +2,13 @@
namespace
App\Models\Access\Role
;
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
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
use
App\Models\Access\Role\Traits\RoleAccess
;
use
App\Models\Access\Role\Traits\Scope\RoleScope
;
use
App\Models\Access\Role\Traits\Attribute\RoleAttribute
;
use
App\Models\Access\Role\Traits\Relationship\RoleRelationship
;
/**
* Class Role.
...
...
app/Models/Access/User/User.php
View file @
a4956390
...
...
@@ -2,14 +2,14 @@
namespace
App\Models\Access\User
;
use
Illuminate\Notifications\Notifiable
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
use
App\Models\Access\User\Traits\UserAccess
;
use
App\Models\Access\User\Traits\Scope\UserScope
;
use
Illuminate\Foundation\Auth\User
as
Authenticatable
;
use
App\Models\Access\User\Traits\UserSendPasswordReset
;
use
App\Models\Access\User\Traits\Attribute\UserAttribute
;
use
App\Models\Access\User\Traits\Relationship\UserRelationship
;
use
App\Models\Access\User\Traits\Scope\UserScope
;
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\Notifications\Notifiable
;
/**
* Class User.
...
...
app/Models/BlogCategories/BlogCategory.php
View file @
a4956390
...
...
@@ -2,11 +2,11 @@
namespace
App\Models\BlogCategories
;
use
App\Models\BlogCategories\Traits\Attribute\BlogCategoryAttribute
;
use
App\Models\BlogCategories\Traits\Relationship\BlogCategoryRelationship
;
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
{
...
...
app/Models/BlogCategories/Traits/Attribute/BlogCategoryAttribute.php
View file @
a4956390
...
...
@@ -7,7 +7,7 @@ namespace App\Models\BlogCategories\Traits\Attribute;
*/
trait
BlogCategoryAttribute
{
/**
/**
* @return string
*/
public
function
getActionButtonsAttribute
()
...
...
app/Models/BlogTags/BlogTag.php
View file @
a4956390
...
...
@@ -2,11 +2,11 @@
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
Illuminate\Database\Eloquent\SoftDeletes
;
use
App\Models\BlogTags\Traits\Attribute\BlogTagAttribute
;
use
App\Models\BlogTags\Traits\Relationship\BlogTagRelationship
;
class
BlogTag
extends
Model
{
...
...
app/Models/Blogs/Blog.php
View file @
a4956390
...
...
@@ -2,11 +2,11 @@
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
Illuminate\Database\Eloquent\SoftDeletes
;
use
App\Models\Blogs\Traits\Attribute\BlogAttribute
;
use
App\Models\Blogs\Traits\Relationship\BlogRelationship
;
class
Blog
extends
Model
{
...
...
app/Models/CMSPages/CMSPage.php
View file @
a4956390
...
...
@@ -2,10 +2,10 @@
namespace
App\Models\CMSPages
;
use
App\Models\CMSPages\Traits\Attribute\CMSPageAttribute
;
use
App\Models\ModelTrait
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
use
App\Models\CMSPages\Traits\Attribute\CMSPageAttribute
;
class
CMSPage
extends
Model
{
...
...
app/Models/EmailTemplates/EmailTemplate.php
View file @
a4956390
...
...
@@ -2,10 +2,10 @@
namespace
App\Models\EmailTemplates
;
use
App\Models\EmailTemplates\Traits\Attribute\EmailTemplateAttribute
;
use
App\Models\ModelTrait
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
use
App\Models\EmailTemplates\Traits\Attribute\EmailTemplateAttribute
;
class
EmailTemplate
extends
Model
{
...
...
app/Models/Faqs/Faq.php
View file @
a4956390
...
...
@@ -2,10 +2,10 @@
namespace
App\Models\Faqs
;
use
App\Models\Faqs\Traits\Attribute\FaqAttribute
;
use
App\Models\ModelTrait
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
use
App\Models\Faqs\Traits\Attribute\FaqAttribute
;
class
Faq
extends
Model
{
...
...
app/Models/Menu/Menu.php
View file @
a4956390
...
...
@@ -2,10 +2,10 @@
namespace
App\Models\Menu
;
use
App\Models\Menu\Traits\Attribute\MenuAttribute
;
use
App\Models\ModelTrait
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
use
App\Models\Menu\Traits\Attribute\MenuAttribute
;
class
Menu
extends
Model
{
...
...
app/Models/ModelTrait.php
View file @
a4956390
...
...
@@ -2,8 +2,9 @@
namespace
App\Models
;
trait
ModelTrait
{
/**
trait
ModelTrait
{
/**
* @return string
*/
public
function
getEditButtonAttribute
(
$permission
,
$route
)
...
...
@@ -30,4 +31,4 @@ trait ModelTrait {
</a>'
;
}
}
}
\ No newline at end of file
}
app/Repositories/Api/User/PasswordResetRepository.php
View file @
a4956390
...
...
@@ -53,7 +53,7 @@ class PasswordResetRepository extends BaseRepository
*/
public
function
update
(
$attributes
)
{
$token
=
[
'token'
=>
$attributes
[
'token'
]];
$token
=
[
'token'
=>
$attributes
[
'token'
]];
return
$this
->
query
()
->
where
(
'email'
,
$attributes
[
'email'
])
->
update
(
$attributes
);
}
...
...
app/Repositories/Api/User/UserRepository.php
View file @
a4956390
...
...
@@ -57,7 +57,7 @@ class UserRepository extends BaseRepository
*/
public
function
resetpassword
(
$data
)
{
$pass
=
[
'password'
=>
bcrypt
(
$data
[
'password'
])];
$pass
=
[
'password'
=>
bcrypt
(
$data
[
'password'
])];
return
$this
->
query
()
->
where
(
'email'
,
$data
[
'email'
])
->
update
(
$pass
);
}
...
...
@@ -72,13 +72,13 @@ class UserRepository extends BaseRepository
return
$this
->
query
()
->
select
(
'first_name'
,
'last_name'
,
'email'
,
'address'
,
'country_id'
,
'state_id'
,
'city_id'
,
'zip_code'
,
'ssn'
,
'status'
,
'created_at'
,
'updated_at'
)
->
where
(
'id'
,
$id
)
->
with
([
'country'
=>
function
(
$query
)
{
->
with
([
'country'
=>
function
(
$query
)
{
$query
->
select
(
'id'
,
'country'
);
}])
->
with
([
'state'
=>
function
(
$query
)
{
->
with
([
'state'
=>
function
(
$query
)
{
$query
->
select
(
'id'
,
'state'
);
}])
->
with
([
'city'
=>
function
(
$query
)
{
->
with
([
'city'
=>
function
(
$query
)
{
$query
->
select
(
'id'
,
'city'
);
}])
->
get
()
...
...
@@ -150,7 +150,7 @@ class UserRepository extends BaseRepository
**/
public
function
confirmUser
(
$email
)
{
$confirmed
=
[
'confirmed'
=>
'1'
];
$confirmed
=
[
'confirmed'
=>
'1'
];
return
$this
->
query
()
->
where
(
'email'
,
$email
)
->
update
(
$confirmed
);
}
...
...
app/Repositories/Backend/Module/ModuleRepository.php
View file @
a4956390
...
...
@@ -66,10 +66,10 @@ class ModuleRepository extends BaseRepository
}
$mod
=
[
'view_permission_id'
=>
"view-
$model
-permission"
,
'name'
=>
$input
[
'name'
],
'url'
=>
'admin.'
.
str_plural
(
$model
)
.
'.index'
,
'created_by'
=>
access
()
->
user
()
->
id
,
'view_permission_id'
=>
"view-
$model
-permission"
,
'name'
=>
$input
[
'name'
],
'url'
=>
'admin.'
.
str_plural
(
$model
)
.
'.index'
,
'created_by'
=>
access
()
->
user
()
->
id
,
];
$create
=
Module
::
create
(
$mod
);
...
...
app/Repositories/Frontend/Access/User/UserRepository.php
View file @
a4956390
...
...
@@ -181,8 +181,8 @@ class UserRepository extends BaseRepository
}
else
{
// Update the users information, token and avatar can be updated.
$user
->
providers
()
->
update
([
'token'
=>
$data
->
token
,
'avatar'
=>
$data
->
avatar
,
'token'
=>
$data
->
token
,
'avatar'
=>
$data
->
avatar
,
]);
}
...
...
config/api_validation.php
View file @
a4956390
...
...
@@ -28,14 +28,14 @@ return [
'register'
=>
[
'rules'
=>
[
'first_name'
=>
'required|max:255'
,
'last_name'
=>
'required|max:255'
,
'email'
=>
'required|email|max:255|unique:users'
,
'password'
=>
'required|min:6|confirmed'
,
'state_id'
=>
'required'
,
'city_id'
=>
'required'
,
'zip_code'
=>
'required'
,
'ssn'
=>
'required'
,
'first_name'
=>
'required|max:255'
,
'last_name'
=>
'required|max:255'
,
'email'
=>
'required|email|max:255|unique:users'
,
'password'
=>
'required|min:6|confirmed'
,
'state_id'
=>
'required'
,
'city_id'
=>
'required'
,
'zip_code'
=>
'required'
,
'ssn'
=>
'required'
,
],
],
...
...
config/datatables.php
View file @
a4956390
...
...
@@ -4,17 +4,17 @@ return [
/*
* DataTables search options.
*/
'search'
=>
[
'search'
=>
[
/*
* Smart search will enclose search keyword with wildcard string "%keyword%".
* SQL: column LIKE "%keyword%"
*/
'smart'
=>
true
,
'smart'
=>
true
,
/*
* Multi-term search will explode search keyword using spaces resulting into multiple term search.
*/
'multi_term'
=>
true
,
'multi_term'
=>
true
,
/*
* Case insensitive will search the keyword in lower case format.
...
...
@@ -26,19 +26,19 @@ return [
* Wild card will add "%" in between every characters of the keyword.
* SQL: column LIKE "%k%e%y%w%o%r%d%"
*/
'use_wildcards'
=>
false
,
'use_wildcards'
=>
false
,
],
/*
* DataTables internal index id response column name.
*/
'index_column'
=>
'DT_Row_Index'
,
'index_column'
=>
'DT_Row_Index'
,
/*
* List of available builders for DataTables.
* This is where you can register your custom dataTables builder.
*/
'engines'
=>
[
'engines'
=>
[
'eloquent'
=>
\Yajra\DataTables\EloquentDataTable
::
class
,
'query'
=>
\Yajra\DataTables\QueryDataTable
::
class
,
'collection'
=>
\Yajra\DataTables\CollectionDataTable
::
class
,
...
...
@@ -47,7 +47,7 @@ return [
/*
* DataTables accepted builder to engine mapping.
*/
'builders'
=>
[
'builders'
=>
[
Illuminate\Database\Eloquent\Relations\Relation
::
class
=>
'eloquent'
,
Illuminate\Database\Eloquent\Builder
::
class
=>
'eloquent'
,
Illuminate\Database\Query\Builder
::
class
=>
'query'
,
...
...
@@ -67,28 +67,28 @@ return [
* 'throw' - Throws a \Yajra\DataTables\Exceptions\Exception. Use your custom error handler if needed.
* 'custom message' - Any friendly message to be displayed to the user. You can also use translation key.
*/
'error'
=>
env
(
'DATATABLES_ERROR'
,
null
),
'error'
=>
env
(
'DATATABLES_ERROR'
,
null
),
/*
* Default columns definition of dataTable utility functions.
*/
'columns'
=>
[
'columns'
=>
[
/*
* List of columns hidden/removed on json response.
*/
'excess'
=>
[
'rn'
,
'row_num'
],
'excess'
=>
[
'rn'
,
'row_num'
],
/*
* List of columns to be escaped. If set to *, all columns are escape.
* Note: You can set the value to empty array to disable XSS protection.
*/
'escape'
=>
'*'
,
'escape'
=>
'*'
,
/*
* List of columns that are allowed to display html content.
* Note: Adding columns to list will make us available to XSS attacks.
*/
'raw'
=>
[
'action'
],
'raw'
=>
[
'action'
],
/*
* List of columns are are forbidden from being searched/sorted.
...
...
@@ -105,7 +105,7 @@ return [
/*
* JsonResponse header and options config.
*/
'json'
=>
[
'json'
=>
[
'header'
=>
[],
'options'
=>
0
,
],
...
...
config/gravatar.php
View file @
a4956390
...
...
@@ -6,7 +6,7 @@ return [
// By default, images are presented at 80px by 80px if no size parameter is supplied.
// You may request a specific image size, which will be dynamically delivered from Gravatar
// by passing a single pixel dimension (since the images are square):
'size'
=>
80
,
'size'
=>
80
,
// the fallback image, can be a string or a url
// for more info, visit: http://en.gravatar.com/site/implement/images/#default-image
...
...
config/log-viewer.php
View file @
a4956390
...
...
@@ -7,13 +7,13 @@ return [
| Log files storage path
| ------------------------------------------------------------------------------------------------
*/
'storage-path'
=>
storage_path
(
'logs'
),
'storage-path'
=>
storage_path
(
'logs'
),
/* ------------------------------------------------------------------------------------------------
| Log files pattern
| ------------------------------------------------------------------------------------------------
*/
'pattern'
=>
[
'pattern'
=>
[
'prefix'
=>
Filesystem
::
PATTERN_PREFIX
,
// 'laravel-'
'date'
=>
Filesystem
::
PATTERN_DATE
,
// '[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]'
'extension'
=>
Filesystem
::
PATTERN_EXTENSION
,
// '.log'
...
...
@@ -26,17 +26,17 @@ return [
| 'auto', 'ar', 'de', 'en', 'es', 'fa', 'fr', 'hu', 'hy', 'it', 'ko', 'nl', 'pl', 'pt_BR', 'ro', 'ru',
| 'sv', 'th', 'tr', 'zh-TW', 'zh'
*/
'locale'
=>
'auto'
,
'locale'
=>
'auto'
,
/* ------------------------------------------------------------------------------------------------
| Route settings
| ------------------------------------------------------------------------------------------------
*/
'route'
=>
[
'enabled'
=>
true
,
'route'
=>
[
'enabled'
=>
true
,
'attributes'
=>
[
'prefix'
=>
'admin/log-viewer'
,
'prefix'
=>
'admin/log-viewer'
,
'middleware'
=>
[
'web'
,
'admin'
],
],
...
...
@@ -47,20 +47,20 @@ return [
| ------------------------------------------------------------------------------------------------
| This defines how many log entries are displayed per page.
*/
'per-page'
=>
30
,
'per-page'
=>
30
,
/* ------------------------------------------------------------------------------------------------
| LogViewer's Facade
| ------------------------------------------------------------------------------------------------
*/
'facade'
=>
'LogViewer'
,
'facade'
=>
'LogViewer'
,
/* ------------------------------------------------------------------------------------------------
| Download settings
| ------------------------------------------------------------------------------------------------
*/
'download'
=>
[
'prefix'
=>
'laravel-'
,
'download'
=>
[
'prefix'
=>
'laravel-'
,
'extension'
=>
'log'
,
],
...
...
@@ -69,8 +69,8 @@ return [
| Menu settings
| ------------------------------------------------------------------------------------------------
*/
'menu'
=>
[
'filter-route'
=>
'log-viewer::logs.filter'
,
'menu'
=>
[
'filter-route'
=>
'log-viewer::logs.filter'
,
'icons-enabled'
=>
true
,
],
...
...
@@ -100,7 +100,7 @@ return [
| ------------------------------------------------------------------------------------------------
*/
'colors'
=>
[
'levels'
=>
[
'levels'
=>
[
'empty'
=>
'#D1D1D1'
,
'all'
=>
'#8A8A8A'
,
'emergency'
=>
'#B71C1C'
,
...
...
config/no-captcha.php
View file @
a4956390
...
...
@@ -13,7 +13,7 @@ return [
| Localization
| ------------------------------------------------------------------------------------------------
*/
'lang'
=>
app
()
->
getLocale
(),
'lang'
=>
app
()
->
getLocale
(),
/* ------------------------------------------------------------------------------------------------
| Attributes
...
...
database/DisableForeignKeys.php
View file @
a4956390
...
...
@@ -13,7 +13,7 @@ trait DisableForeignKeys
* @var array
*/
private
$commands
=
[
'mysql'
=>
[
'mysql'
=>
[
'enable'
=>
'SET FOREIGN_KEY_CHECKS=1;'
,
'disable'
=>
'SET FOREIGN_KEY_CHECKS=0;'
,
],
...
...
database/seeds/EmailTemplatePlaceholderTableSeeder.php
View file @
a4956390
...
...
@@ -19,59 +19,59 @@ class EmailTemplatePlaceholderTableSeeder extends Seeder
$data
=
[
[
'name'
=>
'app_name'
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
'name'
=>
'app_name'
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
],
[
'name'
=>
'name'
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
'name'
=>
'name'
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
],
[
'name'
=>
'email'
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
'name'
=>
'email'
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
],
[
'name'
=>
'password'
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
'name'
=>
'password'
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
],
[
'name'
=>
'contact-details'
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
'name'
=>
'contact-details'
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
],
[
'name'
=>
'confirmation_link'
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
'name'
=>
'confirmation_link'
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
],
[
'name'
=>
'password_reset_link'
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
'name'
=>
'password_reset_link'
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
],
[
'name'
=>
'header_logo'
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
'name'
=>
'header_logo'
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
],
[
'name'
=>
'footer_logo'
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
'name'
=>
'footer_logo'
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
],
[
'name'
=>
'unscribe_link'
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
'name'
=>
'unscribe_link'
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
],
[
'name'
=>
'status'
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
'name'
=>
'status'
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
],
];
...
...
database/seeds/EmailTemplateTableSeeder.php
View file @
a4956390
...
...
@@ -19,10 +19,10 @@ class EmailTemplateTableSeeder extends Seeder
$data
=
[
[
'title'
=>
'User Registration'
,
'type_id'
=>
'1'
,
'subject'
=>
'You have succesfully registerd'
,
'body'
=>
'<center>
'title'
=>
'User Registration'
,
'type_id'
=>
'1'
,
'subject'
=>
'You have succesfully registerd'
,
'body'
=>
'<center>
<table id="bodyTable" border="0" width="100%" cellspacing="0" cellpadding="0" align="center">
<tbody>
<tr>
...
...
@@ -75,18 +75,18 @@ class EmailTemplateTableSeeder extends Seeder
</tbody>
</table>
</center>'
,
'status'
=>
'1'
,
'created_by'
=>
'1'
,
'updated_by'
=>
null
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
'status'
=>
'1'
,
'created_by'
=>
'1'
,
'updated_by'
=>
null
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
],
[
'title'
=>
'Create User'
,
'type_id'
=>
'2'
,
'subject'
=>
'Congratulations! your account has been created'
,
'body'
=>
'<center>
'title'
=>
'Create User'
,
'type_id'
=>
'2'
,
'subject'
=>
'Congratulations! your account has been created'
,
'body'
=>
'<center>
<table id="bodyTable" border="0" width="100%" cellspacing="0" cellpadding="0" align="center">
<tbody>
<tr>
...
...
@@ -147,18 +147,18 @@ class EmailTemplateTableSeeder extends Seeder
</tbody>
</table>
</center>'
,
'status'
=>
'1'
,
'created_by'
=>
'1'
,
'updated_by'
=>
null
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
'status'
=>
'1'
,
'created_by'
=>
'1'
,
'updated_by'
=>
null
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
],
[
'title'
=>
'Activate / Deactivate User'
,
'type_id'
=>
'3'
,
'subject'
=>
'Your account has been [status]'
,
'body'
=>
'<center>
'title'
=>
'Activate / Deactivate User'
,
'type_id'
=>
'3'
,
'subject'
=>
'Your account has been [status]'
,
'body'
=>
'<center>
<table id="bodyTable" border="0" width="100%" cellspacing="0" cellpadding="0" align="center">
<tbody>
<tr>
...
...
@@ -211,18 +211,18 @@ class EmailTemplateTableSeeder extends Seeder
</tbody>
</table>
</center>'
,
'status'
=>
'1'
,
'created_by'
=>
'1'
,
'updated_by'
=>
null
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
'status'
=>
'1'
,
'created_by'
=>
'1'
,
'updated_by'
=>
null
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
],
[
'title'
=>
'Change Password'
,
'type_id'
=>
'4'
,
'subject'
=>
'Your passwprd has been changed successfully'
,
'body'
=>
'<center>
'title'
=>
'Change Password'
,
'type_id'
=>
'4'
,
'subject'
=>
'Your passwprd has been changed successfully'
,
'body'
=>
'<center>
<table id="bodyTable" border="0" width="100%" cellspacing="0" cellpadding="0" align="center">
<tbody>
<tr>
...
...
@@ -277,11 +277,11 @@ class EmailTemplateTableSeeder extends Seeder
</tbody>
</table>
</center>'
,
'status'
=>
'1'
,
'created_by'
=>
'1'
,
'updated_by'
=>
null
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
'status'
=>
'1'
,
'created_by'
=>
'1'
,
'updated_by'
=>
null
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
],
];
...
...
database/seeds/EmailTemplateTypeTableSeeder.php
View file @
a4956390
...
...
@@ -19,27 +19,27 @@ class EmailTemplateTypeTableSeeder extends Seeder
$data
=
[
[
'name'
=>
'Registration'
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
'name'
=>
'Registration'
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
],
[
'name'
=>
'Create User'
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
'name'
=>
'Create User'
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
],
[
'name'
=>
'Acivate / Deactivate User'
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
'name'
=>
'Acivate / Deactivate User'
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
],
[
'name'
=>
'Change Password'
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
'name'
=>
'Change Password'
,
'created_at'
=>
Carbon
::
now
(),
'updated_at'
=>
Carbon
::
now
(),
],
];
...
...
database/seeds/MenuTableSeeder.php
View file @
a4956390
...
...
@@ -15,12 +15,12 @@ class MenuTableSeeder extends Seeder
{
DB
::
table
(
config
(
'access.menus_table'
))
->
truncate
();
$menu
=
[
'id'
=>
1
,
'type'
=>
'backend'
,
'name'
=>
'Backend Sidebar Menu'
,
'items'
=>
'[{"view_permission_id":"view-access-management","open_in_new_tab":0,"url_type":"route","url":"","name":"Access Management","id":11,"content":"Access Management","children":[{"view_permission_id":"view-user-management","open_in_new_tab":0,"url_type":"route","url":"admin.access.user.index","name":"User Management","id":12,"content":"User Management"},{"view_permission_id":"view-role-management","open_in_new_tab":0,"url_type":"route","url":"admin.access.role.index","name":"Role Management","id":13,"content":"Role Management"},{"view_permission_id":"view-permission-management","open_in_new_tab":0,"url_type":"route","url":"admin.access.permission.index","name":"Permission Management","id":14,"content":"Permission Management"}]},{"id":1,"name":"Module","url":"admin.modules.index","url_type":"route","open_in_new_tab":0,"view_permission_id":"view-module","content":"Module"},{"view_permission_id":"view-menu","open_in_new_tab":0,"url_type":"route","url":"admin.menus.index","name":"Menus","id":3,"content":"Menus"},{"id":2,"name":"CMS Pages","url":"admin.cmspages.index","url_type":"route","open_in_new_tab":0,"view_permission_id":"view-cms-pages","content":"CMS Pages"},{"view_permission_id":"view-email-template","open_in_new_tab":0,"url_type":"route","url":"admin.emailtemplates.index","name":"Email Templates","id":8,"content":"Email Templates"},{"view_permission_id":"edit-settings","open_in_new_tab":0,"url_type":"route","url":"admin.settings.edit?id=1","name":"Settings","id":9,"content":"Settings"},{"view_permission_id":"view-blog","open_in_new_tab":0,"url_type":"route","url":"","name":"Blog Management","id":15,"content":"Blog Management","children":[{"view_permission_id":"view-blog-category","open_in_new_tab":0,"url_type":"route","url":"admin.blogcategories.index","name":"Blog Category Management","id":16,"content":"Blog Category Management"},{"view_permission_id":"view-blog-tag","open_in_new_tab":0,"url_type":"route","url":"admin.blogtags.index","name":"Blog Tag Management","id":17,"content":"Blog Tag Management"},{"view_permission_id":"view-blog","open_in_new_tab":0,"url_type":"route","url":"admin.blogs.index","name":"Blog Management","id":18,"content":"Blog Management"}]},{"view_permission_id":"view-faq","open_in_new_tab":0,"url_type":"route","url":"admin.faqs.index","name":"Faq Management","id":19,"content":"Faq Management"}]'
,
'created_by'
=>
1
,
'created_at'
=>
Carbon
::
now
(),
'id'
=>
1
,
'type'
=>
'backend'
,
'name'
=>
'Backend Sidebar Menu'
,
'items'
=>
'[{"view_permission_id":"view-access-management","open_in_new_tab":0,"url_type":"route","url":"","name":"Access Management","id":11,"content":"Access Management","children":[{"view_permission_id":"view-user-management","open_in_new_tab":0,"url_type":"route","url":"admin.access.user.index","name":"User Management","id":12,"content":"User Management"},{"view_permission_id":"view-role-management","open_in_new_tab":0,"url_type":"route","url":"admin.access.role.index","name":"Role Management","id":13,"content":"Role Management"},{"view_permission_id":"view-permission-management","open_in_new_tab":0,"url_type":"route","url":"admin.access.permission.index","name":"Permission Management","id":14,"content":"Permission Management"}]},{"id":1,"name":"Module","url":"admin.modules.index","url_type":"route","open_in_new_tab":0,"view_permission_id":"view-module","content":"Module"},{"view_permission_id":"view-menu","open_in_new_tab":0,"url_type":"route","url":"admin.menus.index","name":"Menus","id":3,"content":"Menus"},{"id":2,"name":"CMS Pages","url":"admin.cmspages.index","url_type":"route","open_in_new_tab":0,"view_permission_id":"view-cms-pages","content":"CMS Pages"},{"view_permission_id":"view-email-template","open_in_new_tab":0,"url_type":"route","url":"admin.emailtemplates.index","name":"Email Templates","id":8,"content":"Email Templates"},{"view_permission_id":"edit-settings","open_in_new_tab":0,"url_type":"route","url":"admin.settings.edit?id=1","name":"Settings","id":9,"content":"Settings"},{"view_permission_id":"view-blog","open_in_new_tab":0,"url_type":"route","url":"","name":"Blog Management","id":15,"content":"Blog Management","children":[{"view_permission_id":"view-blog-category","open_in_new_tab":0,"url_type":"route","url":"admin.blogcategories.index","name":"Blog Category Management","id":16,"content":"Blog Category Management"},{"view_permission_id":"view-blog-tag","open_in_new_tab":0,"url_type":"route","url":"admin.blogtags.index","name":"Blog Tag Management","id":17,"content":"Blog Tag Management"},{"view_permission_id":"view-blog","open_in_new_tab":0,"url_type":"route","url":"admin.blogs.index","name":"Blog Management","id":18,"content":"Blog Management"}]},{"view_permission_id":"view-faq","open_in_new_tab":0,"url_type":"route","url":"admin.faqs.index","name":"Faq Management","id":19,"content":"Faq Management"}]'
,
'created_by'
=>
1
,
'created_at'
=>
Carbon
::
now
(),
];
DB
::
table
(
config
(
'access.menus_table'
))
->
insert
(
$menu
);
...
...
database/seeds/ModulesTableSeeder.php
View file @
a4956390
...
...
@@ -20,102 +20,102 @@ class ModulesTableSeeder extends Seeder
$modules
=
[
[
'name'
=>
trans
(
'menus.backend.access.title'
),
'url'
=>
null
,
'view_permission_id'
=>
'view-access-management'
,
'created_by'
=>
1
,
'created_at'
=>
Carbon
::
now
(),
'name'
=>
trans
(
'menus.backend.access.title'
),
'url'
=>
null
,
'view_permission_id'
=>
'view-access-management'
,
'created_by'
=>
1
,
'created_at'
=>
Carbon
::
now
(),
],
[
'name'
=>
trans
(
'labels.backend.access.users.management'
),
'url'
=>
'admin.access.user.index'
,
'view_permission_id'
=>
'view-user-management'
,
'created_by'
=>
1
,
'created_at'
=>
Carbon
::
now
(),
'name'
=>
trans
(
'labels.backend.access.users.management'
),
'url'
=>
'admin.access.user.index'
,
'view_permission_id'
=>
'view-user-management'
,
'created_by'
=>
1
,
'created_at'
=>
Carbon
::
now
(),
],
[
'name'
=>
trans
(
'labels.backend.access.roles.management'
),
'url'
=>
'admin.access.role.index'
,
'view_permission_id'
=>
'view-role-management'
,
'created_by'
=>
1
,
'created_at'
=>
Carbon
::
now
(),
'name'
=>
trans
(
'labels.backend.access.roles.management'
),
'url'
=>
'admin.access.role.index'
,
'view_permission_id'
=>
'view-role-management'
,
'created_by'
=>
1
,
'created_at'
=>
Carbon
::
now
(),
],
[
'name'
=>
trans
(
'labels.backend.access.permissions.management'
),
'url'
=>
'admin.access.permission.index'
,
'view_permission_id'
=>
'view-permission-management'
,
'created_by'
=>
1
,
'created_at'
=>
Carbon
::
now
(),
'name'
=>
trans
(
'labels.backend.access.permissions.management'
),
'url'
=>
'admin.access.permission.index'
,
'view_permission_id'
=>
'view-permission-management'
,
'created_by'
=>
1
,
'created_at'
=>
Carbon
::
now
(),
],
[
'name'
=>
trans
(
'labels.backend.menus.title'
),
'url'
=>
'admin.menus.index'
,
'view_permission_id'
=>
'view-menu'
,
'created_by'
=>
1
,
'created_at'
=>
Carbon
::
now
(),
'name'
=>
trans
(
'labels.backend.menus.title'
),
'url'
=>
'admin.menus.index'
,
'view_permission_id'
=>
'view-menu'
,
'created_by'
=>
1
,
'created_at'
=>
Carbon
::
now
(),
],
[
'name'
=>
trans
(
'labels.backend.modules.title'
),
'url'
=>
'admin.modules.index'
,
'view_permission_id'
=>
'view-module'
,
'created_by'
=>
1
,
'created_at'
=>
Carbon
::
now
(),
'name'
=>
trans
(
'labels.backend.modules.title'
),
'url'
=>
'admin.modules.index'
,
'view_permission_id'
=>
'view-module'
,
'created_by'
=>
1
,
'created_at'
=>
Carbon
::
now
(),
],
[
'name'
=>
trans
(
'labels.backend.cmspages.title'
),
'url'
=>
'admin.cmspages.index'
,
'view_permission_id'
=>
'view-cms-pages'
,
'created_by'
=>
1
,
'created_at'
=>
Carbon
::
now
(),
'name'
=>
trans
(
'labels.backend.cmspages.title'
),
'url'
=>
'admin.cmspages.index'
,
'view_permission_id'
=>
'view-cms-pages'
,
'created_by'
=>
1
,
'created_at'
=>
Carbon
::
now
(),
],
[
'name'
=>
trans
(
'labels.backend.emailtemplates.title'
),
'url'
=>
'admin.emailtemplates.index'
,
'view_permission_id'
=>
'view-email-template'
,
'created_by'
=>
1
,
'created_at'
=>
Carbon
::
now
(),
'name'
=>
trans
(
'labels.backend.emailtemplates.title'
),
'url'
=>
'admin.emailtemplates.index'
,
'view_permission_id'
=>
'view-email-template'
,
'created_by'
=>
1
,
'created_at'
=>
Carbon
::
now
(),
],
[
'name'
=>
trans
(
'labels.backend.settings.title'
),
'url'
=>
'admin.settings.edit'
,
'view_permission_id'
=>
'edit-settings'
,
'created_by'
=>
1
,
'created_at'
=>
Carbon
::
now
(),
'name'
=>
trans
(
'labels.backend.settings.title'
),
'url'
=>
'admin.settings.edit'
,
'view_permission_id'
=>
'edit-settings'
,
'created_by'
=>
1
,
'created_at'
=>
Carbon
::
now
(),
],
[
'name'
=>
trans
(
'menus.backend.blog.management'
),
'url'
=>
null
,
'view_permission_id'
=>
'view-blog'
,
'created_by'
=>
1
,
'created_at'
=>
Carbon
::
now
(),
'name'
=>
trans
(
'menus.backend.blog.management'
),
'url'
=>
null
,
'view_permission_id'
=>
'view-blog'
,
'created_by'
=>
1
,
'created_at'
=>
Carbon
::
now
(),
],
[
'name'
=>
trans
(
'menus.backend.blogcategories.management'
),
'url'
=>
'admin.blogcategories.index'
,
'view_permission_id'
=>
'view-blog-category'
,
'created_by'
=>
1
,
'created_at'
=>
Carbon
::
now
(),
'name'
=>
trans
(
'menus.backend.blogcategories.management'
),
'url'
=>
'admin.blogcategories.index'
,
'view_permission_id'
=>
'view-blog-category'
,
'created_by'
=>
1
,
'created_at'
=>
Carbon
::
now
(),
],
[
'name'
=>
trans
(
'menus.backend.blogtags.management'
),
'url'
=>
'admin.blogtags.index'
,
'view_permission_id'
=>
'view-blog-tag'
,
'created_by'
=>
1
,
'created_at'
=>
Carbon
::
now
(),
'name'
=>
trans
(
'menus.backend.blogtags.management'
),
'url'
=>
'admin.blogtags.index'
,
'view_permission_id'
=>
'view-blog-tag'
,
'created_by'
=>
1
,
'created_at'
=>
Carbon
::
now
(),
],
[
'name'
=>
trans
(
'menus.backend.blog.management'
),
'url'
=>
'admin.blogs.index'
,
'view_permission_id'
=>
'view-blog'
,
'created_by'
=>
1
,
'created_at'
=>
Carbon
::
now
(),
'name'
=>
trans
(
'menus.backend.blog.management'
),
'url'
=>
'admin.blogs.index'
,
'view_permission_id'
=>
'view-blog'
,
'created_by'
=>
1
,
'created_at'
=>
Carbon
::
now
(),
],
[
'name'
=>
trans
(
'menus.backend.faqs.management'
),
'url'
=>
'admin.faqs.index'
,
'view_permission_id'
=>
'view-faq'
,
'created_by'
=>
1
,
'created_at'
=>
Carbon
::
now
(),
'name'
=>
trans
(
'menus.backend.faqs.management'
),
'url'
=>
'admin.faqs.index'
,
'view_permission_id'
=>
'view-faq'
,
'created_by'
=>
1
,
'created_at'
=>
Carbon
::
now
(),
],
];
...
...
database/seeds/SettingsTableSeeder.php
View file @
a4956390
...
...
@@ -19,7 +19,7 @@ class SettingsTableSeeder extends Seeder
$data
=
[
[
'seo_title'
=>
env
(
'APP_NAME'
),
'seo_title'
=>
env
(
'APP_NAME'
),
],
];
...
...
resources/lang/en/alerts.php
View file @
a4956390
...
...
@@ -27,14 +27,14 @@ return [
],
'users'
=>
[
'confirmation_email'
=>
'A new confirmation e-mail has been sent to the address on file.'
,
'created'
=>
'The user was successfully created.'
,
'deleted'
=>
'The user was successfully deleted.'
,
'deleted_permanently'
=>
'The user was deleted permanently.'
,
'restored'
=>
'The user was successfully restored.'
,
'session_cleared'
=>
"The user's session was successfully cleared."
,
'updated'
=>
'The user was successfully updated.'
,
'updated_password'
=>
"The user's password was successfully updated."
,
'confirmation_email'
=>
'A new confirmation e-mail has been sent to the address on file.'
,
'created'
=>
'The user was successfully created.'
,
'deleted'
=>
'The user was successfully deleted.'
,
'deleted_permanently'
=>
'The user was deleted permanently.'
,
'restored'
=>
'The user was successfully restored.'
,
'session_cleared'
=>
"The user's session was successfully cleared."
,
'updated'
=>
'The user was successfully updated.'
,
'updated_password'
=>
"The user's password was successfully updated."
,
],
'cmspages'
=>
[
...
...
resources/lang/en/buttons.php
View file @
a4956390
...
...
@@ -16,14 +16,14 @@ return [
'backend'
=>
[
'access'
=>
[
'users'
=>
[
'activate'
=>
'Activate'
,
'change_password'
=>
'Change Password'
,
'clear_session'
=>
'Clear Session'
,
'deactivate'
=>
'Deactivate'
,
'delete_permanently'
=>
'Delete Permanently'
,
'login_as'
=>
'Login As :user'
,
'resend_email'
=>
'Resend Confirmation E-mail'
,
'restore_user'
=>
'Restore User'
,
'activate'
=>
'Activate'
,
'change_password'
=>
'Change Password'
,
'clear_session'
=>
'Clear Session'
,
'deactivate'
=>
'Deactivate'
,
'delete_permanently'
=>
'Delete Permanently'
,
'login_as'
=>
'Login As :user'
,
'resend_email'
=>
'Resend Confirmation E-mail'
,
'restore_user'
=>
'Restore User'
,
],
],
],
...
...
@@ -41,12 +41,12 @@ return [
'preview'
=>
'Preview'
,
'crud'
=>
[
'create'
=>
'Create'
,
'add'
=>
'Add'
,
'delete'
=>
'Delete'
,
'edit'
=>
'Edit'
,
'update'
=>
'Update'
,
'view'
=>
'View'
,
'create'
=>
'Create'
,
'add'
=>
'Add'
,
'delete'
=>
'Delete'
,
'edit'
=>
'Edit'
,
'update'
=>
'Update'
,
'view'
=>
'View'
,
],
'save'
=>
'Save'
,
...
...
resources/lang/en/exceptions.php
View file @
a4956390
...
...
@@ -27,11 +27,11 @@ return [
],
'permissions'
=>
[
'already_exists'
=>
'That permission already exists. Please choose a different name.'
,
'create_error'
=>
'There was a problem creating this permission. Please try again.'
,
'delete_error'
=>
'There was a problem deleting this permission. Please try again.'
,
'not_found'
=>
'That permission does not exist.'
,
'update_error'
=>
'There was a problem updating this permission. Please try again.'
,
'already_exists'
=>
'That permission already exists. Please choose a different name.'
,
'create_error'
=>
'There was a problem creating this permission. Please try again.'
,
'delete_error'
=>
'There was a problem deleting this permission. Please try again.'
,
'not_found'
=>
'That permission does not exist.'
,
'update_error'
=>
'There was a problem updating this permission. Please try again.'
,
],
'users'
=>
[
...
...
@@ -57,55 +57,55 @@ return [
],
],
'cmspages'
=>
[
'already_exists'
=>
'That CMS Page already exists. Please choose a different name.'
,
'create_error'
=>
'There was a problem creating this CMS Page. Please try again.'
,
'delete_error'
=>
'There was a problem deleting this CMS Page. Please try again.'
,
'not_found'
=>
'That CMS Page does not exist.'
,
'update_error'
=>
'There was a problem updating this CMS Page. Please try again.'
,
'already_exists'
=>
'That CMS Page already exists. Please choose a different name.'
,
'create_error'
=>
'There was a problem creating this CMS Page. Please try again.'
,
'delete_error'
=>
'There was a problem deleting this CMS Page. Please try again.'
,
'not_found'
=>
'That CMS Page does not exist.'
,
'update_error'
=>
'There was a problem updating this CMS Page. Please try again.'
,
],
'blogcategories'
=>
[
'already_exists'
=>
'That Blog Category already exists. Please choose a different name.'
,
'create_error'
=>
'There was a problem creating this Blog Category. Please try again.'
,
'delete_error'
=>
'There was a problem deleting this Blog Category. Please try again.'
,
'not_found'
=>
'That Blog Category does not exist.'
,
'update_error'
=>
'There was a problem updating this Blog Category. Please try again.'
,
'already_exists'
=>
'That Blog Category already exists. Please choose a different name.'
,
'create_error'
=>
'There was a problem creating this Blog Category. Please try again.'
,
'delete_error'
=>
'There was a problem deleting this Blog Category. Please try again.'
,
'not_found'
=>
'That Blog Category does not exist.'
,
'update_error'
=>
'There was a problem updating this Blog Category. Please try again.'
,
],
'blogtags'
=>
[
'already_exists'
=>
'That Blog Tag already exists. Please choose a different name.'
,
'create_error'
=>
'There was a problem creating this Blog Tag. Please try again.'
,
'delete_error'
=>
'There was a problem deleting this Blog Tag. Please try again.'
,
'not_found'
=>
'That Blog Tag does not exist.'
,
'update_error'
=>
'There was a problem updating this Blog Tag. Please try again.'
,
'already_exists'
=>
'That Blog Tag already exists. Please choose a different name.'
,
'create_error'
=>
'There was a problem creating this Blog Tag. Please try again.'
,
'delete_error'
=>
'There was a problem deleting this Blog Tag. Please try again.'
,
'not_found'
=>
'That Blog Tag does not exist.'
,
'update_error'
=>
'There was a problem updating this Blog Tag. Please try again.'
,
],
'emailtemplates'
=>
[
'already_exists'
=>
'That Email Template already exists. Please choose a different name.'
,
'create_error'
=>
'There was a problem creating this Email Template. Please try again.'
,
'delete_error'
=>
'There was a problem deleting this Email Template. Please try again.'
,
'not_found'
=>
'That Email Template does not exist.'
,
'update_error'
=>
'There was a problem updating this Email Template. Please try again.'
,
'already_exists'
=>
'That Email Template already exists. Please choose a different name.'
,
'create_error'
=>
'There was a problem creating this Email Template. Please try again.'
,
'delete_error'
=>
'There was a problem deleting this Email Template. Please try again.'
,
'not_found'
=>
'That Email Template does not exist.'
,
'update_error'
=>
'There was a problem updating this Email Template. Please try again.'
,
],
'settings'
=>
[
'update_error'
=>
'There was a problem updating this Settings. Please try again.'
,
'update_error'
=>
'There was a problem updating this Settings. Please try again.'
,
],
'menus'
=>
[
'already_exists'
=>
'That Menu already exists. Please choose a different name.'
,
'create_error'
=>
'There was a problem creating this Menu. Please try again.'
,
'delete_error'
=>
'There was a problem deleting this Menu. Please try again.'
,
'not_found'
=>
'That Menu does not exist.'
,
'update_error'
=>
'There was a problem updating this Menu. Please try again.'
,
'already_exists'
=>
'That Menu already exists. Please choose a different name.'
,
'create_error'
=>
'There was a problem creating this Menu. Please try again.'
,
'delete_error'
=>
'There was a problem deleting this Menu. Please try again.'
,
'not_found'
=>
'That Menu does not exist.'
,
'update_error'
=>
'There was a problem updating this Menu. Please try again.'
,
],
'modules'
=>
[
'already_exists'
=>
'That Module already exists. Please choose a different name.'
,
'create_error'
=>
'There was a problem creating this Module. Please try again.'
,
'delete_error'
=>
'There was a problem deleting this Module. Please try again.'
,
'not_found'
=>
'That Module does not exist.'
,
'update_error'
=>
'There was a problem updating this Module. Please try again.'
,
'already_exists'
=>
'That Module already exists. Please choose a different name.'
,
'create_error'
=>
'There was a problem creating this Module. Please try again.'
,
'delete_error'
=>
'There was a problem deleting this Module. Please try again.'
,
'not_found'
=>
'That Module does not exist.'
,
'update_error'
=>
'There was a problem updating this Module. Please try again.'
,
],
],
...
...
resources/lang/en/labels.php
View file @
a4956390
...
...
@@ -54,11 +54,11 @@ return [
'management'
=>
'Permission Management'
,
'table'
=>
[
'permission'
=>
'Permission'
,
'display_name'
=>
'Display Name'
,
'sort'
=>
'Sort'
,
'status'
=>
'Status'
,
'total'
=>
'role total|roles total'
,
'permission'
=>
'Permission'
,
'display_name'
=>
'Display Name'
,
'sort'
=>
'Sort'
,
'status'
=>
'Status'
,
'total'
=>
'role total|roles total'
,
],
],
...
...
@@ -122,11 +122,11 @@ return [
'title'
=>
'CMS Pages'
,
'table'
=>
[
'title'
=>
'Title'
,
'status'
=>
'Status'
,
'createdat'
=>
'Created At'
,
'updatedat'
=>
'Updated At'
,
'all'
=>
'All'
,
'title'
=>
'Title'
,
'status'
=>
'Status'
,
'createdat'
=>
'Created At'
,
'updatedat'
=>
'Updated At'
,
'all'
=>
'All'
,
],
],
...
...
@@ -137,11 +137,11 @@ return [
'title'
=>
'Blog Category'
,
'table'
=>
[
'title'
=>
'Blog Category'
,
'status'
=>
'Status'
,
'createdat'
=>
'Created At'
,
'createdby'
=>
'Created By'
,
'all'
=>
'All'
,
'title'
=>
'Blog Category'
,
'status'
=>
'Status'
,
'createdat'
=>
'Created At'
,
'createdby'
=>
'Created By'
,
'all'
=>
'All'
,
],
],
...
...
@@ -152,11 +152,11 @@ return [
'title'
=>
'Blog Tags'
,
'table'
=>
[
'title'
=>
'Blog Tag'
,
'status'
=>
'Status'
,
'createdat'
=>
'Created At'
,
'createdby'
=>
'Created By'
,
'all'
=>
'All'
,
'title'
=>
'Blog Tag'
,
'status'
=>
'Status'
,
'createdat'
=>
'Created At'
,
'createdby'
=>
'Created By'
,
'all'
=>
'All'
,
],
],
...
...
@@ -167,12 +167,12 @@ return [
'title'
=>
'Blogs'
,
'table'
=>
[
'title'
=>
'Blog'
,
'publish'
=>
'PublishDateTime'
,
'status'
=>
'Status'
,
'createdat'
=>
'Created At'
,
'createdby'
=>
'Created By'
,
'all'
=>
'All'
,
'title'
=>
'Blog'
,
'publish'
=>
'PublishDateTime'
,
'status'
=>
'Status'
,
'createdat'
=>
'Created At'
,
'createdby'
=>
'Created By'
,
'all'
=>
'All'
,
],
],
...
...
@@ -183,25 +183,25 @@ return [
'title'
=>
'Email Templates'
,
'table'
=>
[
'title'
=>
'Title'
,
'subject'
=>
'Subject'
,
'status'
=>
'Status'
,
'createdat'
=>
'Created At'
,
'updatedat'
=>
'Updated At'
,
'all'
=>
'All'
,
'title'
=>
'Title'
,
'subject'
=>
'Subject'
,
'status'
=>
'Status'
,
'createdat'
=>
'Created At'
,
'updatedat'
=>
'Updated At'
,
'all'
=>
'All'
,
],
],
'settings'
=>
[
'edit'
=>
'Edit Settings'
,
'management'
=>
'Settings Management'
,
'title'
=>
'Settings'
,
'seo'
=>
'SEO Settings'
,
'companydetails'
=>
'Company Contact Details'
,
'mail'
=>
'Mail Settings'
,
'footer'
=>
'Footer Settings'
,
'terms'
=>
'Terms & Condition Settings'
,
'google'
=>
'Google Analytics Track Code'
,
'edit'
=>
'Edit Settings'
,
'management'
=>
'Settings Management'
,
'title'
=>
'Settings'
,
'seo'
=>
'SEO Settings'
,
'companydetails'
=>
'Company Contact Details'
,
'mail'
=>
'Mail Settings'
,
'footer'
=>
'Footer Settings'
,
'terms'
=>
'Terms & Condition Settings'
,
'google'
=>
'Google Analytics Track Code'
,
],
'faqs'
=>
[
...
...
@@ -211,15 +211,15 @@ return [
'title'
=>
'FAQ'
,
'table'
=>
[
'title'
=>
'FAQs'
,
'publish'
=>
'PublishDateTime'
,
'status'
=>
'Status'
,
'createdat'
=>
'Created At'
,
'createdby'
=>
'Created By'
,
'answer'
=>
'Answer'
,
'question'
=>
'Question'
,
'updatedat'
=>
'Updated At'
,
'all'
=>
'All'
,
'title'
=>
'FAQs'
,
'publish'
=>
'PublishDateTime'
,
'status'
=>
'Status'
,
'createdat'
=>
'Created At'
,
'createdby'
=>
'Created By'
,
'answer'
=>
'Answer'
,
'question'
=>
'Question'
,
'updatedat'
=>
'Updated At'
,
'all'
=>
'All'
,
],
],
...
...
@@ -230,11 +230,11 @@ return [
'title'
=>
'Menus'
,
'table'
=>
[
'name'
=>
'Name'
,
'type'
=>
'Type'
,
'createdat'
=>
'Created At'
,
'createdby'
=>
'Created By'
,
'all'
=>
'All'
,
'name'
=>
'Name'
,
'type'
=>
'Type'
,
'createdat'
=>
'Created At'
,
'createdby'
=>
'Created By'
,
'all'
=>
'All'
,
],
'field'
=>
[
'name'
=>
'Name'
,
...
...
resources/lang/en/validation.php
View file @
a4956390
...
...
@@ -13,50 +13,50 @@ return [
|
*/
'accepted'
=>
'The :attribute must be accepted.'
,
'active_url'
=>
'The :attribute is not a valid URL.'
,
'after'
=>
'The :attribute must be a date after :date.'
,
'after_or_equal'
=>
'The :attribute must be a date after or equal to :date.'
,
'alpha'
=>
'The :attribute may only contain letters.'
,
'alpha_dash'
=>
'The :attribute may only contain letters, numbers, and dashes.'
,
'alpha_num'
=>
'The :attribute may only contain letters and numbers.'
,
'array'
=>
'The :attribute must be an array.'
,
'before'
=>
'The :attribute must be a date before :date.'
,
'before_or_equal'
=>
'The :attribute must be a date before or equal to :date.'
,
'between'
=>
[
'accepted'
=>
'The :attribute must be accepted.'
,
'active_url'
=>
'The :attribute is not a valid URL.'
,
'after'
=>
'The :attribute must be a date after :date.'
,
'after_or_equal'
=>
'The :attribute must be a date after or equal to :date.'
,
'alpha'
=>
'The :attribute may only contain letters.'
,
'alpha_dash'
=>
'The :attribute may only contain letters, numbers, and dashes.'
,
'alpha_num'
=>
'The :attribute may only contain letters and numbers.'
,
'array'
=>
'The :attribute must be an array.'
,
'before'
=>
'The :attribute must be a date before :date.'
,
'before_or_equal'
=>
'The :attribute must be a date before or equal to :date.'
,
'between'
=>
[
'numeric'
=>
'The :attribute must be between :min and :max.'
,
'file'
=>
'The :attribute must be between :min and :max kilobytes.'
,
'string'
=>
'The :attribute must be between :min and :max characters.'
,
'array'
=>
'The :attribute must have between :min and :max items.'
,
],
'boolean'
=>
'The :attribute field must be true or false.'
,
'confirmed'
=>
'The :attribute confirmation does not match.'
,
'date'
=>
'The :attribute is not a valid date.'
,
'date_format'
=>
'The :attribute does not match the format :format.'
,
'different'
=>
'The :attribute and :other must be different.'
,
'digits'
=>
'The :attribute must be :digits digits.'
,
'digits_between'
=>
'The :attribute must be between :min and :max digits.'
,
'dimensions'
=>
'The :attribute has invalid image dimensions.'
,
'distinct'
=>
'The :attribute field has a duplicate value.'
,
'email'
=>
'The :attribute must be a valid email address.'
,
'exists'
=>
'The selected :attribute is invalid.'
,
'file'
=>
'The :attribute must be a file.'
,
'filled'
=>
'The :attribute field must have a value.'
,
'image'
=>
'The :attribute must be an image.'
,
'in'
=>
'The selected :attribute is invalid.'
,
'in_array'
=>
'The :attribute field does not exist in :other.'
,
'integer'
=>
'The :attribute must be an integer.'
,
'ip'
=>
'The :attribute must be a valid IP address.'
,
'json'
=>
'The :attribute must be a valid JSON string.'
,
'max'
=>
[
'boolean'
=>
'The :attribute field must be true or false.'
,
'confirmed'
=>
'The :attribute confirmation does not match.'
,
'date'
=>
'The :attribute is not a valid date.'
,
'date_format'
=>
'The :attribute does not match the format :format.'
,
'different'
=>
'The :attribute and :other must be different.'
,
'digits'
=>
'The :attribute must be :digits digits.'
,
'digits_between'
=>
'The :attribute must be between :min and :max digits.'
,
'dimensions'
=>
'The :attribute has invalid image dimensions.'
,
'distinct'
=>
'The :attribute field has a duplicate value.'
,
'email'
=>
'The :attribute must be a valid email address.'
,
'exists'
=>
'The selected :attribute is invalid.'
,
'file'
=>
'The :attribute must be a file.'
,
'filled'
=>
'The :attribute field must have a value.'
,
'image'
=>
'The :attribute must be an image.'
,
'in'
=>
'The selected :attribute is invalid.'
,
'in_array'
=>
'The :attribute field does not exist in :other.'
,
'integer'
=>
'The :attribute must be an integer.'
,
'ip'
=>
'The :attribute must be a valid IP address.'
,
'json'
=>
'The :attribute must be a valid JSON string.'
,
'max'
=>
[
'numeric'
=>
'The :attribute may not be greater than :max.'
,
'file'
=>
'The :attribute may not be greater than :max kilobytes.'
,
'string'
=>
'The :attribute may not be greater than :max characters.'
,
'array'
=>
'The :attribute may not have more than :max items.'
,
],
'mimes'
=>
'The :attribute must be a file of type: :values.'
,
'mimetypes'
=>
'The :attribute must be a file of type: :values.'
,
'min'
=>
[
'mimes'
=>
'The :attribute must be a file of type: :values.'
,
'mimetypes'
=>
'The :attribute must be a file of type: :values.'
,
'min'
=>
[
'numeric'
=>
'The :attribute must be at least :min.'
,
'file'
=>
'The :attribute must be at least :min kilobytes.'
,
'string'
=>
'The :attribute must be at least :min characters.'
,
...
...
@@ -80,11 +80,11 @@ return [
'string'
=>
'The :attribute must be :size characters.'
,
'array'
=>
'The :attribute must contain :size items.'
,
],
'string'
=>
'The :attribute must be a string.'
,
'timezone'
=>
'The :attribute must be a valid zone.'
,
'unique'
=>
'The :attribute has already been taken.'
,
'uploaded'
=>
'The :attribute failed to upload.'
,
'url'
=>
'The :attribute format is invalid.'
,
'string'
=>
'The :attribute must be a string.'
,
'timezone'
=>
'The :attribute must be a valid zone.'
,
'unique'
=>
'The :attribute has already been taken.'
,
'uploaded'
=>
'The :attribute failed to upload.'
,
'url'
=>
'The :attribute format is invalid.'
,
/*
|--------------------------------------------------------------------------
...
...
@@ -200,28 +200,28 @@ return [
],
'settings'
=>
[
'sitelogo'
=>
'Site Logo'
,
'favicon'
=>
'Fav Icon'
,
'metatitle'
=>
'Meta Title'
,
'metakeyword'
=>
'Meta Keyawords'
,
'metadescription'
=>
'Meta Description'
,
'companydetails'
=>
[
'address'
=>
'Company Address'
,
'contactnumber'
=>
'Contact Number'
,
'sitelogo'
=>
'Site Logo'
,
'favicon'
=>
'Fav Icon'
,
'metatitle'
=>
'Meta Title'
,
'metakeyword'
=>
'Meta Keyawords'
,
'metadescription'
=>
'Meta Description'
,
'companydetails'
=>
[
'address'
=>
'Company Address'
,
'contactnumber'
=>
'Contact Number'
,
],
'mail'
=>
[
'fromname'
=>
'From Name'
,
'fromemail'
=>
'From Email'
,
'mail'
=>
[
'fromname'
=>
'From Name'
,
'fromemail'
=>
'From Email'
,
],
'footer'
=>
[
'footer'
=>
[
'text'
=>
'Footer Text'
,
'copyright'
=>
'Copyright Text'
,
],
'termscondition'
=>
[
'termscondition'
=>
[
'terms'
=>
'Terms & Condition'
,
'disclaimer'
=>
'Disclaimer'
,
],
'google'
=>
[
'google'
=>
[
'analytic'
=>
'Google Analytics'
,
],
],
...
...
routes/Backend/Access.php
View file @
a4956390
...
...
@@ -4,9 +4,9 @@
* All route names are prefixed with 'admin.access'.
*/
Route
::
group
([
'prefix'
=>
'access'
,
'as'
=>
'access.'
,
'namespace'
=>
'Access'
,
'prefix'
=>
'access'
,
'as'
=>
'access.'
,
'namespace'
=>
'Access'
,
],
function
()
{
/*
...
...
routes/Backend/Search.php
View file @
a4956390
<?php
Route
::
group
([
'prefix'
=>
'search'
,
'as'
=>
'search.'
,
'namespace'
=>
'Search'
,
'prefix'
=>
'search'
,
'as'
=>
'search.'
,
'namespace'
=>
'Search'
,
],
function
()
{
/*
...
...
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