Unverified Commit f3fee52a authored by ruchit-viitorcloud's avatar ruchit-viitorcloud Committed by GitHub

Merge branch 'master' into master

parents 952e30e3 a4956390
...@@ -17,8 +17,9 @@ trait AttributeClass ...@@ -17,8 +17,9 @@ trait AttributeClass
*/ */
public function getActionButtonsAttribute() public function getActionButtonsAttribute()
{ {
return '<div class="btn-group action-btn">'. return '<div class="btn-group action-btn">
//call your attribute functions here '.$this->getEditButtonAttribute(editPermission, editRoute).'
'</div>'; '.$this->getDeleteButtonAttribute(deletePermission, deleteRoute).'
</div>';
} }
} }
...@@ -2,14 +2,18 @@ ...@@ -2,14 +2,18 @@
namespace DummyNamespace; namespace DummyNamespace;
use App\Models\ModelTrait;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;
use DummyAttribute; use DummyAttribute;
use DummyRelationship; use DummyRelationship;
class DummyModel extends Model class DummyModel extends Model
{ {
use AttributeName, use ModelTrait,
RelationshipName; AttributeName,
RelationshipName {
// AttributeName::getEditButtonAttribute insteadof ModelTrait;
}
/** /**
* NOTE : If you want to implement Soft Deletes in this model, * NOTE : If you want to implement Soft Deletes in this model,
......
...@@ -45,6 +45,7 @@ class DummyRepoName extends BaseRepository ...@@ -45,6 +45,7 @@ class DummyRepoName extends BaseRepository
public function create(array $input) public function create(array $input)
{ {
$dummy_small_model_name = self::MODEL; $dummy_small_model_name = self::MODEL;
$dummy_small_model_name = new $dummy_small_model_name();
if ($dummy_small_model_name->save($input)) { if ($dummy_small_model_name->save($input)) {
return true; return true;
} }
......
...@@ -155,7 +155,7 @@ class BlogsController extends Controller ...@@ -155,7 +155,7 @@ class BlogsController extends Controller
if (is_numeric($tag)) { if (is_numeric($tag)) {
$tags_array[] = $tag; $tags_array[] = $tag;
} else { } 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; $tags_array[] = $newTag->id;
} }
} }
......
...@@ -63,9 +63,9 @@ class ResetPasswordController extends Controller ...@@ -63,9 +63,9 @@ class ResetPasswordController extends Controller
protected function rules() protected function rules()
{ {
return [ return [
'token' => 'required', 'token' => 'required',
'email' => 'required|email', 'email' => 'required|email',
'password' => 'required|min:8|confirmed|regex:"^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).{8,}$"', 'password' => 'required|min:8|confirmed|regex:"^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).{8,}$"',
]; ];
} }
......
...@@ -26,7 +26,7 @@ class VerifyJWTToken ...@@ -26,7 +26,7 @@ class VerifyJWTToken
} elseif ($e instanceof \Tymon\JWTAuth\Exceptions\TokenInvalidException) { } elseif ($e instanceof \Tymon\JWTAuth\Exceptions\TokenInvalidException) {
return response()->json(['token_invalid'], $e->getStatusCode()); return response()->json(['token_invalid'], $e->getStatusCode());
} else { } else {
return response()->json(['error'=>'Token is required']); return response()->json(['error' => 'Token is required']);
} }
} }
......
...@@ -28,14 +28,14 @@ class StoreUserRequest extends Request ...@@ -28,14 +28,14 @@ class StoreUserRequest extends Request
public function rules() public function rules()
{ {
return [ return [
'first_name' => 'required|max:255', 'first_name' => 'required|max:255',
'last_name' => 'required|max:255', 'last_name' => 'required|max:255',
'email' => ['required', 'email', 'max:255', Rule::unique('users')], 'email' => ['required', 'email', 'max:255', Rule::unique('users')],
'password' => 'required|min:6|confirmed', 'password' => 'required|min:6|confirmed',
'state_id' => 'required', 'state_id' => 'required',
'city_id' => 'required', 'city_id' => 'required',
'zip_code' => 'required|regex:/^[0-9]+$/', 'zip_code' => 'required|regex:/^[0-9]+$/',
'ssn' => 'required|regex:/^[0-9]+$/|max:9|min:9', 'ssn' => 'required|regex:/^[0-9]+$/|max:9|min:9',
]; ];
} }
......
...@@ -27,13 +27,13 @@ class UpdateUserRequest extends Request ...@@ -27,13 +27,13 @@ class UpdateUserRequest extends Request
public function rules() public function rules()
{ {
return [ return [
'email' => 'required|email', 'email' => 'required|email',
'first_name' => 'required', 'first_name' => 'required',
'last_name' => 'required', 'last_name' => 'required',
'state_id' => 'required', 'state_id' => 'required',
'city_id' => 'required', 'city_id' => 'required',
'zip_code' => 'required|regex:/^[0-9]+$/', 'zip_code' => 'required|regex:/^[0-9]+$/',
'ssn' => 'required|regex:/^[0-9]+$/|max:9|min:9', 'ssn' => 'required|regex:/^[0-9]+$/|max:9|min:9',
]; ];
} }
......
...@@ -24,8 +24,8 @@ class StoreFaqsRequest extends FormRequest ...@@ -24,8 +24,8 @@ class StoreFaqsRequest extends FormRequest
public function rules() public function rules()
{ {
return [ return [
'question' => 'required|max:191', 'question' => 'required|max:191',
'answer' => 'required', 'answer' => 'required',
]; ];
} }
...@@ -37,9 +37,9 @@ class StoreFaqsRequest extends FormRequest ...@@ -37,9 +37,9 @@ class StoreFaqsRequest extends FormRequest
public function messages() public function messages()
{ {
return [ return [
'question.required' => 'Question field is required.', 'question.required' => 'Question field is required.',
'question.max' => 'Question may not be grater than 191 character.', 'question.max' => 'Question may not be grater than 191 character.',
'answer.required' => 'Answer field is required.', 'answer.required' => 'Answer field is required.',
]; ];
} }
} }
...@@ -24,8 +24,8 @@ class UpdateFaqsRequest extends FormRequest ...@@ -24,8 +24,8 @@ class UpdateFaqsRequest extends FormRequest
public function rules() public function rules()
{ {
return [ return [
'question' => 'required|max:191', 'question' => 'required|max:191',
'answer' => 'required', 'answer' => 'required',
]; ];
} }
...@@ -37,9 +37,9 @@ class UpdateFaqsRequest extends FormRequest ...@@ -37,9 +37,9 @@ class UpdateFaqsRequest extends FormRequest
public function messages() public function messages()
{ {
return [ return [
'question.required' => 'Question field is required.', 'question.required' => 'Question field is required.',
'question.max' => 'Question may not be grater than 191 character.', 'question.max' => 'Question may not be grater than 191 character.',
'answer.required' => 'Answer field is required.', 'answer.required' => 'Answer field is required.',
]; ];
} }
} }
...@@ -42,11 +42,11 @@ class StoreModuleRequest extends Request ...@@ -42,11 +42,11 @@ class StoreModuleRequest extends Request
public function messages() public function messages()
{ {
return [ return [
'name.required' => 'Module 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.max' => 'Module Name should not exceed 191 characters',
'name.unique' => 'Module Name is already taken', 'name.unique' => 'Module Name is already taken',
'directory_name.required' => 'Directory Name field is required to be filled', 'directory_name.required' => 'Directory Name field is required to be filled',
'model_name.required' => 'Model Name field is required to be filled', 'model_name.required' => 'Model Name field is required to be filled',
]; ];
} }
} }
...@@ -57,12 +57,12 @@ class UpdateSettingsRequest extends Request ...@@ -57,12 +57,12 @@ class UpdateSettingsRequest extends Request
public function messages() public function messages()
{ {
return [ return [
'logo.dimensions' => 'Invalid logo - should be minimum 226*48', 'logo.dimensions' => 'Invalid logo - should be minimum 226*48',
'favicon.dimensions' => 'Invalid icon - should be 16*16', 'favicon.dimensions' => 'Invalid icon - should be 16*16',
'logo.required' => 'The logo field is required in seo settings.', 'logo.required' => 'The logo field is required in seo settings.',
'favicon.required' => 'The favicon 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_name.required' => 'The from name field is required in mail settings.',
'from_email.required' => 'The from email field is required in mail settings.', 'from_email.required' => 'The from email field is required in mail settings.',
]; ];
} }
} }
...@@ -28,16 +28,16 @@ class RegisterRequest extends Request ...@@ -28,16 +28,16 @@ class RegisterRequest extends Request
public function rules() public function rules()
{ {
return [ return [
'first_name' => 'required|max:255', 'first_name' => 'required|max:255',
'last_name' => 'required|max:255', 'last_name' => 'required|max:255',
'email' => ['required', 'email', 'max:255', Rule::unique('users')], 'email' => ['required', 'email', 'max:255', Rule::unique('users')],
'password' => 'required|min:8|confirmed|regex:"^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).{8,}$"', 'password' => 'required|min:8|confirmed|regex:"^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).{8,}$"',
'state_id' => 'required', 'state_id' => 'required',
'city_id' => 'required', 'city_id' => 'required',
'zip_code' => 'required', 'zip_code' => 'required',
'ssn' => 'required', 'ssn' => 'required',
'is_term_accept' => 'required', 'is_term_accept' => 'required',
'g-recaptcha-response' => 'required_if:captcha_status,true|captcha', 'g-recaptcha-response' => 'required_if:captcha_status,true|captcha',
]; ];
} }
......
...@@ -28,13 +28,13 @@ class UpdateProfileRequest extends Request ...@@ -28,13 +28,13 @@ class UpdateProfileRequest extends Request
public function rules() public function rules()
{ {
return [ return [
'first_name' => 'required|max:255', 'first_name' => 'required|max:255',
'last_name' => 'required|max:255', 'last_name' => 'required|max:255',
'email' => ['sometimes', 'required', 'email', 'max:255', Rule::unique('users')], 'email' => ['sometimes', 'required', 'email', 'max:255', Rule::unique('users')],
'state_id' => 'required', 'state_id' => 'required',
'city_id' => 'required', 'city_id' => 'required',
'zip_code' => 'required', 'zip_code' => 'required',
'ssn' => 'required', 'ssn' => 'required',
]; ];
} }
} }
...@@ -106,6 +106,22 @@ class Generator ...@@ -106,6 +106,22 @@ class Generator
protected $update_permission; protected $update_permission;
protected $delete_permission; protected $delete_permission;
/**
* Routes
* 1. Edit Route
* 2. Store Route
* 3. Manage Route
* 4. Create Route
* 5. Update Route
* 6. Delete Route.
*/
protected $edit_route;
protected $store_route;
protected $index_route;
protected $create_route;
protected $update_route;
protected $delete_route;
/** /**
* Repository * Repository
* 1. Repository Name * 1. Repository Name
...@@ -206,6 +222,14 @@ class Generator ...@@ -206,6 +222,14 @@ class Generator
$this->update_permission = 'update-'.strtolower(str_singular($this->model)); $this->update_permission = 'update-'.strtolower(str_singular($this->model));
$this->delete_permission = 'delete-'.strtolower(str_singular($this->model)); $this->delete_permission = 'delete-'.strtolower(str_singular($this->model));
//Routes
$this->index_route = 'admin.'.strtolower(str_plural($this->model)).'.index';
$this->create_route = 'admin.'.strtolower(str_plural($this->model)).'.create';
$this->store_route = 'admin.'.strtolower(str_plural($this->model)).'.store';
$this->edit_route = 'admin.'.strtolower(str_plural($this->model)).'.edit';
$this->update_route = 'admin.'.strtolower(str_plural($this->model)).'.update';
$this->delete_route = 'admin.'.strtolower(str_plural($this->model)).'.destroy';
//Events //Events
$this->events = array_filter($input['event']); $this->events = array_filter($input['event']);
...@@ -342,11 +366,15 @@ class Generator ...@@ -342,11 +366,15 @@ class Generator
*/ */
public function createModel() public function createModel()
{ {
$this->createDirectory($this->getBasePath($this->attribute_namespace)); $this->createDirectory($this->getBasePath($this->removeFileNameFromEndOfNamespace($this->attribute_namespace)));
//Generate Attribute File //Generate Attribute File
$this->generateFile('Attribute', [ $this->generateFile('Attribute', [
'AttributeNamespace' => ucfirst($this->removeFileNameFromEndOfNamespace($this->attribute_namespace)), 'AttributeNamespace' => ucfirst($this->removeFileNameFromEndOfNamespace($this->attribute_namespace)),
'AttributeClass' => $this->attribute, 'AttributeClass' => $this->attribute,
'editPermission' => $this->edit_permission,
'editRoute' => $this->edit_route,
'deletePermission' => $this->delete_permission,
'deleteRoute' => $this->delete_route,
], lcfirst($this->attribute_namespace)); ], lcfirst($this->attribute_namespace));
//Generate Relationship File //Generate Relationship File
...@@ -546,13 +574,13 @@ class Generator ...@@ -546,13 +574,13 @@ class Generator
$this->createDirectory($this->getBasePath($this->table_controller_namespace, true)); $this->createDirectory($this->getBasePath($this->table_controller_namespace, true));
//replacements to be done in table controller stub //replacements to be done in table controller stub
$replacements = [ $replacements = [
'DummyNamespace' => ucfirst($this->removeFileNameFromEndOfNamespace($this->table_controller_namespace)), 'DummyNamespace' => ucfirst($this->removeFileNameFromEndOfNamespace($this->table_controller_namespace)),
'DummyRepositoryNamespace' => $this->repo_namespace, 'DummyRepositoryNamespace' => $this->repo_namespace,
'DummyManageRequestNamespace' => $this->manage_request_namespace, 'DummyManageRequestNamespace' => $this->manage_request_namespace,
'DummyTableController' => $this->table_controller, 'DummyTableController' => $this->table_controller,
'dummy_repository' => $this->repository, 'dummy_repository' => $this->repository,
'dummy_small_repo_name' => strtolower($this->model), 'dummy_small_repo_name' => strtolower($this->model),
'dummy_manage_request_name' => $this->manage_request, 'dummy_manage_request_name' => $this->manage_request,
]; ];
//generating the file //generating the file
$this->generateFile('TableController', $replacements, lcfirst($this->table_controller_namespace)); $this->generateFile('TableController', $replacements, lcfirst($this->table_controller_namespace));
...@@ -633,14 +661,14 @@ class Generator ...@@ -633,14 +661,14 @@ class Generator
$this->createDirectory($path); $this->createDirectory($path);
//Labels file //Labels file
$labels = [ $labels = [
'create' => "Create $model_singular", 'create' => "Create $model_singular",
'edit' => "Edit $model_singular", 'edit' => "Edit $model_singular",
'management' => "$model_singular Management", 'management' => "$model_singular Management",
'title' => "$model_plural_capital", 'title' => "$model_plural_capital",
'table' => [ 'table' => [
'id' => 'Id', 'id' => 'Id',
'createdat' => 'Created At', 'createdat' => 'Created At',
], ],
]; ];
//Pushing values to labels //Pushing values to labels
...@@ -657,11 +685,11 @@ class Generator ...@@ -657,11 +685,11 @@ class Generator
add_key_value_in_file($path.'/menus.php', [$model_plural => $menus], 'backend'); add_key_value_in_file($path.'/menus.php', [$model_plural => $menus], 'backend');
//Exceptions file //Exceptions file
$exceptions = [ $exceptions = [
'already_exists' => "That $model_singular already exists. Please choose a different name.", '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.", '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.", 'delete_error' => "There was a problem deleting this $model_singular. Please try again.",
'not_found' => "That $model_singular does not exist.", 'not_found' => "That $model_singular does not exist.",
'update_error' => "There was a problem updating this $model_singular. Please try again.", 'update_error' => "There was a problem updating this $model_singular. Please try again.",
]; ];
//Alerts File //Alerts File
$alerts = [ $alerts = [
...@@ -772,8 +800,8 @@ class Generator ...@@ -772,8 +800,8 @@ class Generator
} else { } else {
//Calling Artisan command to create table //Calling Artisan command to create table
Artisan::call('make:migration', [ Artisan::call('make:migration', [
'name' => 'create_'.$table.'_table', 'name' => 'create_'.$table.'_table',
'--create' => $table, '--create' => $table,
]); ]);
return Artisan::output(); return Artisan::output();
......
...@@ -101,7 +101,7 @@ abstract class Notification ...@@ -101,7 +101,7 @@ abstract class Notification
*/ */
public function setOptions(array $options) public function setOptions(array $options)
{ {
foreach ($options as $optionKey=>$option) { foreach ($options as $optionKey => $option) {
$methodName = 'set'.ucfirst($optionKey); $methodName = 'set'.ucfirst($optionKey);
$propertyName = '_'.$optionKey; $propertyName = '_'.$optionKey;
if (method_exists($methodName, $this)) { if (method_exists($methodName, $this)) {
......
...@@ -91,7 +91,7 @@ class SendEmail ...@@ -91,7 +91,7 @@ class SendEmail
break; break;
} }
// Send email code // Send email code
$message = ['data'=>$content]; $message = ['data' => $content];
return Mail::send(['html' => 'emails.template'], $message, function ($message) use ($data) { return Mail::send(['html' => 'emails.template'], $message, function ($message) use ($data) {
$message->to($data['to']); $message->to($data['to']);
......
...@@ -4,6 +4,7 @@ namespace App\Models\Access\Permission; ...@@ -4,6 +4,7 @@ namespace App\Models\Access\Permission;
use App\Models\Access\Permission\Traits\Attribute\PermissionAttribute; use App\Models\Access\Permission\Traits\Attribute\PermissionAttribute;
use App\Models\Access\Permission\Traits\Relationship\PermissionRelationship; use App\Models\Access\Permission\Traits\Relationship\PermissionRelationship;
use App\Models\ModelTrait;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Database\Eloquent\SoftDeletes;
...@@ -12,7 +13,12 @@ use Illuminate\Database\Eloquent\SoftDeletes; ...@@ -12,7 +13,12 @@ use Illuminate\Database\Eloquent\SoftDeletes;
*/ */
class Permission extends Model class Permission extends Model
{ {
use PermissionRelationship, PermissionAttribute, SoftDeletes; use ModelTrait,
SoftDeletes,
PermissionAttribute,
PermissionRelationship {
// PermissionAttribute::getEditButtonAttribute insteadof ModelTrait;
}
/** /**
* The database table used by the model. * The database table used by the model.
......
...@@ -7,42 +7,14 @@ namespace App\Models\Access\Permission\Traits\Attribute; ...@@ -7,42 +7,14 @@ namespace App\Models\Access\Permission\Traits\Attribute;
*/ */
trait PermissionAttribute trait PermissionAttribute
{ {
/**
* @return string
*/
public function getEditButtonAttribute()
{
if (access()->allow('edit-permission')) {
return '<a class="btn btn-flat btn-default" href="'.route('admin.access.permission.edit', $this).'">
<i data-toggle="tooltip" data-placement="top" title="Edit" class="fa fa-pencil"></i>
</a>';
}
}
/**
* @return string
*/
public function getDeleteButtonAttribute()
{
if (access()->allow('delete-permission')) {
return '<a class="btn btn-flat btn-default" href="'.route('admin.access.permission.destroy', $this).'" data-method="delete"
data-trans-button-cancel="'.trans('buttons.general.cancel').'"
data-trans-button-confirm="'.trans('buttons.general.crud.delete').'"
data-trans-title="'.trans('strings.backend.general.are_you_sure').'">
<i data-toggle="tooltip" data-placement="top" title="Delete" class="fa fa-trash"></i>
</a>';
}
}
/** /**
* @return string * @return string
*/ */
public function getActionButtonsAttribute() public function getActionButtonsAttribute()
{ {
return '<div class="btn-group action-btn"> return '<div class="btn-group action-btn">
'.$this->getEditButtonAttribute().' '.$this->getEditButtonAttribute('edit-permission', 'admin.access.permission.edit').'
'.$this->getDeleteButtonAttribute().' '.$this->getDeleteButtonAttribute('delete-permission', 'admin.access.permission.destroy').'
</div>'; </div>';
} }
} }
...@@ -6,6 +6,7 @@ use App\Models\Access\Role\Traits\Attribute\RoleAttribute; ...@@ -6,6 +6,7 @@ use App\Models\Access\Role\Traits\Attribute\RoleAttribute;
use App\Models\Access\Role\Traits\Relationship\RoleRelationship; use App\Models\Access\Role\Traits\Relationship\RoleRelationship;
use App\Models\Access\Role\Traits\RoleAccess; use App\Models\Access\Role\Traits\RoleAccess;
use App\Models\Access\Role\Traits\Scope\RoleScope; use App\Models\Access\Role\Traits\Scope\RoleScope;
use App\Models\ModelTrait;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Database\Eloquent\SoftDeletes;
...@@ -15,10 +16,14 @@ use Illuminate\Database\Eloquent\SoftDeletes; ...@@ -15,10 +16,14 @@ use Illuminate\Database\Eloquent\SoftDeletes;
class Role extends Model class Role extends Model
{ {
use RoleScope, use RoleScope,
ModelTrait,
RoleAccess, RoleAccess,
RoleAttribute, RoleAttribute,
RoleRelationship, RoleRelationship,
SoftDeletes; SoftDeletes {
RoleAttribute::getEditButtonAttribute insteadof ModelTrait;
RoleAttribute::getDeleteButtonAttribute insteadof ModelTrait;
}
/** /**
* The database table used by the model. * The database table used by the model.
......
...@@ -43,7 +43,7 @@ trait RoleAttribute ...@@ -43,7 +43,7 @@ trait RoleAttribute
public function getActionButtonsAttribute() public function getActionButtonsAttribute()
{ {
return '<div class="btn-group action-btn"> return '<div class="btn-group action-btn">
'.$this->getEditButtonAttribute().' '.$this->getEditButtonAttribute('edit-role', 'admin.access.role.edit').'
'.$this->getDeleteButtonAttribute().' '.$this->getDeleteButtonAttribute().'
</div>'; </div>';
} }
......
...@@ -4,14 +4,18 @@ namespace App\Models\BlogCategories; ...@@ -4,14 +4,18 @@ namespace App\Models\BlogCategories;
use App\Models\BlogCategories\Traits\Attribute\BlogCategoryAttribute; use App\Models\BlogCategories\Traits\Attribute\BlogCategoryAttribute;
use App\Models\BlogCategories\Traits\Relationship\BlogCategoryRelationship; use App\Models\BlogCategories\Traits\Relationship\BlogCategoryRelationship;
use App\Models\ModelTrait;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Database\Eloquent\SoftDeletes;
class BlogCategory extends Model class BlogCategory extends Model
{ {
use BlogCategoryAttribute, use ModelTrait,
SoftDeletes, SoftDeletes,
BlogCategoryRelationship; BlogCategoryAttribute,
BlogCategoryRelationship {
// BlogCategoryAttribute::getEditButtonAttribute insteadof ModelTrait;
}
/** /**
* The database table used by the model. * The database table used by the model.
......
...@@ -7,41 +7,14 @@ namespace App\Models\BlogCategories\Traits\Attribute; ...@@ -7,41 +7,14 @@ namespace App\Models\BlogCategories\Traits\Attribute;
*/ */
trait BlogCategoryAttribute trait BlogCategoryAttribute
{ {
/**
* @return string
*/
public function getEditButtonAttribute()
{
if (access()->allow('edit-blog-category')) {
return '<a class="btn btn-flat btn-default" href="'.route('admin.blogcategories.edit', $this).'">
<i data-toggle="tooltip" data-placement="top" title="'.trans('buttons.general.crud.edit').'" class="fa fa-pencil"></i>
</a>';
}
}
/**
* @return string
*/
public function getDeleteButtonAttribute()
{
if (access()->allow('delete-blog-category')) {
return '<a class="btn btn-flat btn-default" href="'.route('admin.blogcategories.destroy', $this).'" data-method="delete"
data-trans-button-cancel="'.trans('buttons.general.cancel').'"
data-trans-button-confirm="'.trans('buttons.general.crud.delete').'"
data-trans-title="'.trans('strings.backend.general.are_you_sure').'">
<i data-toggle="tooltip" data-placement="top" title="Delete" class="fa fa-trash"></i>
</a>';
}
}
/** /**
* @return string * @return string
*/ */
public function getActionButtonsAttribute() public function getActionButtonsAttribute()
{ {
return '<div class="btn-group action-btn"> return '<div class="btn-group action-btn">
'.$this->getEditButtonAttribute().' '.$this->getEditButtonAttribute('edit-blog-category', 'admin.blogcategories.edit').'
'.$this->getDeleteButtonAttribute().' '.$this->getDeleteButtonAttribute('delete-blog-category', 'admin.blogcategories.destroy').'
</div>'; </div>';
} }
} }
...@@ -4,14 +4,18 @@ namespace App\Models\BlogTags; ...@@ -4,14 +4,18 @@ namespace App\Models\BlogTags;
use App\Models\BlogTags\Traits\Attribute\BlogTagAttribute; use App\Models\BlogTags\Traits\Attribute\BlogTagAttribute;
use App\Models\BlogTags\Traits\Relationship\BlogTagRelationship; use App\Models\BlogTags\Traits\Relationship\BlogTagRelationship;
use App\Models\ModelTrait;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Database\Eloquent\SoftDeletes;
class BlogTag extends Model class BlogTag extends Model
{ {
use BlogTagAttribute, use ModelTrait,
SoftDeletes, SoftDeletes,
BlogTagRelationship; BlogTagAttribute,
BlogTagRelationship{
// BlogTagAttribute::getEditButtonAttribute insteadof ModelTrait;
}
/** /**
* The database table used by the model. * The database table used by the model.
......
...@@ -7,41 +7,14 @@ namespace App\Models\BlogTags\Traits\Attribute; ...@@ -7,41 +7,14 @@ namespace App\Models\BlogTags\Traits\Attribute;
*/ */
trait BlogTagAttribute trait BlogTagAttribute
{ {
/**
* @return string
*/
public function getEditButtonAttribute()
{
if (access()->allow('edit-blog-tag')) {
return '<a class="btn btn-flat btn-default" href="'.route('admin.blogtags.edit', $this).'">
<i data-toggle="tooltip" data-placement="top" title="'.trans('buttons.general.crud.edit').'" class="fa fa-pencil"></i>
</a>';
}
}
/**
* @return string
*/
public function getDeleteButtonAttribute()
{
if (access()->allow('delete-blog-tag')) {
return '<a class="btn btn-flat btn-default" href="'.route('admin.blogtags.destroy', $this).'" data-method="delete"
data-trans-button-cancel="'.trans('buttons.general.cancel').'"
data-trans-button-confirm="'.trans('buttons.general.crud.delete').'"
data-trans-title="'.trans('strings.backend.general.are_you_sure').'">
<i data-toggle="tooltip" data-placement="top" title="'.trans('buttons.general.crud.delete').'" class="fa fa-trash"></i>
</a>';
}
}
/** /**
* @return string * @return string
*/ */
public function getActionButtonsAttribute() public function getActionButtonsAttribute()
{ {
return '<div class="btn-group action-btn"> return '<div class="btn-group action-btn">
'.$this->getEditButtonAttribute().' '.$this->getEditButtonAttribute('edit-blog-tag', 'admin.blogtags.edit').'
'.$this->getDeleteButtonAttribute().' '.$this->getDeleteButtonAttribute('delete-blog-tag', 'admin.blogtags.destroy').'
</div>'; </div>';
} }
} }
...@@ -4,14 +4,18 @@ namespace App\Models\Blogs; ...@@ -4,14 +4,18 @@ namespace App\Models\Blogs;
use App\Models\Blogs\Traits\Attribute\BlogAttribute; use App\Models\Blogs\Traits\Attribute\BlogAttribute;
use App\Models\Blogs\Traits\Relationship\BlogRelationship; use App\Models\Blogs\Traits\Relationship\BlogRelationship;
use App\Models\ModelTrait;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Database\Eloquent\SoftDeletes;
class Blog extends Model class Blog extends Model
{ {
use BlogAttribute, use ModelTrait,
BlogRelationship, SoftDeletes,
SoftDeletes; BlogAttribute,
BlogRelationship {
// BlogAttribute::getEditButtonAttribute insteadof ModelTrait;
}
/** /**
* The database table used by the model. * The database table used by the model.
......
...@@ -7,42 +7,14 @@ namespace App\Models\Blogs\Traits\Attribute; ...@@ -7,42 +7,14 @@ namespace App\Models\Blogs\Traits\Attribute;
*/ */
trait BlogAttribute trait BlogAttribute
{ {
/**
* @return string
*/
public function getEditButtonAttribute()
{
if (access()->allow('edit-blog')) {
return '<a href="'.route('admin.blogs.edit', $this).'" class="btn btn-flat btn-default">
<i data-toggle="tooltip" data-placement="top" title="Edit" class="fa fa-pencil"></i>
</a>';
}
}
/**
* @return string
*/
public function getDeleteButtonAttribute()
{
if (access()->allow('delete-blog')) {
return '<a href="'.route('admin.blogs.destroy', $this).'"
class="btn btn-flat btn-default" data-method="delete"
data-trans-button-cancel="'.trans('buttons.general.cancel').'"
data-trans-button-confirm="'.trans('buttons.general.crud.delete').'"
data-trans-title="'.trans('strings.backend.general.are_you_sure').'">
<i data-toggle="tooltip" data-placement="top" title="Delete" class="fa fa-trash"></i>
</a>';
}
}
/** /**
* @return string * @return string
*/ */
public function getActionButtonsAttribute() public function getActionButtonsAttribute()
{ {
return '<div class="btn-group action-btn">'. return '<div class="btn-group action-btn">'.
$this->getEditButtonAttribute(). $this->getEditButtonAttribute('edit-blog', 'admin.blogs.edit').
$this->getDeleteButtonAttribute(). $this->getDeleteButtonAttribute('delete-blog', 'admin.blogs.destroy').
'</div>'; '</div>';
} }
} }
...@@ -3,13 +3,17 @@ ...@@ -3,13 +3,17 @@
namespace App\Models\CMSPages; namespace App\Models\CMSPages;
use App\Models\CMSPages\Traits\Attribute\CMSPageAttribute; use App\Models\CMSPages\Traits\Attribute\CMSPageAttribute;
use App\Models\ModelTrait;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Database\Eloquent\SoftDeletes;
class CMSPage extends Model class CMSPage extends Model
{ {
use CMSPageAttribute, use ModelTrait,
SoftDeletes; SoftDeletes,
CMSPageAttribute {
// CMSPageAttribute::getEditButtonAttribute insteadof ModelTrait;
}
/** /**
* The database table used by the model. * The database table used by the model.
......
...@@ -7,41 +7,14 @@ namespace App\Models\CMSPages\Traits\Attribute; ...@@ -7,41 +7,14 @@ namespace App\Models\CMSPages\Traits\Attribute;
*/ */
trait CMSPageAttribute trait CMSPageAttribute
{ {
/**
* @return string
*/
public function getEditButtonAttribute()
{
if (access()->allow('edit-cms-pages')) {
return '<a class="btn btn-flat btn-default" href="'.route('admin.cmspages.edit', $this).'">
<i data-toggle="tooltip" data-placement="top" title="'.trans('buttons.general.crud.edit').'" class="fa fa-pencil"></i>
</a>';
}
}
/**
* @return string
*/
public function getDeleteButtonAttribute()
{
if (access()->allow('delete-cms-pages')) {
return '<a class="btn btn-flat btn-default" href="'.route('admin.cmspages.destroy', $this).'" data-method="delete"
data-trans-button-cancel="'.trans('buttons.general.cancel').'"
data-trans-button-confirm="'.trans('buttons.general.crud.delete').'"
data-trans-title="'.trans('strings.backend.general.are_you_sure').'">
<i data-toggle="tooltip" data-placement="top" title="Delete" class="fa fa-trash"></i>
</a>';
}
}
/** /**
* @return string * @return string
*/ */
public function getActionButtonsAttribute() public function getActionButtonsAttribute()
{ {
return '<div class="btn-group action-btn"> return '<div class="btn-group action-btn">
'.$this->getEditButtonAttribute().' '.$this->getEditButtonAttribute('edit-cms-pages', 'admin.cmspages.edit').'
'.$this->getDeleteButtonAttribute().' '.$this->getDeleteButtonAttribute('delete-cms-pages', 'admin.cmspages.destroy').'
</div>'; </div>';
} }
} }
...@@ -3,13 +3,17 @@ ...@@ -3,13 +3,17 @@
namespace App\Models\EmailTemplates; namespace App\Models\EmailTemplates;
use App\Models\EmailTemplates\Traits\Attribute\EmailTemplateAttribute; use App\Models\EmailTemplates\Traits\Attribute\EmailTemplateAttribute;
use App\Models\ModelTrait;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Database\Eloquent\SoftDeletes;
class EmailTemplate extends Model class EmailTemplate extends Model
{ {
use EmailTemplateAttribute, use ModelTrait,
SoftDeletes; SoftDeletes,
EmailTemplateAttribute {
// EmailTemplateAttribute::getEditButtonAttribute insteadof ModelTrait;
}
/** /**
* The database table used by the model. * The database table used by the model.
......
...@@ -7,36 +7,11 @@ namespace App\Models\EmailTemplates\Traits\Attribute; ...@@ -7,36 +7,11 @@ namespace App\Models\EmailTemplates\Traits\Attribute;
*/ */
trait EmailTemplateAttribute trait EmailTemplateAttribute
{ {
/**
* @return string
*/
public function getEditButtonAttribute()
{
if (access()->allow('edit-email-template')) {
return '<a class="btn btn-flat btn-default" href="'.route('admin.emailtemplates.edit', $this).'" class="btn btn-xs btn-primary"><i class="fa fa-pencil" data-toggle="tooltip" data-placement="top" title="'.trans('buttons.general.crud.edit').'"></i></a> ';
}
}
/**
* @return string
*/
public function getDeleteButtonAttribute()
{
if (access()->allow('delete-email-template')) {
return '<a href="'.route('admin.emailtemplates.destroy', $this).'"
data-method="delete"
data-trans-button-cancel="'.trans('buttons.general.cancel').'"
data-trans-button-confirm="'.trans('buttons.general.crud.delete').'"
data-trans-title="'.trans('strings.backend.general.are_you_sure').'"
class="btn btn-xs btn-danger"><i class="fa fa-times" data-toggle="tooltip" data-placement="top" title="'.trans('buttons.general.crud.delete').'"></i></a>';
}
}
/** /**
* @return string * @return string
*/ */
public function getActionButtonsAttribute() public function getActionButtonsAttribute()
{ {
return '<div class="btn-group action-btn">'.$this->getEditButtonAttribute().'</div>'; return '<div class="btn-group action-btn">'.$this->getEditButtonAttribute('edit-email-template', 'admin.emailtemplates.edit').'</div>';
} }
} }
...@@ -3,12 +3,17 @@ ...@@ -3,12 +3,17 @@
namespace App\Models\Faqs; namespace App\Models\Faqs;
use App\Models\Faqs\Traits\Attribute\FaqAttribute; use App\Models\Faqs\Traits\Attribute\FaqAttribute;
use App\Models\ModelTrait;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Database\Eloquent\SoftDeletes;
class Faq extends Model class Faq extends Model
{ {
use FaqAttribute, SoftDeletes; use ModelTrait,
SoftDeletes,
FaqAttribute {
// FaqAttribute::getEditButtonAttribute insteadof ModelTrait;
}
/** /**
* The database table used by the model. * The database table used by the model.
......
...@@ -7,34 +7,6 @@ namespace App\Models\Faqs\Traits\Attribute; ...@@ -7,34 +7,6 @@ namespace App\Models\Faqs\Traits\Attribute;
*/ */
trait FaqAttribute trait FaqAttribute
{ {
/**
* @return string
*/
public function getEditButtonAttribute()
{
if (access()->allow('edit-faq')) {
return '<a href="'.route('admin.faqs.edit', $this).'" class="btn btn-flat btn-default">
<i data-toggle="tooltip" data-placement="top" title="Edit" class="fa fa-pencil"></i>
</a>';
}
}
/**
* @return string
*/
public function getDeleteButtonAttribute()
{
if (access()->allow('delete-faq')) {
return '<a href="'.route('admin.faqs.destroy', $this).'"
class="btn btn-flat btn-default" data-method="delete"
data-trans-button-cancel="'.trans('buttons.general.cancel').'"
data-trans-button-confirm="'.trans('buttons.general.crud.delete').'"
data-trans-title="'.trans('strings.backend.general.are_you_sure').'">
<i data-toggle="tooltip" data-placement="top" title="Delete" class="fa fa-trash"></i>
</a>';
}
}
/** /**
* @return string * @return string
*/ */
...@@ -83,8 +55,8 @@ trait FaqAttribute ...@@ -83,8 +55,8 @@ trait FaqAttribute
public function getActionButtonsAttribute() public function getActionButtonsAttribute()
{ {
return '<div class="btn-group action-btn">'. return '<div class="btn-group action-btn">'.
$this->getEditButtonAttribute(). $this->getEditButtonAttribute('edit-faq', 'admin.faqs.edit').
$this->getDeleteButtonAttribute(). $this->getDeleteButtonAttribute('delete-faq', 'admin.faqs.destroy').
$this->getStatusButtonAttribute(). $this->getStatusButtonAttribute().
'</div>'; '</div>';
} }
......
...@@ -3,13 +3,17 @@ ...@@ -3,13 +3,17 @@
namespace App\Models\Menu; namespace App\Models\Menu;
use App\Models\Menu\Traits\Attribute\MenuAttribute; use App\Models\Menu\Traits\Attribute\MenuAttribute;
use App\Models\ModelTrait;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Database\Eloquent\SoftDeletes;
class Menu extends Model class Menu extends Model
{ {
use MenuAttribute, use ModelTrait,
SoftDeletes; SoftDeletes,
MenuAttribute {
// MenuAttribute::getEditButtonAttribute insteadof ModelTrait;
}
/** /**
* The database table used by the model. * The database table used by the model.
......
...@@ -7,41 +7,14 @@ namespace App\Models\Menu\Traits\Attribute; ...@@ -7,41 +7,14 @@ namespace App\Models\Menu\Traits\Attribute;
*/ */
trait MenuAttribute trait MenuAttribute
{ {
/**
* @return string
*/
public function getEditButtonAttribute()
{
if (access()->allow('edit-menu')) {
return '<a class="btn btn-flat btn-default" href="'.route('admin.menus.edit', $this).'">
<i data-toggle="tooltip" data-placement="top" title="'.trans('buttons.general.crud.edit').'" class="fa fa-pencil"></i>
</a>';
}
}
/**
* @return string
*/
public function getDeleteButtonAttribute()
{
if (access()->allow('delete-menu')) {
return '<a class="btn btn-flat btn-default" href="'.route('admin.menus.destroy', $this).'" data-method="delete"
data-trans-button-cancel="'.trans('buttons.general.cancel').'"
data-trans-button-confirm="'.trans('buttons.general.crud.delete').'"
data-trans-title="'.trans('strings.backend.general.are_you_sure').'">
<i data-toggle="tooltip" data-placement="top" title="Delete" class="fa fa-trash"></i>
</a>';
}
}
/** /**
* @return string * @return string
*/ */
public function getActionButtonsAttribute() public function getActionButtonsAttribute()
{ {
return '<div class="btn-group action-btn"> return '<div class="btn-group action-btn">
'.$this->getEditButtonAttribute().' '.$this->getEditButtonAttribute('edit-menu', 'admin.menus.edit').'
'.$this->getDeleteButtonAttribute().' '.$this->getDeleteButtonAttribute('delete-menu', 'admin.menus.destroy').'
</div>'; </div>';
} }
} }
<?php
namespace App\Models;
trait ModelTrait
{
/**
* @return string
*/
public function getEditButtonAttribute($permission, $route)
{
if (access()->allow($permission)) {
return '<a href="'.route($route, $this).'" class="btn btn-flat btn-default">
<i data-toggle="tooltip" data-placement="top" title="Edit" class="fa fa-pencil"></i>
</a>';
}
}
/**
* @return string
*/
public function getDeleteButtonAttribute($permission, $route)
{
if (access()->allow($permission)) {
return '<a href="'.route($route, $this).'"
class="btn btn-flat btn-default" data-method="delete"
data-trans-button-cancel="'.trans('buttons.general.cancel').'"
data-trans-button-confirm="'.trans('buttons.general.crud.delete').'"
data-trans-title="'.trans('strings.backend.general.are_you_sure').'">
<i data-toggle="tooltip" data-placement="top" title="Delete" class="fa fa-trash"></i>
</a>';
}
}
}
...@@ -53,7 +53,7 @@ class PasswordResetRepository extends BaseRepository ...@@ -53,7 +53,7 @@ class PasswordResetRepository extends BaseRepository
*/ */
public function update($attributes) public function update($attributes)
{ {
$token = ['token'=>$attributes['token']]; $token = ['token' => $attributes['token']];
return $this->query()->where('email', $attributes['email'])->update($attributes); return $this->query()->where('email', $attributes['email'])->update($attributes);
} }
......
...@@ -57,7 +57,7 @@ class UserRepository extends BaseRepository ...@@ -57,7 +57,7 @@ class UserRepository extends BaseRepository
*/ */
public function resetpassword($data) public function resetpassword($data)
{ {
$pass = ['password'=>bcrypt($data['password'])]; $pass = ['password' => bcrypt($data['password'])];
return $this->query()->where('email', $data['email'])->update($pass); return $this->query()->where('email', $data['email'])->update($pass);
} }
...@@ -72,13 +72,13 @@ class UserRepository extends BaseRepository ...@@ -72,13 +72,13 @@ class UserRepository extends BaseRepository
return $this->query() return $this->query()
->select('first_name', 'last_name', 'email', 'address', 'country_id', 'state_id', 'city_id', 'zip_code', 'ssn', 'status', 'created_at', 'updated_at') ->select('first_name', 'last_name', 'email', 'address', 'country_id', 'state_id', 'city_id', 'zip_code', 'ssn', 'status', 'created_at', 'updated_at')
->where('id', $id) ->where('id', $id)
->with(['country'=> function ($query) { ->with(['country' => function ($query) {
$query->select('id', 'country'); $query->select('id', 'country');
}]) }])
->with(['state'=> function ($query) { ->with(['state' => function ($query) {
$query->select('id', 'state'); $query->select('id', 'state');
}]) }])
->with(['city'=> function ($query) { ->with(['city' => function ($query) {
$query->select('id', 'city'); $query->select('id', 'city');
}]) }])
->get() ->get()
...@@ -150,7 +150,7 @@ class UserRepository extends BaseRepository ...@@ -150,7 +150,7 @@ class UserRepository extends BaseRepository
**/ **/
public function confirmUser($email) public function confirmUser($email)
{ {
$confirmed = ['confirmed'=>'1']; $confirmed = ['confirmed' => '1'];
return $this->query()->where('email', $email)->update($confirmed); return $this->query()->where('email', $email)->update($confirmed);
} }
......
...@@ -53,7 +53,7 @@ class RoleRepository extends BaseRepository ...@@ -53,7 +53,7 @@ class RoleRepository extends BaseRepository
DB::raw("GROUP_CONCAT( DISTINCT permissions.display_name SEPARATOR '<br/>') as permission_name"), DB::raw("GROUP_CONCAT( DISTINCT permissions.display_name SEPARATOR '<br/>') as permission_name"),
DB::raw('(SELECT COUNT(role_user.id) FROM role_user LEFT JOIN users ON role_user.user_id = users.id WHERE role_user.role_id = roles.id AND users.deleted_at IS NULL) AS userCount'), DB::raw('(SELECT COUNT(role_user.id) FROM role_user LEFT JOIN users ON role_user.user_id = users.id WHERE role_user.role_id = roles.id AND users.deleted_at IS NULL) AS userCount'),
]) ])
->groupBy('roles.id'); ->groupBy(config('access.roles_table').'.id', config('access.roles_table').'.name', config('access.roles_table').'.all', config('access.roles_table').'.sort');
} }
/** /**
......
...@@ -66,10 +66,10 @@ class ModuleRepository extends BaseRepository ...@@ -66,10 +66,10 @@ class ModuleRepository extends BaseRepository
} }
$mod = [ $mod = [
'view_permission_id' => "view-$model-permission", 'view_permission_id' => "view-$model-permission",
'name' => $input['name'], 'name' => $input['name'],
'url' => 'admin.'.str_plural($model).'.index', 'url' => 'admin.'.str_plural($model).'.index',
'created_by' => access()->user()->id, 'created_by' => access()->user()->id,
]; ];
$create = Module::create($mod); $create = Module::create($mod);
......
...@@ -181,8 +181,8 @@ class UserRepository extends BaseRepository ...@@ -181,8 +181,8 @@ class UserRepository extends BaseRepository
} else { } else {
// Update the users information, token and avatar can be updated. // Update the users information, token and avatar can be updated.
$user->providers()->update([ $user->providers()->update([
'token' => $data->token, 'token' => $data->token,
'avatar' => $data->avatar, 'avatar' => $data->avatar,
]); ]);
} }
......
...@@ -28,14 +28,14 @@ return [ ...@@ -28,14 +28,14 @@ return [
'register' => [ 'register' => [
'rules' => [ 'rules' => [
'first_name' => 'required|max:255', 'first_name' => 'required|max:255',
'last_name' => 'required|max:255', 'last_name' => 'required|max:255',
'email' => 'required|email|max:255|unique:users', 'email' => 'required|email|max:255|unique:users',
'password' => 'required|min:6|confirmed', 'password' => 'required|min:6|confirmed',
'state_id' => 'required', 'state_id' => 'required',
'city_id' => 'required', 'city_id' => 'required',
'zip_code' => 'required', 'zip_code' => 'required',
'ssn' => 'required', 'ssn' => 'required',
], ],
], ],
......
...@@ -4,17 +4,17 @@ return [ ...@@ -4,17 +4,17 @@ return [
/* /*
* DataTables search options. * DataTables search options.
*/ */
'search' => [ 'search' => [
/* /*
* Smart search will enclose search keyword with wildcard string "%keyword%". * Smart search will enclose search keyword with wildcard string "%keyword%".
* SQL: column LIKE "%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 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. * Case insensitive will search the keyword in lower case format.
...@@ -26,19 +26,19 @@ return [ ...@@ -26,19 +26,19 @@ return [
* Wild card will add "%" in between every characters of the keyword. * Wild card will add "%" in between every characters of the keyword.
* SQL: column LIKE "%k%e%y%w%o%r%d%" * SQL: column LIKE "%k%e%y%w%o%r%d%"
*/ */
'use_wildcards' => false, 'use_wildcards' => false,
], ],
/* /*
* DataTables internal index id response column name. * DataTables internal index id response column name.
*/ */
'index_column' => 'DT_Row_Index', 'index_column' => 'DT_Row_Index',
/* /*
* List of available builders for DataTables. * List of available builders for DataTables.
* This is where you can register your custom dataTables builder. * This is where you can register your custom dataTables builder.
*/ */
'engines' => [ 'engines' => [
'eloquent' => \Yajra\DataTables\EloquentDataTable::class, 'eloquent' => \Yajra\DataTables\EloquentDataTable::class,
'query' => \Yajra\DataTables\QueryDataTable::class, 'query' => \Yajra\DataTables\QueryDataTable::class,
'collection' => \Yajra\DataTables\CollectionDataTable::class, 'collection' => \Yajra\DataTables\CollectionDataTable::class,
...@@ -47,7 +47,7 @@ return [ ...@@ -47,7 +47,7 @@ return [
/* /*
* DataTables accepted builder to engine mapping. * DataTables accepted builder to engine mapping.
*/ */
'builders' => [ 'builders' => [
Illuminate\Database\Eloquent\Relations\Relation::class => 'eloquent', Illuminate\Database\Eloquent\Relations\Relation::class => 'eloquent',
Illuminate\Database\Eloquent\Builder::class => 'eloquent', Illuminate\Database\Eloquent\Builder::class => 'eloquent',
Illuminate\Database\Query\Builder::class => 'query', Illuminate\Database\Query\Builder::class => 'query',
...@@ -67,28 +67,28 @@ return [ ...@@ -67,28 +67,28 @@ return [
* 'throw' - Throws a \Yajra\DataTables\Exceptions\Exception. Use your custom error handler if needed. * '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. * '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. * Default columns definition of dataTable utility functions.
*/ */
'columns' => [ 'columns' => [
/* /*
* List of columns hidden/removed on json response. * 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. * 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. * 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. * List of columns that are allowed to display html content.
* Note: Adding columns to list will make us available to XSS attacks. * 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. * List of columns are are forbidden from being searched/sorted.
...@@ -105,7 +105,7 @@ return [ ...@@ -105,7 +105,7 @@ return [
/* /*
* JsonResponse header and options config. * JsonResponse header and options config.
*/ */
'json' => [ 'json' => [
'header' => [], 'header' => [],
'options' => 0, 'options' => 0,
], ],
......
...@@ -6,7 +6,7 @@ return [ ...@@ -6,7 +6,7 @@ return [
// By default, images are presented at 80px by 80px if no size parameter is supplied. // 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 // 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): // 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 // the fallback image, can be a string or a url
// for more info, visit: http://en.gravatar.com/site/implement/images/#default-image // for more info, visit: http://en.gravatar.com/site/implement/images/#default-image
......
...@@ -7,13 +7,13 @@ return [ ...@@ -7,13 +7,13 @@ return [
| Log files storage path | Log files storage path
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------
*/ */
'storage-path' => storage_path('logs'), 'storage-path' => storage_path('logs'),
/* ------------------------------------------------------------------------------------------------ /* ------------------------------------------------------------------------------------------------
| Log files pattern | Log files pattern
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------
*/ */
'pattern' => [ 'pattern' => [
'prefix' => Filesystem::PATTERN_PREFIX, // 'laravel-' '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]' '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' 'extension' => Filesystem::PATTERN_EXTENSION, // '.log'
...@@ -26,17 +26,17 @@ return [ ...@@ -26,17 +26,17 @@ return [
| 'auto', 'ar', 'de', 'en', 'es', 'fa', 'fr', 'hu', 'hy', 'it', 'ko', 'nl', 'pl', 'pt_BR', 'ro', 'ru', | 'auto', 'ar', 'de', 'en', 'es', 'fa', 'fr', 'hu', 'hy', 'it', 'ko', 'nl', 'pl', 'pt_BR', 'ro', 'ru',
| 'sv', 'th', 'tr', 'zh-TW', 'zh' | 'sv', 'th', 'tr', 'zh-TW', 'zh'
*/ */
'locale' => 'auto', 'locale' => 'auto',
/* ------------------------------------------------------------------------------------------------ /* ------------------------------------------------------------------------------------------------
| Route settings | Route settings
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------
*/ */
'route' => [ 'route' => [
'enabled' => true, 'enabled' => true,
'attributes' => [ 'attributes' => [
'prefix' => 'admin/log-viewer', 'prefix' => 'admin/log-viewer',
'middleware' => ['web', 'admin'], 'middleware' => ['web', 'admin'],
], ],
...@@ -47,20 +47,20 @@ return [ ...@@ -47,20 +47,20 @@ return [
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------
| This defines how many log entries are displayed per page. | This defines how many log entries are displayed per page.
*/ */
'per-page' => 30, 'per-page' => 30,
/* ------------------------------------------------------------------------------------------------ /* ------------------------------------------------------------------------------------------------
| LogViewer's Facade | LogViewer's Facade
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------
*/ */
'facade' => 'LogViewer', 'facade' => 'LogViewer',
/* ------------------------------------------------------------------------------------------------ /* ------------------------------------------------------------------------------------------------
| Download settings | Download settings
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------
*/ */
'download' => [ 'download' => [
'prefix' => 'laravel-', 'prefix' => 'laravel-',
'extension' => 'log', 'extension' => 'log',
], ],
...@@ -69,8 +69,8 @@ return [ ...@@ -69,8 +69,8 @@ return [
| Menu settings | Menu settings
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------
*/ */
'menu' => [ 'menu' => [
'filter-route' => 'log-viewer::logs.filter', 'filter-route' => 'log-viewer::logs.filter',
'icons-enabled' => true, 'icons-enabled' => true,
], ],
...@@ -100,7 +100,7 @@ return [ ...@@ -100,7 +100,7 @@ return [
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------
*/ */
'colors' => [ 'colors' => [
'levels' => [ 'levels' => [
'empty' => '#D1D1D1', 'empty' => '#D1D1D1',
'all' => '#8A8A8A', 'all' => '#8A8A8A',
'emergency' => '#B71C1C', 'emergency' => '#B71C1C',
......
...@@ -13,7 +13,7 @@ return [ ...@@ -13,7 +13,7 @@ return [
| Localization | Localization
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------
*/ */
'lang' => app()->getLocale(), 'lang' => app()->getLocale(),
/* ------------------------------------------------------------------------------------------------ /* ------------------------------------------------------------------------------------------------
| Attributes | Attributes
......
...@@ -13,7 +13,7 @@ trait DisableForeignKeys ...@@ -13,7 +13,7 @@ trait DisableForeignKeys
* @var array * @var array
*/ */
private $commands = [ private $commands = [
'mysql' => [ 'mysql' => [
'enable' => 'SET FOREIGN_KEY_CHECKS=1;', 'enable' => 'SET FOREIGN_KEY_CHECKS=1;',
'disable' => 'SET FOREIGN_KEY_CHECKS=0;', 'disable' => 'SET FOREIGN_KEY_CHECKS=0;',
], ],
......
...@@ -19,59 +19,59 @@ class EmailTemplatePlaceholderTableSeeder extends Seeder ...@@ -19,59 +19,59 @@ class EmailTemplatePlaceholderTableSeeder extends Seeder
$data = [ $data = [
[ [
'name' => 'app_name', 'name' => 'app_name',
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
'updated_at' => Carbon::now(), 'updated_at' => Carbon::now(),
], ],
[ [
'name' => 'name', 'name' => 'name',
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
'updated_at' => Carbon::now(), 'updated_at' => Carbon::now(),
], ],
[ [
'name' => 'email', 'name' => 'email',
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
'updated_at' => Carbon::now(), 'updated_at' => Carbon::now(),
], ],
[ [
'name' => 'password', 'name' => 'password',
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
'updated_at' => Carbon::now(), 'updated_at' => Carbon::now(),
], ],
[ [
'name' => 'contact-details', 'name' => 'contact-details',
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
'updated_at' => Carbon::now(), 'updated_at' => Carbon::now(),
], ],
[ [
'name' => 'confirmation_link', 'name' => 'confirmation_link',
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
'updated_at' => Carbon::now(), 'updated_at' => Carbon::now(),
], ],
[ [
'name' => 'password_reset_link', 'name' => 'password_reset_link',
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
'updated_at' => Carbon::now(), 'updated_at' => Carbon::now(),
], ],
[ [
'name' => 'header_logo', 'name' => 'header_logo',
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
'updated_at' => Carbon::now(), 'updated_at' => Carbon::now(),
], ],
[ [
'name' => 'footer_logo', 'name' => 'footer_logo',
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
'updated_at' => Carbon::now(), 'updated_at' => Carbon::now(),
], ],
[ [
'name' => 'unscribe_link', 'name' => 'unscribe_link',
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
'updated_at' => Carbon::now(), 'updated_at' => Carbon::now(),
], ],
[ [
'name' => 'status', 'name' => 'status',
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
'updated_at' => Carbon::now(), 'updated_at' => Carbon::now(),
], ],
]; ];
......
...@@ -19,10 +19,10 @@ class EmailTemplateTableSeeder extends Seeder ...@@ -19,10 +19,10 @@ class EmailTemplateTableSeeder extends Seeder
$data = [ $data = [
[ [
'title' => 'User Registration', 'title' => 'User Registration',
'type_id' => '1', 'type_id' => '1',
'subject' => 'You have succesfully registerd', 'subject' => 'You have succesfully registerd',
'body' => '<center> 'body' => '<center>
<table id="bodyTable" border="0" width="100%" cellspacing="0" cellpadding="0" align="center"> <table id="bodyTable" border="0" width="100%" cellspacing="0" cellpadding="0" align="center">
<tbody> <tbody>
<tr> <tr>
...@@ -75,18 +75,18 @@ class EmailTemplateTableSeeder extends Seeder ...@@ -75,18 +75,18 @@ class EmailTemplateTableSeeder extends Seeder
</tbody> </tbody>
</table> </table>
</center>', </center>',
'status' => '1', 'status' => '1',
'created_by' => '1', 'created_by' => '1',
'updated_by' => null, 'updated_by' => null,
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
'updated_at' => Carbon::now(), 'updated_at' => Carbon::now(),
], ],
[ [
'title' => 'Create User', 'title' => 'Create User',
'type_id' => '2', 'type_id' => '2',
'subject' => 'Congratulations! your account has been created', 'subject' => 'Congratulations! your account has been created',
'body' => '<center> 'body' => '<center>
<table id="bodyTable" border="0" width="100%" cellspacing="0" cellpadding="0" align="center"> <table id="bodyTable" border="0" width="100%" cellspacing="0" cellpadding="0" align="center">
<tbody> <tbody>
<tr> <tr>
...@@ -147,18 +147,18 @@ class EmailTemplateTableSeeder extends Seeder ...@@ -147,18 +147,18 @@ class EmailTemplateTableSeeder extends Seeder
</tbody> </tbody>
</table> </table>
</center>', </center>',
'status' => '1', 'status' => '1',
'created_by' => '1', 'created_by' => '1',
'updated_by' => null, 'updated_by' => null,
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
'updated_at' => Carbon::now(), 'updated_at' => Carbon::now(),
], ],
[ [
'title' => 'Activate / Deactivate User', 'title' => 'Activate / Deactivate User',
'type_id' => '3', 'type_id' => '3',
'subject' => 'Your account has been [status]', 'subject' => 'Your account has been [status]',
'body' => '<center> 'body' => '<center>
<table id="bodyTable" border="0" width="100%" cellspacing="0" cellpadding="0" align="center"> <table id="bodyTable" border="0" width="100%" cellspacing="0" cellpadding="0" align="center">
<tbody> <tbody>
<tr> <tr>
...@@ -211,18 +211,18 @@ class EmailTemplateTableSeeder extends Seeder ...@@ -211,18 +211,18 @@ class EmailTemplateTableSeeder extends Seeder
</tbody> </tbody>
</table> </table>
</center>', </center>',
'status' => '1', 'status' => '1',
'created_by' => '1', 'created_by' => '1',
'updated_by' => null, 'updated_by' => null,
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
'updated_at' => Carbon::now(), 'updated_at' => Carbon::now(),
], ],
[ [
'title' => 'Change Password', 'title' => 'Change Password',
'type_id' => '4', 'type_id' => '4',
'subject' => 'Your passwprd has been changed successfully', 'subject' => 'Your passwprd has been changed successfully',
'body' => '<center> 'body' => '<center>
<table id="bodyTable" border="0" width="100%" cellspacing="0" cellpadding="0" align="center"> <table id="bodyTable" border="0" width="100%" cellspacing="0" cellpadding="0" align="center">
<tbody> <tbody>
<tr> <tr>
...@@ -277,11 +277,11 @@ class EmailTemplateTableSeeder extends Seeder ...@@ -277,11 +277,11 @@ class EmailTemplateTableSeeder extends Seeder
</tbody> </tbody>
</table> </table>
</center>', </center>',
'status' => '1', 'status' => '1',
'created_by' => '1', 'created_by' => '1',
'updated_by' => null, 'updated_by' => null,
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
'updated_at' => Carbon::now(), 'updated_at' => Carbon::now(),
], ],
]; ];
......
...@@ -19,27 +19,27 @@ class EmailTemplateTypeTableSeeder extends Seeder ...@@ -19,27 +19,27 @@ class EmailTemplateTypeTableSeeder extends Seeder
$data = [ $data = [
[ [
'name' => 'Registration', 'name' => 'Registration',
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
'updated_at' => Carbon::now(), 'updated_at' => Carbon::now(),
], ],
[ [
'name' => 'Create User', 'name' => 'Create User',
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
'updated_at' => Carbon::now(), 'updated_at' => Carbon::now(),
], ],
[ [
'name' => 'Acivate / Deactivate User', 'name' => 'Acivate / Deactivate User',
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
'updated_at' => Carbon::now(), 'updated_at' => Carbon::now(),
], ],
[ [
'name' => 'Change Password', 'name' => 'Change Password',
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
'updated_at' => Carbon::now(), 'updated_at' => Carbon::now(),
], ],
]; ];
......
...@@ -15,12 +15,12 @@ class MenuTableSeeder extends Seeder ...@@ -15,12 +15,12 @@ class MenuTableSeeder extends Seeder
{ {
DB::table(config('access.menus_table'))->truncate(); DB::table(config('access.menus_table'))->truncate();
$menu = [ $menu = [
'id' => 1, 'id' => 1,
'type' => 'backend', 'type' => 'backend',
'name' => 'Backend Sidebar Menu', '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"}]', '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_by' => 1,
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
]; ];
DB::table(config('access.menus_table'))->insert($menu); DB::table(config('access.menus_table'))->insert($menu);
......
...@@ -20,102 +20,102 @@ class ModulesTableSeeder extends Seeder ...@@ -20,102 +20,102 @@ class ModulesTableSeeder extends Seeder
$modules = [ $modules = [
[ [
'name' => trans('menus.backend.access.title'), 'name' => trans('menus.backend.access.title'),
'url' => null, 'url' => null,
'view_permission_id' => 'view-access-management', 'view_permission_id' => 'view-access-management',
'created_by' => 1, 'created_by' => 1,
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
], ],
[ [
'name' => trans('labels.backend.access.users.management'), 'name' => trans('labels.backend.access.users.management'),
'url' => 'admin.access.user.index', 'url' => 'admin.access.user.index',
'view_permission_id' => 'view-user-management', 'view_permission_id' => 'view-user-management',
'created_by' => 1, 'created_by' => 1,
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
], ],
[ [
'name' => trans('labels.backend.access.roles.management'), 'name' => trans('labels.backend.access.roles.management'),
'url' => 'admin.access.role.index', 'url' => 'admin.access.role.index',
'view_permission_id' => 'view-role-management', 'view_permission_id' => 'view-role-management',
'created_by' => 1, 'created_by' => 1,
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
], ],
[ [
'name' => trans('labels.backend.access.permissions.management'), 'name' => trans('labels.backend.access.permissions.management'),
'url' => 'admin.access.permission.index', 'url' => 'admin.access.permission.index',
'view_permission_id' => 'view-permission-management', 'view_permission_id' => 'view-permission-management',
'created_by' => 1, 'created_by' => 1,
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
], ],
[ [
'name' => trans('labels.backend.menus.title'), 'name' => trans('labels.backend.menus.title'),
'url' => 'admin.menus.index', 'url' => 'admin.menus.index',
'view_permission_id' => 'view-menu', 'view_permission_id' => 'view-menu',
'created_by' => 1, 'created_by' => 1,
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
], ],
[ [
'name' => trans('labels.backend.modules.title'), 'name' => trans('labels.backend.modules.title'),
'url' => 'admin.modules.index', 'url' => 'admin.modules.index',
'view_permission_id' => 'view-module', 'view_permission_id' => 'view-module',
'created_by' => 1, 'created_by' => 1,
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
], ],
[ [
'name' => trans('labels.backend.cmspages.title'), 'name' => trans('labels.backend.cmspages.title'),
'url' => 'admin.cmspages.index', 'url' => 'admin.cmspages.index',
'view_permission_id' => 'view-cms-pages', 'view_permission_id' => 'view-cms-pages',
'created_by' => 1, 'created_by' => 1,
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
], ],
[ [
'name' => trans('labels.backend.emailtemplates.title'), 'name' => trans('labels.backend.emailtemplates.title'),
'url' => 'admin.emailtemplates.index', 'url' => 'admin.emailtemplates.index',
'view_permission_id' => 'view-email-template', 'view_permission_id' => 'view-email-template',
'created_by' => 1, 'created_by' => 1,
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
], ],
[ [
'name' => trans('labels.backend.settings.title'), 'name' => trans('labels.backend.settings.title'),
'url' => 'admin.settings.edit', 'url' => 'admin.settings.edit',
'view_permission_id' => 'edit-settings', 'view_permission_id' => 'edit-settings',
'created_by' => 1, 'created_by' => 1,
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
], ],
[ [
'name' => trans('menus.backend.blog.management'), 'name' => trans('menus.backend.blog.management'),
'url' => null, 'url' => null,
'view_permission_id' => 'view-blog', 'view_permission_id' => 'view-blog',
'created_by' => 1, 'created_by' => 1,
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
], ],
[ [
'name' => trans('menus.backend.blogcategories.management'), 'name' => trans('menus.backend.blogcategories.management'),
'url' => 'admin.blogcategories.index', 'url' => 'admin.blogcategories.index',
'view_permission_id' => 'view-blog-category', 'view_permission_id' => 'view-blog-category',
'created_by' => 1, 'created_by' => 1,
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
], ],
[ [
'name' => trans('menus.backend.blogtags.management'), 'name' => trans('menus.backend.blogtags.management'),
'url' => 'admin.blogtags.index', 'url' => 'admin.blogtags.index',
'view_permission_id' => 'view-blog-tag', 'view_permission_id' => 'view-blog-tag',
'created_by' => 1, 'created_by' => 1,
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
], ],
[ [
'name' => trans('menus.backend.blog.management'), 'name' => trans('menus.backend.blog.management'),
'url' => 'admin.blogs.index', 'url' => 'admin.blogs.index',
'view_permission_id' => 'view-blog', 'view_permission_id' => 'view-blog',
'created_by' => 1, 'created_by' => 1,
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
], ],
[ [
'name' => trans('menus.backend.faqs.management'), 'name' => trans('menus.backend.faqs.management'),
'url' => 'admin.faqs.index', 'url' => 'admin.faqs.index',
'view_permission_id' => 'view-faq', 'view_permission_id' => 'view-faq',
'created_by' => 1, 'created_by' => 1,
'created_at' => Carbon::now(), 'created_at' => Carbon::now(),
], ],
]; ];
......
...@@ -19,7 +19,7 @@ class SettingsTableSeeder extends Seeder ...@@ -19,7 +19,7 @@ class SettingsTableSeeder extends Seeder
$data = [ $data = [
[ [
'seo_title' => env('APP_NAME'), 'seo_title' => env('APP_NAME'),
], ],
]; ];
......
This diff is collapsed.
...@@ -27,14 +27,14 @@ return [ ...@@ -27,14 +27,14 @@ return [
], ],
'users' => [ 'users' => [
'confirmation_email' => 'A new confirmation e-mail has been sent to the address on file.', 'confirmation_email' => 'A new confirmation e-mail has been sent to the address on file.',
'created' => 'The user was successfully created.', 'created' => 'The user was successfully created.',
'deleted' => 'The user was successfully deleted.', 'deleted' => 'The user was successfully deleted.',
'deleted_permanently' => 'The user was deleted permanently.', 'deleted_permanently' => 'The user was deleted permanently.',
'restored' => 'The user was successfully restored.', 'restored' => 'The user was successfully restored.',
'session_cleared' => "The user's session was successfully cleared.", 'session_cleared' => "The user's session was successfully cleared.",
'updated' => 'The user was successfully updated.', 'updated' => 'The user was successfully updated.',
'updated_password' => "The user's password was successfully updated.", 'updated_password' => "The user's password was successfully updated.",
], ],
'cmspages' => [ 'cmspages' => [
......
...@@ -16,14 +16,14 @@ return [ ...@@ -16,14 +16,14 @@ return [
'backend' => [ 'backend' => [
'access' => [ 'access' => [
'users' => [ 'users' => [
'activate' => 'Activate', 'activate' => 'Activate',
'change_password' => 'Change Password', 'change_password' => 'Change Password',
'clear_session' => 'Clear Session', 'clear_session' => 'Clear Session',
'deactivate' => 'Deactivate', 'deactivate' => 'Deactivate',
'delete_permanently' => 'Delete Permanently', 'delete_permanently' => 'Delete Permanently',
'login_as' => 'Login As :user', 'login_as' => 'Login As :user',
'resend_email' => 'Resend Confirmation E-mail', 'resend_email' => 'Resend Confirmation E-mail',
'restore_user' => 'Restore User', 'restore_user' => 'Restore User',
], ],
], ],
], ],
...@@ -41,12 +41,12 @@ return [ ...@@ -41,12 +41,12 @@ return [
'preview' => 'Preview', 'preview' => 'Preview',
'crud' => [ 'crud' => [
'create' => 'Create', 'create' => 'Create',
'add' => 'Add', 'add' => 'Add',
'delete' => 'Delete', 'delete' => 'Delete',
'edit' => 'Edit', 'edit' => 'Edit',
'update' => 'Update', 'update' => 'Update',
'view' => 'View', 'view' => 'View',
], ],
'save' => 'Save', 'save' => 'Save',
......
...@@ -27,11 +27,11 @@ return [ ...@@ -27,11 +27,11 @@ return [
], ],
'permissions' => [ 'permissions' => [
'already_exists' => 'That permission already exists. Please choose a different name.', 'already_exists' => 'That permission already exists. Please choose a different name.',
'create_error' => 'There was a problem creating this permission. Please try again.', 'create_error' => 'There was a problem creating this permission. Please try again.',
'delete_error' => 'There was a problem deleting this permission. Please try again.', 'delete_error' => 'There was a problem deleting this permission. Please try again.',
'not_found' => 'That permission does not exist.', 'not_found' => 'That permission does not exist.',
'update_error' => 'There was a problem updating this permission. Please try again.', 'update_error' => 'There was a problem updating this permission. Please try again.',
], ],
'users' => [ 'users' => [
...@@ -57,55 +57,55 @@ return [ ...@@ -57,55 +57,55 @@ return [
], ],
], ],
'cmspages' => [ 'cmspages' => [
'already_exists' => 'That CMS Page already exists. Please choose a different name.', '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.', '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.', 'delete_error' => 'There was a problem deleting this CMS Page. Please try again.',
'not_found' => 'That CMS Page does not exist.', 'not_found' => 'That CMS Page does not exist.',
'update_error' => 'There was a problem updating this CMS Page. Please try again.', 'update_error' => 'There was a problem updating this CMS Page. Please try again.',
], ],
'blogcategories' => [ 'blogcategories' => [
'already_exists' => 'That Blog Category already exists. Please choose a different name.', '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.', '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.', 'delete_error' => 'There was a problem deleting this Blog Category. Please try again.',
'not_found' => 'That Blog Category does not exist.', 'not_found' => 'That Blog Category does not exist.',
'update_error' => 'There was a problem updating this Blog Category. Please try again.', 'update_error' => 'There was a problem updating this Blog Category. Please try again.',
], ],
'blogtags' => [ 'blogtags' => [
'already_exists' => 'That Blog Tag already exists. Please choose a different name.', '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.', '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.', 'delete_error' => 'There was a problem deleting this Blog Tag. Please try again.',
'not_found' => 'That Blog Tag does not exist.', 'not_found' => 'That Blog Tag does not exist.',
'update_error' => 'There was a problem updating this Blog Tag. Please try again.', 'update_error' => 'There was a problem updating this Blog Tag. Please try again.',
], ],
'emailtemplates' => [ 'emailtemplates' => [
'already_exists' => 'That Email Template already exists. Please choose a different name.', '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.', '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.', 'delete_error' => 'There was a problem deleting this Email Template. Please try again.',
'not_found' => 'That Email Template does not exist.', 'not_found' => 'That Email Template does not exist.',
'update_error' => 'There was a problem updating this Email Template. Please try again.', 'update_error' => 'There was a problem updating this Email Template. Please try again.',
], ],
'settings' => [ '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' => [ 'menus' => [
'already_exists' => 'That Menu already exists. Please choose a different name.', 'already_exists' => 'That Menu already exists. Please choose a different name.',
'create_error' => 'There was a problem creating this Menu. Please try again.', 'create_error' => 'There was a problem creating this Menu. Please try again.',
'delete_error' => 'There was a problem deleting this Menu. Please try again.', 'delete_error' => 'There was a problem deleting this Menu. Please try again.',
'not_found' => 'That Menu does not exist.', 'not_found' => 'That Menu does not exist.',
'update_error' => 'There was a problem updating this Menu. Please try again.', 'update_error' => 'There was a problem updating this Menu. Please try again.',
], ],
'modules' => [ 'modules' => [
'already_exists' => 'That Module already exists. Please choose a different name.', 'already_exists' => 'That Module already exists. Please choose a different name.',
'create_error' => 'There was a problem creating this Module. Please try again.', 'create_error' => 'There was a problem creating this Module. Please try again.',
'delete_error' => 'There was a problem deleting this Module. Please try again.', 'delete_error' => 'There was a problem deleting this Module. Please try again.',
'not_found' => 'That Module does not exist.', 'not_found' => 'That Module does not exist.',
'update_error' => 'There was a problem updating this Module. Please try again.', 'update_error' => 'There was a problem updating this Module. Please try again.',
], ],
], ],
......
...@@ -54,11 +54,11 @@ return [ ...@@ -54,11 +54,11 @@ return [
'management' => 'Permission Management', 'management' => 'Permission Management',
'table' => [ 'table' => [
'permission' => 'Permission', 'permission' => 'Permission',
'display_name' => 'Display Name', 'display_name' => 'Display Name',
'sort' => 'Sort', 'sort' => 'Sort',
'status' => 'Status', 'status' => 'Status',
'total' => 'role total|roles total', 'total' => 'role total|roles total',
], ],
], ],
...@@ -122,11 +122,11 @@ return [ ...@@ -122,11 +122,11 @@ return [
'title' => 'CMS Pages', 'title' => 'CMS Pages',
'table' => [ 'table' => [
'title' => 'Title', 'title' => 'Title',
'status' => 'Status', 'status' => 'Status',
'createdat' => 'Created At', 'createdat' => 'Created At',
'updatedat' => 'Updated At', 'updatedat' => 'Updated At',
'all' => 'All', 'all' => 'All',
], ],
], ],
...@@ -137,11 +137,11 @@ return [ ...@@ -137,11 +137,11 @@ return [
'title' => 'Blog Category', 'title' => 'Blog Category',
'table' => [ 'table' => [
'title' => 'Blog Category', 'title' => 'Blog Category',
'status' => 'Status', 'status' => 'Status',
'createdat' => 'Created At', 'createdat' => 'Created At',
'createdby' => 'Created By', 'createdby' => 'Created By',
'all' => 'All', 'all' => 'All',
], ],
], ],
...@@ -152,11 +152,11 @@ return [ ...@@ -152,11 +152,11 @@ return [
'title' => 'Blog Tags', 'title' => 'Blog Tags',
'table' => [ 'table' => [
'title' => 'Blog Tag', 'title' => 'Blog Tag',
'status' => 'Status', 'status' => 'Status',
'createdat' => 'Created At', 'createdat' => 'Created At',
'createdby' => 'Created By', 'createdby' => 'Created By',
'all' => 'All', 'all' => 'All',
], ],
], ],
...@@ -167,12 +167,12 @@ return [ ...@@ -167,12 +167,12 @@ return [
'title' => 'Blogs', 'title' => 'Blogs',
'table' => [ 'table' => [
'title' => 'Blog', 'title' => 'Blog',
'publish' => 'PublishDateTime', 'publish' => 'PublishDateTime',
'status' => 'Status', 'status' => 'Status',
'createdat' => 'Created At', 'createdat' => 'Created At',
'createdby' => 'Created By', 'createdby' => 'Created By',
'all' => 'All', 'all' => 'All',
], ],
], ],
...@@ -183,25 +183,25 @@ return [ ...@@ -183,25 +183,25 @@ return [
'title' => 'Email Templates', 'title' => 'Email Templates',
'table' => [ 'table' => [
'title' => 'Title', 'title' => 'Title',
'subject' => 'Subject', 'subject' => 'Subject',
'status' => 'Status', 'status' => 'Status',
'createdat' => 'Created At', 'createdat' => 'Created At',
'updatedat' => 'Updated At', 'updatedat' => 'Updated At',
'all' => 'All', 'all' => 'All',
], ],
], ],
'settings' => [ 'settings' => [
'edit' => 'Edit Settings', 'edit' => 'Edit Settings',
'management' => 'Settings Management', 'management' => 'Settings Management',
'title' => 'Settings', 'title' => 'Settings',
'seo' => 'SEO Settings', 'seo' => 'SEO Settings',
'companydetails' => 'Company Contact Details', 'companydetails' => 'Company Contact Details',
'mail' => 'Mail Settings', 'mail' => 'Mail Settings',
'footer' => 'Footer Settings', 'footer' => 'Footer Settings',
'terms' => 'Terms & Condition Settings', 'terms' => 'Terms & Condition Settings',
'google' => 'Google Analytics Track Code', 'google' => 'Google Analytics Track Code',
], ],
'faqs' => [ 'faqs' => [
...@@ -211,15 +211,15 @@ return [ ...@@ -211,15 +211,15 @@ return [
'title' => 'FAQ', 'title' => 'FAQ',
'table' => [ 'table' => [
'title' => 'FAQs', 'title' => 'FAQs',
'publish' => 'PublishDateTime', 'publish' => 'PublishDateTime',
'status' => 'Status', 'status' => 'Status',
'createdat' => 'Created At', 'createdat' => 'Created At',
'createdby' => 'Created By', 'createdby' => 'Created By',
'answer' => 'Answer', 'answer' => 'Answer',
'question' => 'Question', 'question' => 'Question',
'updatedat' => 'Updated At', 'updatedat' => 'Updated At',
'all' => 'All', 'all' => 'All',
], ],
], ],
...@@ -230,11 +230,11 @@ return [ ...@@ -230,11 +230,11 @@ return [
'title' => 'Menus', 'title' => 'Menus',
'table' => [ 'table' => [
'name' => 'Name', 'name' => 'Name',
'type' => 'Type', 'type' => 'Type',
'createdat' => 'Created At', 'createdat' => 'Created At',
'createdby' => 'Created By', 'createdby' => 'Created By',
'all' => 'All', 'all' => 'All',
], ],
'field' => [ 'field' => [
'name' => 'Name', 'name' => 'Name',
......
...@@ -13,50 +13,50 @@ return [ ...@@ -13,50 +13,50 @@ return [
| |
*/ */
'accepted' => 'The :attribute must be accepted.', 'accepted' => 'The :attribute must be accepted.',
'active_url' => 'The :attribute is not a valid URL.', 'active_url' => 'The :attribute is not a valid URL.',
'after' => 'The :attribute must be a date after :date.', 'after' => 'The :attribute must be a date after :date.',
'after_or_equal' => 'The :attribute must be a date after or equal to :date.', 'after_or_equal' => 'The :attribute must be a date after or equal to :date.',
'alpha' => 'The :attribute may only contain letters.', 'alpha' => 'The :attribute may only contain letters.',
'alpha_dash' => 'The :attribute may only contain letters, numbers, and dashes.', 'alpha_dash' => 'The :attribute may only contain letters, numbers, and dashes.',
'alpha_num' => 'The :attribute may only contain letters and numbers.', 'alpha_num' => 'The :attribute may only contain letters and numbers.',
'array' => 'The :attribute must be an array.', 'array' => 'The :attribute must be an array.',
'before' => 'The :attribute must be a date before :date.', 'before' => 'The :attribute must be a date before :date.',
'before_or_equal' => 'The :attribute must be a date before or equal to :date.', 'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
'between' => [ 'between' => [
'numeric' => 'The :attribute must be between :min and :max.', 'numeric' => 'The :attribute must be between :min and :max.',
'file' => 'The :attribute must be between :min and :max kilobytes.', 'file' => 'The :attribute must be between :min and :max kilobytes.',
'string' => 'The :attribute must be between :min and :max characters.', 'string' => 'The :attribute must be between :min and :max characters.',
'array' => 'The :attribute must have between :min and :max items.', 'array' => 'The :attribute must have between :min and :max items.',
], ],
'boolean' => 'The :attribute field must be true or false.', 'boolean' => 'The :attribute field must be true or false.',
'confirmed' => 'The :attribute confirmation does not match.', 'confirmed' => 'The :attribute confirmation does not match.',
'date' => 'The :attribute is not a valid date.', 'date' => 'The :attribute is not a valid date.',
'date_format' => 'The :attribute does not match the format :format.', 'date_format' => 'The :attribute does not match the format :format.',
'different' => 'The :attribute and :other must be different.', 'different' => 'The :attribute and :other must be different.',
'digits' => 'The :attribute must be :digits digits.', 'digits' => 'The :attribute must be :digits digits.',
'digits_between' => 'The :attribute must be between :min and :max digits.', 'digits_between' => 'The :attribute must be between :min and :max digits.',
'dimensions' => 'The :attribute has invalid image dimensions.', 'dimensions' => 'The :attribute has invalid image dimensions.',
'distinct' => 'The :attribute field has a duplicate value.', 'distinct' => 'The :attribute field has a duplicate value.',
'email' => 'The :attribute must be a valid email address.', 'email' => 'The :attribute must be a valid email address.',
'exists' => 'The selected :attribute is invalid.', 'exists' => 'The selected :attribute is invalid.',
'file' => 'The :attribute must be a file.', 'file' => 'The :attribute must be a file.',
'filled' => 'The :attribute field must have a value.', 'filled' => 'The :attribute field must have a value.',
'image' => 'The :attribute must be an image.', 'image' => 'The :attribute must be an image.',
'in' => 'The selected :attribute is invalid.', 'in' => 'The selected :attribute is invalid.',
'in_array' => 'The :attribute field does not exist in :other.', 'in_array' => 'The :attribute field does not exist in :other.',
'integer' => 'The :attribute must be an integer.', 'integer' => 'The :attribute must be an integer.',
'ip' => 'The :attribute must be a valid IP address.', 'ip' => 'The :attribute must be a valid IP address.',
'json' => 'The :attribute must be a valid JSON string.', 'json' => 'The :attribute must be a valid JSON string.',
'max' => [ 'max' => [
'numeric' => 'The :attribute may not be greater than :max.', 'numeric' => 'The :attribute may not be greater than :max.',
'file' => 'The :attribute may not be greater than :max kilobytes.', 'file' => 'The :attribute may not be greater than :max kilobytes.',
'string' => 'The :attribute may not be greater than :max characters.', 'string' => 'The :attribute may not be greater than :max characters.',
'array' => 'The :attribute may not have more than :max items.', 'array' => 'The :attribute may not have more than :max items.',
], ],
'mimes' => 'The :attribute must be a file of type: :values.', 'mimes' => 'The :attribute must be a file of type: :values.',
'mimetypes' => 'The :attribute must be a file of type: :values.', 'mimetypes' => 'The :attribute must be a file of type: :values.',
'min' => [ 'min' => [
'numeric' => 'The :attribute must be at least :min.', 'numeric' => 'The :attribute must be at least :min.',
'file' => 'The :attribute must be at least :min kilobytes.', 'file' => 'The :attribute must be at least :min kilobytes.',
'string' => 'The :attribute must be at least :min characters.', 'string' => 'The :attribute must be at least :min characters.',
...@@ -80,11 +80,11 @@ return [ ...@@ -80,11 +80,11 @@ return [
'string' => 'The :attribute must be :size characters.', 'string' => 'The :attribute must be :size characters.',
'array' => 'The :attribute must contain :size items.', 'array' => 'The :attribute must contain :size items.',
], ],
'string' => 'The :attribute must be a string.', 'string' => 'The :attribute must be a string.',
'timezone' => 'The :attribute must be a valid zone.', 'timezone' => 'The :attribute must be a valid zone.',
'unique' => 'The :attribute has already been taken.', 'unique' => 'The :attribute has already been taken.',
'uploaded' => 'The :attribute failed to upload.', 'uploaded' => 'The :attribute failed to upload.',
'url' => 'The :attribute format is invalid.', 'url' => 'The :attribute format is invalid.',
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
...@@ -200,28 +200,28 @@ return [ ...@@ -200,28 +200,28 @@ return [
], ],
'settings' => [ 'settings' => [
'sitelogo' => 'Site Logo', 'sitelogo' => 'Site Logo',
'favicon' => 'Fav Icon', 'favicon' => 'Fav Icon',
'metatitle' => 'Meta Title', 'metatitle' => 'Meta Title',
'metakeyword' => 'Meta Keyawords', 'metakeyword' => 'Meta Keyawords',
'metadescription' => 'Meta Description', 'metadescription' => 'Meta Description',
'companydetails' => [ 'companydetails' => [
'address' => 'Company Address', 'address' => 'Company Address',
'contactnumber' => 'Contact Number', 'contactnumber' => 'Contact Number',
], ],
'mail' => [ 'mail' => [
'fromname' => 'From Name', 'fromname' => 'From Name',
'fromemail' => 'From Email', 'fromemail' => 'From Email',
], ],
'footer' => [ 'footer' => [
'text' => 'Footer Text', 'text' => 'Footer Text',
'copyright' => 'Copyright Text', 'copyright' => 'Copyright Text',
], ],
'termscondition' => [ 'termscondition' => [
'terms' => 'Terms & Condition', 'terms' => 'Terms & Condition',
'disclaimer' => 'Disclaimer', 'disclaimer' => 'Disclaimer',
], ],
'google' => [ 'google' => [
'analytic' => 'Google Analytics', 'analytic' => 'Google Analytics',
], ],
], ],
......
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* All route names are prefixed with 'admin.access'. * All route names are prefixed with 'admin.access'.
*/ */
Route::group([ Route::group([
'prefix' => 'access', 'prefix' => 'access',
'as' => 'access.', 'as' => 'access.',
'namespace' => 'Access', 'namespace' => 'Access',
], function () { ], function () {
/* /*
......
<?php <?php
Route::group([ Route::group([
'prefix' => 'search', 'prefix' => 'search',
'as' => 'search.', 'as' => 'search.',
'namespace' => 'Search', 'namespace' => 'Search',
], function () { ], function () {
/* /*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment