permission manager
This commit is contained in:
parent
610d203c13
commit
5a945f56f9
|
|
@ -103,6 +103,11 @@
|
|||
<path value="$PROJECT_DIR$/vendor/barryvdh/elfinder-flysystem-driver" />
|
||||
<path value="$PROJECT_DIR$/vendor/davejamesmiller/laravel-breadcrumbs" />
|
||||
<path value="$PROJECT_DIR$/vendor/moontoast/math" />
|
||||
<path value="$PROJECT_DIR$/vendor/cviebrock/eloquent-sluggable" />
|
||||
<path value="$PROJECT_DIR$/vendor/spatie/laravel-permission" />
|
||||
<path value="$PROJECT_DIR$/vendor/backpack/permissionmanager" />
|
||||
<path value="$PROJECT_DIR$/vendor/cocur/slugify" />
|
||||
<path value="$PROJECT_DIR$/vendor/backpack/pagemanager" />
|
||||
</include_path>
|
||||
</component>
|
||||
<component name="PhpProjectSharedConfiguration" php_language_level="7.1" />
|
||||
|
|
|
|||
|
|
@ -8,11 +8,15 @@
|
|||
<excludeFolder url="file://$MODULE_DIR$/vendor/backpack/base" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/backpack/crud" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/backpack/generators" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/backpack/pagemanager" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/backpack/permissionmanager" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/barryvdh/elfinder-flysystem-driver" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/barryvdh/laravel-elfinder" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/beyondcode/laravel-dump-server" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/cocur/slugify" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/composer" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/creativeorange/gravatar" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/cviebrock/eloquent-sluggable" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/davejamesmiller/laravel-breadcrumbs" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/dnoegel/php-xdg-base-dir" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/doctrine/cache" />
|
||||
|
|
@ -81,6 +85,7 @@
|
|||
<excludeFolder url="file://$MODULE_DIR$/vendor/sebastian/recursion-context" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/sebastian/resource-operations" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/sebastian/version" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/spatie/laravel-permission" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/studio-42/elfinder" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/swiftmailer/swiftmailer" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/console" />
|
||||
|
|
|
|||
|
|
@ -4,12 +4,15 @@ namespace App;
|
|||
|
||||
use App\Models\UserMaterial;
|
||||
use Illuminate\Notifications\Notifiable;
|
||||
use Illuminate\Contracts\Auth\MustVerifyEmail;
|
||||
use Backpack\CRUD\CrudTrait; // <------------------------------- this one
|
||||
use Spatie\Permission\Traits\HasRoles;// <---------------------- and this one
|
||||
use Illuminate\Foundation\Auth\User as Authenticatable;
|
||||
|
||||
class User extends Authenticatable
|
||||
{
|
||||
use Notifiable;
|
||||
use CrudTrait; // <----- this
|
||||
use HasRoles; // <------ and this
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
"php": "^7.1.3",
|
||||
"backpack/crud": "^3.6",
|
||||
"backpack/pagemanager": "^1.1",
|
||||
"backpack/permissionmanager": "^4.0",
|
||||
"barryvdh/laravel-elfinder": "^0.4.2",
|
||||
"davejamesmiller/laravel-breadcrumbs": "^5.2",
|
||||
"fideloper/proxy": "^4.0",
|
||||
|
|
|
|||
|
|
@ -4,19 +4,19 @@
|
|||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "cde1e27391677f1f2fd82d9cbe4a4193",
|
||||
"content-hash": "3d83530c66a136ce4bbf2ebd38d3674f",
|
||||
"packages": [
|
||||
{
|
||||
"name": "almasaeed2010/adminlte",
|
||||
"version": "v2.4.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/almasaeed2010/AdminLTE.git",
|
||||
"url": "https://github.com/ColorlibHQ/AdminLTE.git",
|
||||
"reference": "b3acb63ac56b13eb45b36e628b384a9a2507b50e"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/almasaeed2010/AdminLTE/zipball/b3acb63ac56b13eb45b36e628b384a9a2507b50e",
|
||||
"url": "https://api.github.com/repos/ColorlibHQ/AdminLTE/zipball/b3acb63ac56b13eb45b36e628b384a9a2507b50e",
|
||||
"reference": "b3acb63ac56b13eb45b36e628b384a9a2507b50e",
|
||||
"shasum": ""
|
||||
},
|
||||
|
|
@ -188,6 +188,152 @@
|
|||
],
|
||||
"time": "2019-04-10T06:48:23+00:00"
|
||||
},
|
||||
{
|
||||
"name": "backpack/pagemanager",
|
||||
"version": "1.1.28",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Laravel-Backpack/PageManager.git",
|
||||
"reference": "bb65fdbe28b1805e2244679f52bb0c450fd2e6b8"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/Laravel-Backpack/PageManager/zipball/bb65fdbe28b1805e2244679f52bb0c450fd2e6b8",
|
||||
"reference": "bb65fdbe28b1805e2244679f52bb0c450fd2e6b8",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"backpack/crud": "^3.0.6",
|
||||
"cviebrock/eloquent-sluggable": "^4.0",
|
||||
"doctrine/dbal": "^2.5.12",
|
||||
"illuminate/support": "~5.1",
|
||||
"php": "~5.5|~7.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "4.*",
|
||||
"scrutinizer/ocular": "~1.1",
|
||||
"squizlabs/php_codesniffer": "~2.3"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.0-dev"
|
||||
},
|
||||
"laravel": {
|
||||
"providers": [
|
||||
"Backpack\\PageManager\\PageManagerServiceProvider"
|
||||
]
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Backpack\\PageManager\\": "src"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"proprietary"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Cristian Tabacitu",
|
||||
"email": "hello@tabacitu.ro",
|
||||
"homepage": "http://tabacitu.ro",
|
||||
"role": "Architect & Developer"
|
||||
}
|
||||
],
|
||||
"description": "Create admin panels for presentation websites on Laravel, using page templates and Backpack\\CRUD.",
|
||||
"homepage": "https://github.com/laravel-backpack/PageManager",
|
||||
"keywords": [
|
||||
"Content management system",
|
||||
"admin panel",
|
||||
"administer pages",
|
||||
"backpack",
|
||||
"cms",
|
||||
"crud",
|
||||
"manage pages",
|
||||
"pagemanager",
|
||||
"presentation pages",
|
||||
"presentation website",
|
||||
"wordpress"
|
||||
],
|
||||
"time": "2019-02-27T18:07:35+00:00"
|
||||
},
|
||||
{
|
||||
"name": "backpack/permissionmanager",
|
||||
"version": "4.0.4",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Laravel-Backpack/PermissionManager.git",
|
||||
"reference": "eee1d5565d75f3d99f67a46d5e1bf6d05ef7eaa7"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/Laravel-Backpack/PermissionManager/zipball/eee1d5565d75f3d99f67a46d5e1bf6d05ef7eaa7",
|
||||
"reference": "eee1d5565d75f3d99f67a46d5e1bf6d05ef7eaa7",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"backpack/crud": "^3.4.0",
|
||||
"spatie/laravel-permission": "^2.34.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "4.*",
|
||||
"scrutinizer/ocular": "~1.1"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.0-dev"
|
||||
},
|
||||
"laravel": {
|
||||
"providers": [
|
||||
"Backpack\\PermissionManager\\PermissionManagerServiceProvider"
|
||||
]
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Backpack\\PermissionManager\\": "src"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"proprietary"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Marius Constantin",
|
||||
"email": "marius@updivision.com",
|
||||
"homepage": "http://www.updivision.com",
|
||||
"role": "Lead Developer"
|
||||
},
|
||||
{
|
||||
"name": "Cristian Tabacitu",
|
||||
"email": "hello@tabacitu.ro",
|
||||
"homepage": "http://www.tabacitu.ro",
|
||||
"role": "Chief Architect"
|
||||
}
|
||||
],
|
||||
"description": "Users and permissions management interface for Laravel 5 using Backpack CRUD.",
|
||||
"homepage": "https://github.com/laravel-backpack/permissionmanager",
|
||||
"keywords": [
|
||||
"backpack",
|
||||
"backpack permission",
|
||||
"backpack roles",
|
||||
"backpack user management",
|
||||
"dick",
|
||||
"dick permission",
|
||||
"laravel backpack",
|
||||
"manage permission",
|
||||
"manage roles",
|
||||
"manage users",
|
||||
"tabacitu",
|
||||
"updivision",
|
||||
"users roles admin"
|
||||
],
|
||||
"time": "2019-03-12T09:30:25+00:00"
|
||||
},
|
||||
{
|
||||
"name": "barryvdh/elfinder-flysystem-driver",
|
||||
"version": "v0.2.1",
|
||||
|
|
@ -301,6 +447,71 @@
|
|||
],
|
||||
"time": "2019-02-26T20:36:33+00:00"
|
||||
},
|
||||
{
|
||||
"name": "cocur/slugify",
|
||||
"version": "v3.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/cocur/slugify.git",
|
||||
"reference": "d41701efe58ba2df9cae029c3d21e1518cc6780e"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/cocur/slugify/zipball/d41701efe58ba2df9cae029c3d21e1518cc6780e",
|
||||
"reference": "d41701efe58ba2df9cae029c3d21e1518cc6780e",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-mbstring": "*",
|
||||
"php": ">=5.5.9"
|
||||
},
|
||||
"require-dev": {
|
||||
"laravel/framework": "~5.1",
|
||||
"latte/latte": "~2.2",
|
||||
"league/container": "^2.2.0",
|
||||
"mikey179/vfsstream": "~1.6",
|
||||
"mockery/mockery": "~0.9",
|
||||
"nette/di": "~2.2",
|
||||
"phpunit/phpunit": "~4.8.36|~5.2",
|
||||
"pimple/pimple": "~1.1",
|
||||
"plumphp/plum": "~0.1",
|
||||
"silex/silex": "~1.3",
|
||||
"symfony/config": "~2.4|~3.0|~4.0",
|
||||
"symfony/dependency-injection": "~2.4|~3.0|~4.0",
|
||||
"symfony/http-kernel": "~2.4|~3.0|~4.0",
|
||||
"twig/twig": "~1.26|~2.0",
|
||||
"zendframework/zend-modulemanager": "~2.2",
|
||||
"zendframework/zend-servicemanager": "~2.2",
|
||||
"zendframework/zend-view": "~2.2"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Cocur\\Slugify\\": "src"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Ivo Bathke",
|
||||
"email": "ivo.bathke@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Florian Eckerstorfer",
|
||||
"email": "florian@eckerstorfer.co",
|
||||
"homepage": "https://florian.ec"
|
||||
}
|
||||
],
|
||||
"description": "Converts a string into a slug.",
|
||||
"keywords": [
|
||||
"slug",
|
||||
"slugify"
|
||||
],
|
||||
"time": "2019-01-31T20:38:55+00:00"
|
||||
},
|
||||
{
|
||||
"name": "composer/installers",
|
||||
"version": "v1.6.0",
|
||||
|
|
@ -475,6 +686,69 @@
|
|||
],
|
||||
"time": "2018-03-29T22:10:58+00:00"
|
||||
},
|
||||
{
|
||||
"name": "cviebrock/eloquent-sluggable",
|
||||
"version": "4.8.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/cviebrock/eloquent-sluggable.git",
|
||||
"reference": "4a5bf905b55e7eb0a30ef5933f647387dc8f365a"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/cviebrock/eloquent-sluggable/zipball/4a5bf905b55e7eb0a30ef5933f647387dc8f365a",
|
||||
"reference": "4a5bf905b55e7eb0a30ef5933f647387dc8f365a",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"cocur/slugify": "^3.1",
|
||||
"illuminate/config": "~5.8.0",
|
||||
"illuminate/database": "~5.8.0",
|
||||
"illuminate/support": "~5.8.0",
|
||||
"php": "^7.1"
|
||||
},
|
||||
"require-dev": {
|
||||
"limedeck/phpunit-detailed-printer": "^4.1",
|
||||
"mockery/mockery": "^1.2",
|
||||
"orchestra/database": "3.8.x-dev",
|
||||
"orchestra/testbench": "v3.8.0",
|
||||
"phpunit/phpunit": "~7.0"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"laravel": {
|
||||
"providers": [
|
||||
"Cviebrock\\EloquentSluggable\\ServiceProvider"
|
||||
]
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Cviebrock\\EloquentSluggable\\": "src"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Colin Viebrock",
|
||||
"email": "colin@viebrock.ca"
|
||||
}
|
||||
],
|
||||
"description": "Easy creation of slugs for your Eloquent models in Laravel 5.",
|
||||
"homepage": "https://github.com/cviebrock/eloquent-sluggable",
|
||||
"keywords": [
|
||||
"eloquent",
|
||||
"eloquent-sluggable",
|
||||
"laravel",
|
||||
"lumen",
|
||||
"slug",
|
||||
"sluggable"
|
||||
],
|
||||
"time": "2019-03-01T05:04:21+00:00"
|
||||
},
|
||||
{
|
||||
"name": "davejamesmiller/laravel-breadcrumbs",
|
||||
"version": "5.2.1",
|
||||
|
|
@ -2701,6 +2975,71 @@
|
|||
],
|
||||
"time": "2018-07-19T23:38:55+00:00"
|
||||
},
|
||||
{
|
||||
"name": "spatie/laravel-permission",
|
||||
"version": "2.37.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/spatie/laravel-permission.git",
|
||||
"reference": "81dbe9d372d70c255b66a2727a235076509f8d45"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/spatie/laravel-permission/zipball/81dbe9d372d70c255b66a2727a235076509f8d45",
|
||||
"reference": "81dbe9d372d70c255b66a2727a235076509f8d45",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"illuminate/auth": "~5.3.0|~5.4.0|~5.5.0|~5.6.0|~5.7.0|~5.8.0",
|
||||
"illuminate/container": "~5.3.0|~5.4.0|~5.5.0|~5.6.0|~5.7.0|~5.8.0",
|
||||
"illuminate/contracts": "~5.3.0|~5.4.0|~5.5.0|~5.6.0|~5.7.0|~5.8.0",
|
||||
"illuminate/database": "~5.4.0|~5.5.0|~5.6.0|~5.7.0|~5.8.0",
|
||||
"php": ">=7.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"orchestra/testbench": "~3.4.2|~3.5.0|~3.6.0|~3.7.0",
|
||||
"phpunit/phpunit": "^5.7|6.2|^7.0",
|
||||
"predis/predis": "^1.1"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"laravel": {
|
||||
"providers": [
|
||||
"Spatie\\Permission\\PermissionServiceProvider"
|
||||
]
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Spatie\\Permission\\": "src"
|
||||
},
|
||||
"files": [
|
||||
"src/helpers.php"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Freek Van der Herten",
|
||||
"email": "freek@spatie.be",
|
||||
"homepage": "https://spatie.be",
|
||||
"role": "Developer"
|
||||
}
|
||||
],
|
||||
"description": "Permission handling for Laravel 5.4 and up",
|
||||
"homepage": "https://github.com/spatie/laravel-permission",
|
||||
"keywords": [
|
||||
"acl",
|
||||
"laravel",
|
||||
"permission",
|
||||
"security",
|
||||
"spatie"
|
||||
],
|
||||
"time": "2019-04-09T12:45:17+00:00"
|
||||
},
|
||||
{
|
||||
"name": "studio-42/elfinder",
|
||||
"version": "2.1.49",
|
||||
|
|
|
|||
|
|
@ -0,0 +1,48 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Models
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Models used in the User, Role and Permission CRUDs.
|
||||
|
|
||||
*/
|
||||
|
||||
'models' => [
|
||||
'user' => App\Models\BackpackUser::class,
|
||||
'permission' => Backpack\PermissionManager\app\Models\Permission::class,
|
||||
'role' => Backpack\PermissionManager\app\Models\Role::class,
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Disallow the user interface for creating/updating permissions or roles.
|
||||
|--------------------------------------------------------------------------
|
||||
| Roles and permissions are used in code by their name
|
||||
| - ex: $user->hasPermissionTo('edit articles');
|
||||
|
|
||||
| So after the developer has entered all permissions and roles, the administrator should either:
|
||||
| - not have access to the panels
|
||||
| or
|
||||
| - creating and updating should be disabled
|
||||
*/
|
||||
|
||||
'allow_permission_create' => true,
|
||||
'allow_permission_update' => true,
|
||||
'allow_permission_delete' => true,
|
||||
'allow_role_create' => true,
|
||||
'allow_role_update' => true,
|
||||
'allow_role_delete' => true,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Multiple-guards functionality
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
*/
|
||||
'multiple_guards' => false,
|
||||
|
||||
];
|
||||
|
|
@ -0,0 +1,129 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
|
||||
'models' => [
|
||||
|
||||
/*
|
||||
* When using the "HasPermissions" trait from this package, we need to know which
|
||||
* Eloquent model should be used to retrieve your permissions. Of course, it
|
||||
* is often just the "Permission" model but you may use whatever you like.
|
||||
*
|
||||
* The model you want to use as a Permission model needs to implement the
|
||||
* `Spatie\Permission\Contracts\Permission` contract.
|
||||
*/
|
||||
|
||||
'permission' => Spatie\Permission\Models\Permission::class,
|
||||
|
||||
/*
|
||||
* When using the "HasRoles" trait from this package, we need to know which
|
||||
* Eloquent model should be used to retrieve your roles. Of course, it
|
||||
* is often just the "Role" model but you may use whatever you like.
|
||||
*
|
||||
* The model you want to use as a Role model needs to implement the
|
||||
* `Spatie\Permission\Contracts\Role` contract.
|
||||
*/
|
||||
|
||||
'role' => Spatie\Permission\Models\Role::class,
|
||||
|
||||
],
|
||||
|
||||
'table_names' => [
|
||||
|
||||
/*
|
||||
* When using the "HasRoles" trait from this package, we need to know which
|
||||
* table should be used to retrieve your roles. We have chosen a basic
|
||||
* default value but you may easily change it to any table you like.
|
||||
*/
|
||||
|
||||
'roles' => 'roles',
|
||||
|
||||
/*
|
||||
* When using the "HasPermissions" trait from this package, we need to know which
|
||||
* table should be used to retrieve your permissions. We have chosen a basic
|
||||
* default value but you may easily change it to any table you like.
|
||||
*/
|
||||
|
||||
'permissions' => 'permissions',
|
||||
|
||||
/*
|
||||
* When using the "HasPermissions" trait from this package, we need to know which
|
||||
* table should be used to retrieve your models permissions. We have chosen a
|
||||
* basic default value but you may easily change it to any table you like.
|
||||
*/
|
||||
|
||||
'model_has_permissions' => 'model_has_permissions',
|
||||
|
||||
/*
|
||||
* When using the "HasRoles" trait from this package, we need to know which
|
||||
* table should be used to retrieve your models roles. We have chosen a
|
||||
* basic default value but you may easily change it to any table you like.
|
||||
*/
|
||||
|
||||
'model_has_roles' => 'model_has_roles',
|
||||
|
||||
/*
|
||||
* When using the "HasRoles" trait from this package, we need to know which
|
||||
* table should be used to retrieve your roles permissions. We have chosen a
|
||||
* basic default value but you may easily change it to any table you like.
|
||||
*/
|
||||
|
||||
'role_has_permissions' => 'role_has_permissions',
|
||||
],
|
||||
|
||||
'column_names' => [
|
||||
|
||||
/*
|
||||
* Change this if you want to name the related model primary key other than
|
||||
* `model_id`.
|
||||
*
|
||||
* For example, this would be nice if your primary keys are all UUIDs. In
|
||||
* that case, name this `model_uuid`.
|
||||
*/
|
||||
|
||||
'model_morph_key' => 'model_id',
|
||||
],
|
||||
|
||||
/*
|
||||
* When set to true, the required permission/role names are added to the exception
|
||||
* message. This could be considered an information leak in some contexts, so
|
||||
* the default setting is false here for optimum safety.
|
||||
*/
|
||||
|
||||
'display_permission_in_exception' => false,
|
||||
|
||||
'cache' => [
|
||||
|
||||
/*
|
||||
* By default all permissions are cached for 24 hours to speed up performance.
|
||||
* When permissions or roles are updated the cache is flushed automatically.
|
||||
*/
|
||||
|
||||
'expiration_time' => \DateInterval::createFromDateString('24 hours'),
|
||||
|
||||
/*
|
||||
* The cache key used to store all permissions.
|
||||
*/
|
||||
|
||||
'key' => 'spatie.permission.cache',
|
||||
|
||||
/*
|
||||
* When checking for a permission against a model by passing a Permission
|
||||
* instance to the check, this key determines what attribute on the
|
||||
* Permissions model is used to cache against.
|
||||
*
|
||||
* Ideally, this should match your preferred way of checking permissions, eg:
|
||||
* `$user->can('view-posts')` would be 'name'.
|
||||
*/
|
||||
|
||||
'model_key' => 'name',
|
||||
|
||||
/*
|
||||
* You may optionally indicate a specific cache driver to use for permission and
|
||||
* role caching using any of the `store` drivers listed in the cache.php config
|
||||
* file. Using 'default' here means to use the `default` set in cache.php.
|
||||
*/
|
||||
|
||||
'store' => 'default',
|
||||
],
|
||||
];
|
||||
|
|
@ -0,0 +1,102 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreatePermissionTables extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
$tableNames = config('permission.table_names');
|
||||
$columnNames = config('permission.column_names');
|
||||
|
||||
Schema::create($tableNames['permissions'], function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('name');
|
||||
$table->string('guard_name');
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
Schema::create($tableNames['roles'], function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('name');
|
||||
$table->string('guard_name');
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
Schema::create($tableNames['model_has_permissions'], function (Blueprint $table) use ($tableNames, $columnNames) {
|
||||
$table->unsignedInteger('permission_id');
|
||||
|
||||
$table->string('model_type');
|
||||
$table->unsignedBigInteger($columnNames['model_morph_key']);
|
||||
$table->index([$columnNames['model_morph_key'], 'model_type', ]);
|
||||
|
||||
$table->foreign('permission_id')
|
||||
->references('id')
|
||||
->on($tableNames['permissions'])
|
||||
->onDelete('cascade');
|
||||
|
||||
$table->primary(['permission_id', $columnNames['model_morph_key'], 'model_type'],
|
||||
'model_has_permissions_permission_model_type_primary');
|
||||
});
|
||||
|
||||
Schema::create($tableNames['model_has_roles'], function (Blueprint $table) use ($tableNames, $columnNames) {
|
||||
$table->unsignedInteger('role_id');
|
||||
|
||||
$table->string('model_type');
|
||||
$table->unsignedBigInteger($columnNames['model_morph_key']);
|
||||
$table->index([$columnNames['model_morph_key'], 'model_type', ]);
|
||||
|
||||
$table->foreign('role_id')
|
||||
->references('id')
|
||||
->on($tableNames['roles'])
|
||||
->onDelete('cascade');
|
||||
|
||||
$table->primary(['role_id', $columnNames['model_morph_key'], 'model_type'],
|
||||
'model_has_roles_role_model_type_primary');
|
||||
});
|
||||
|
||||
Schema::create($tableNames['role_has_permissions'], function (Blueprint $table) use ($tableNames) {
|
||||
$table->unsignedInteger('permission_id');
|
||||
$table->unsignedInteger('role_id');
|
||||
|
||||
$table->foreign('permission_id')
|
||||
->references('id')
|
||||
->on($tableNames['permissions'])
|
||||
->onDelete('cascade');
|
||||
|
||||
$table->foreign('role_id')
|
||||
->references('id')
|
||||
->on($tableNames['roles'])
|
||||
->onDelete('cascade');
|
||||
|
||||
$table->primary(['permission_id', 'role_id']);
|
||||
});
|
||||
|
||||
app('cache')
|
||||
->store(config('permission.cache.store') != 'default' ? config('permission.cache.store') : null)
|
||||
->forget(config('permission.cache.key'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
$tableNames = config('permission.table_names');
|
||||
|
||||
Schema::drop($tableNames['role_has_permissions']);
|
||||
Schema::drop($tableNames['model_has_roles']);
|
||||
Schema::drop($tableNames['model_has_permissions']);
|
||||
Schema::drop($tableNames['roles']);
|
||||
Schema::drop($tableNames['permissions']);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Permission Manager Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used for Laravel Backpack - Permission Manager
|
||||
| Author: Frederik Rabøl Madsen <frederik-rm@hotmail.com>
|
||||
|
|
||||
*/
|
||||
'name' => 'navn',
|
||||
'role' => 'rolle',
|
||||
'roles' => 'roller',
|
||||
'roles_have_permission' => 'roller der har denne rettighed',
|
||||
'permission_singular' => 'rettighed',
|
||||
'permission_plural' => 'rettigheder',
|
||||
'user_singular' => 'bruger',
|
||||
'user_plural' => 'brugere',
|
||||
'email' => 'E-mail',
|
||||
'extra_permissions' => 'yderligere rettigheder',
|
||||
'password' => 'password',
|
||||
'password_confirmation' => 'gentag password',
|
||||
'user_role_permission' => 'bruger rolle rettigheder',
|
||||
'user' => 'bruger',
|
||||
'users' => 'brugere',
|
||||
|
||||
];
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Permission Manager Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used for Laravel Backpack - Permission Manager
|
||||
| Author: Oliver Ziegler <oliver.ziegler@zoutapps.de>
|
||||
|
|
||||
*/
|
||||
'name' => 'Name',
|
||||
'role' => 'Rolle',
|
||||
'roles' => 'Rollen',
|
||||
'roles_have_permission' => 'Rollen mit dieser Berechtigung',
|
||||
'permission_singular' => 'Berechtigung',
|
||||
'permission_plural' => 'Berechtigungen',
|
||||
'user_singular' => 'Nutzer',
|
||||
'user_plural' => 'Nutzer',
|
||||
'email' => 'E-Mail',
|
||||
'extra_permissions' => 'Zusätzliche Berechtigungen',
|
||||
'password' => 'Passwort',
|
||||
'password_confirmation' => 'Passwort bestätigen',
|
||||
'user_role_permission' => 'Nutzer Rollen Berechtigungen',
|
||||
'user' => 'Nutzer',
|
||||
'users' => 'Nutzer',
|
||||
|
||||
];
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Permission Manager Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used for Laravel Backpack - Permission Manager
|
||||
|
|
||||
*/
|
||||
'name' => 'Όνομα',
|
||||
'role' => 'Ρόλος',
|
||||
'roles' => 'Ρόλοι',
|
||||
'roles_have_permission' => 'Ρόλοι με αυτό το δικαίωμα',
|
||||
'permission_singular' => 'δικαίωμα',
|
||||
'permission_plural' => 'Δικαιώματα',
|
||||
'user_singular' => 'Χρήστης',
|
||||
'user_plural' => 'Χρήστες',
|
||||
'email' => 'Email',
|
||||
'extra_permissions' => 'Πρόσθετα δικαιώματα',
|
||||
'password' => 'Κωδικός',
|
||||
'password_confirmation' => 'Επανάληψη κωδικού',
|
||||
'user_role_permission' => 'Ρόλοι και Δικαιώματα Χρήστη',
|
||||
'user' => 'Χρήστης',
|
||||
'users' => 'Χρήστες',
|
||||
|
||||
];
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Permission Manager Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used for Laravel Backpack - Permission Manager
|
||||
| Author: Lúdio Oliveira <ludio.ao@gmail.com>
|
||||
|
|
||||
*/
|
||||
'name' => 'Name',
|
||||
'role' => 'Role',
|
||||
'roles' => 'Roles',
|
||||
'roles_have_permission' => 'Roles that have this permission',
|
||||
'permission_singular' => 'permission',
|
||||
'permission_plural' => 'permissions',
|
||||
'user_singular' => 'User',
|
||||
'user_plural' => 'Users',
|
||||
'email' => 'Email',
|
||||
'extra_permissions' => 'Extra Permissions',
|
||||
'password' => 'Password',
|
||||
'password_confirmation' => 'Password Confirmation',
|
||||
'user_role_permission' => 'User Role Permissions',
|
||||
'user' => 'User',
|
||||
'users' => 'Users',
|
||||
'guard_type' => 'Guard Type',
|
||||
|
||||
];
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Permission Manager Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used for Laravel Backpack - Permission Manager
|
||||
|
|
||||
*/
|
||||
'name' => 'Nombre',
|
||||
'role' => 'Rol',
|
||||
'roles' => 'Roles',
|
||||
'roles_have_permission' => 'Roles con este permiso',
|
||||
'permission_singular' => 'Permiso',
|
||||
'permission_plural' => 'Permisos',
|
||||
'user_singular' => 'Usuario',
|
||||
'user_plural' => 'Usuarios',
|
||||
'email' => 'Correo electrónico',
|
||||
'extra_permissions' => 'Permisos adicionales',
|
||||
'password' => 'Contraseña',
|
||||
'password_confirmation' => 'Confirmación de contraseña',
|
||||
'user_role_permission' => 'Permisos del rol del usuario',
|
||||
'user' => 'Usuario',
|
||||
'users' => 'Usuarios',
|
||||
|
||||
];
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Permission Manager Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used for Laravel Backpack - Permission Manager
|
||||
| Author: Julien Cauvin <contact@7ute.fr>
|
||||
|
|
||||
*/
|
||||
'name' => 'Nom',
|
||||
'role' => 'Rôle',
|
||||
'roles' => 'Rôles',
|
||||
'roles_have_permission' => 'Rôles avec cette permission',
|
||||
'permission_singular' => 'permission',
|
||||
'permission_plural' => 'permissions',
|
||||
'user_singular' => 'Utilisateur',
|
||||
'user_plural' => 'Utilisateurs',
|
||||
'email' => 'Email',
|
||||
'extra_permissions' => 'Permissions supplémentaires',
|
||||
'password' => 'Mot de passe',
|
||||
'password_confirmation' => 'Confirmation du mot de passe',
|
||||
'user_role_permission' => 'Rôles et permissions d’utilisateur',
|
||||
'user' => 'Utilisateur',
|
||||
'users' => 'Utilisateurs',
|
||||
|
||||
];
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Permission Manager Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used for Laravel Backpack - Permission Manager
|
||||
| Author: Julien Cauvin <contact@7ute.fr>
|
||||
|
|
||||
*/
|
||||
'name' => 'Nom',
|
||||
'role' => 'Rôle',
|
||||
'roles' => 'Rôles',
|
||||
'roles_have_permission' => 'Rôles avec cette permission',
|
||||
'permission_singular' => 'permission',
|
||||
'permission_plural' => 'permissions',
|
||||
'user_singular' => 'Utilisateur',
|
||||
'user_plural' => 'Utilisateurs',
|
||||
'email' => 'Email',
|
||||
'extra_permissions' => 'Permissions supplémentaires',
|
||||
'password' => 'Mot de passe',
|
||||
'password_confirmation' => 'Confirmation du mot de passe',
|
||||
'user_role_permission' => 'Rôles et permissions d’utilisateur',
|
||||
'user' => 'Utilisateur',
|
||||
'users' => 'Utilisateurs',
|
||||
|
||||
];
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Permission Manager Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used for Laravel Backpack - Permission Manager
|
||||
| Author: Roberto Butti ( https://github.com/roberto-butti )
|
||||
| Language: Italian
|
||||
|
|
||||
*/
|
||||
'name' => 'Nome',
|
||||
'role' => 'Ruolo',
|
||||
'roles' => 'Ruoli',
|
||||
'roles_have_permission' => 'Ruoli con questo permesso',
|
||||
'permission_singular' => 'Permesso',
|
||||
'permission_plural' => 'Permessi',
|
||||
'user_singular' => 'Utente',
|
||||
'user_plural' => 'Utenti',
|
||||
'email' => 'Email',
|
||||
'extra_permissions' => 'Permessi Extra',
|
||||
'password' => 'Password',
|
||||
'password_confirmation' => 'Conferma Password',
|
||||
'user_role_permission' => 'Utenti Ruoli Permessi',
|
||||
'user' => 'Utente',
|
||||
'users' => 'Utenti',
|
||||
|
||||
];
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Permission Manager Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used for Laravel Backpack - Permission Manager
|
||||
|
|
||||
*/
|
||||
'name' => 'Vārds',
|
||||
'role' => 'Loma',
|
||||
'roles' => 'Lomas',
|
||||
'roles_have_permission' => 'Lomas kurām ir šī atļauja',
|
||||
'permission_singular' => 'atļauja',
|
||||
'permission_plural' => 'atļaujas',
|
||||
'user_singular' => 'Lietotājs',
|
||||
'user_plural' => 'Lietotāji',
|
||||
'email' => 'E-pasts',
|
||||
'extra_permissions' => 'Papildus atļaujas',
|
||||
'password' => 'Parole',
|
||||
'password_confirmation' => 'Parole otrreiz',
|
||||
'user_role_permission' => 'Lietotāju lomas un atļaujas',
|
||||
'user' => 'Lietotājs',
|
||||
'users' => 'Lietotāji',
|
||||
|
||||
];
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Permission Manager Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used for Laravel Backpack - Permission Manager
|
||||
| Author: Lúdio Oliveira <ludio.ao@gmail.com>
|
||||
|
|
||||
*/
|
||||
'name' => 'Naam',
|
||||
'role' => 'Rol',
|
||||
'roles' => 'Rollen',
|
||||
'roles_have_permission' => 'Rollen die deze permissie hebben',
|
||||
'permission_singular' => 'Permissie',
|
||||
'permission_plural' => 'Permissies',
|
||||
'user_singular' => 'Gebruiker',
|
||||
'user_plural' => 'Gebruikers',
|
||||
'email' => 'E-mail',
|
||||
'extra_permissions' => 'Extra permissies',
|
||||
'password' => 'Wachtwoord',
|
||||
'password_confirmation' => 'Wachtwoord bevestigen',
|
||||
'user_role_permission' => 'Rollen en permissies voor gebruiker',
|
||||
'user' => 'Gebruiker',
|
||||
'users' => 'Gebruikers',
|
||||
|
||||
];
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Permission Manager Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used for Laravel Backpack - Permission Manager
|
||||
|
|
||||
*/
|
||||
'name' => 'Nome',
|
||||
'role' => 'Cargo',
|
||||
'roles' => 'Cargos',
|
||||
'roles_have_permission' => 'Cargos com esta permissão',
|
||||
'permission_singular' => 'permissão',
|
||||
'permission_plural' => 'permissões',
|
||||
'user_singular' => 'Utilizador',
|
||||
'user_plural' => 'Utilizadores',
|
||||
'email' => 'Email',
|
||||
'extra_permissions' => 'Permissões extra',
|
||||
'password' => 'Palavra-passe',
|
||||
'password_confirmation' => 'Confirmar palavra-passe',
|
||||
'user_role_permission' => 'Cargo e permissões do utilizador',
|
||||
'user' => 'Utilizador',
|
||||
'users' => 'Utilizadores',
|
||||
|
||||
];
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Permission Manager Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used for Laravel Backpack - Permission Manager
|
||||
| Author: Lúdio Oliveira <ludio.ao@gmail.com>
|
||||
|
|
||||
*/
|
||||
|
||||
'name' => 'Nome',
|
||||
'role' => 'Grupo de Usuário',
|
||||
'roles' => 'Grupos de Usuário',
|
||||
'roles_have_permission' => 'Grupos que possuem esta permissão',
|
||||
'permission_singular' => 'permissão',
|
||||
'permission_plural' => 'permissões',
|
||||
'user_singular' => 'Usuário',
|
||||
'user_plural' => 'Usuários',
|
||||
'email' => 'Email',
|
||||
'extra_permissions' => 'Permissões Extras',
|
||||
'password' => 'Senha',
|
||||
'password_confirmation' => 'Confirmar senha',
|
||||
'user_role_permission' => 'Permissões do Grupo de Usuário',
|
||||
'user' => 'Usuário',
|
||||
'users' => 'Usuários',
|
||||
|
||||
];
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Permission Manager Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used for Laravel Backpack - Permission Manager
|
||||
| Author: Lúdio Oliveira <ludio.ao@gmail.com>, translating to Russian: Nikita K. <exotickg1@gmail.com>
|
||||
|
|
||||
*/
|
||||
'name' => 'Имя',
|
||||
'role' => 'Роль',
|
||||
'roles' => 'Роли',
|
||||
'roles_have_permission' => 'Роли, которые имеют это разрешение',
|
||||
'permission_singular' => 'разрешение',
|
||||
'permission_plural' => 'разрешения',
|
||||
'user_singular' => 'Пользователь',
|
||||
'user_plural' => 'Пользователи',
|
||||
'email' => 'Почта',
|
||||
'extra_permissions' => 'Дополнительные разрешения',
|
||||
'password' => 'Пароль',
|
||||
'password_confirmation' => 'Повторите пароль',
|
||||
'user_role_permission' => 'Разрешения роли пользователя',
|
||||
'user' => 'Пользователь',
|
||||
'users' => 'Пользователи',
|
||||
];
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Permission Manager Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used for Laravel Backpack - Permission Manager
|
||||
| Author: Azarić Stefan <azaricstefan@yahoo.com>
|
||||
|
|
||||
*/
|
||||
'name' => 'Ime',
|
||||
'role' => 'Uloga',
|
||||
'roles' => 'Uloge',
|
||||
'roles_have_permission' => 'Uloge koje imaju prava',
|
||||
'permission_singular' => 'Prava',
|
||||
'permission_plural' => 'Prava',
|
||||
'user_singular' => 'Korisnik',
|
||||
'user_plural' => 'Korisnici',
|
||||
'email' => 'E-pošta',
|
||||
'extra_permissions' => 'Dodatne prava',
|
||||
'password' => 'Lozinka',
|
||||
'password_confirmation' => 'Potvrda lozinke',
|
||||
'user_role_permission' => 'Korisnik uloga Prava',
|
||||
'user' => 'Korisnik',
|
||||
'users' => 'Korisnici',
|
||||
'guard_type' => 'Tip garda',
|
||||
|
||||
];
|
||||
|
|
@ -5,7 +5,14 @@
|
|||
<li><a href="{{ backpack_url('material') }}"><i class="fa fa-video-camera"></i> <span>{{ trans('admin.materials') }}</span></a></li>
|
||||
<li><a href="{{ backpack_url('elfinder') }}"><i class="fa fa-files-o"></i> <span>{{ trans('backpack::crud.file_manager') }}</span></a></li>
|
||||
<li><a href="{{ backpack_url('order') }}"><i class='fa fa-cubes'></i> <span>Sargytlar</span></a></li>
|
||||
|
||||
<li class="treeview">
|
||||
<a href="#"><i class="fa fa-group"></i> <span>Users, Roles, Permissions</span> <i class="fa fa-angle-left pull-right"></i></a>
|
||||
<ul class="treeview-menu">
|
||||
<li><a href="{{ backpack_url('user') }}"><i class="fa fa-user"></i> <span>Users</span></a></li>
|
||||
<li><a href="{{ backpack_url('role') }}"><i class="fa fa-group"></i> <span>Roles</span></a></li>
|
||||
<li><a href="{{ backpack_url('permission') }}"><i class="fa fa-key"></i> <span>Permissions</span></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="header">Web</li>
|
||||
<li><a href="{{backpack_url('page') }}"><i class="fa fa-file"></i> <span>Sahypalar</span></a></li>
|
||||
<li><a href="{{backpack_url('menu') }}"><i class="fa fa-cubes"></i> <span>Menýular</span></a></li>
|
||||
|
|
|
|||
Loading…
Reference in New Issue