Initial release

This commit is contained in:
Ludovic CANDELLIER
2020-03-22 21:30:03 +01:00
commit baf8e13c25
193 changed files with 8170 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
<?php
return [
// Backend routes prefix. Ex: "admin" => "http://..../admin"
'prefix' => 'admin',
// Backend domain if different as current domain. Ex: "admin.mydomain.tld"
'domain' => '',
// Redirect to this route after login
'redirectTo' => 'boilerplate.dashboard',
// Backend locale
'locale' => config('app.locale'),
];

View File

@@ -0,0 +1,13 @@
<?php
return [
'register' => false, // Allow to register new users on backend login page
'register_role' => 'backend_user', // Given role to new users (except the first one who is admin)
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => Sebastienheyd\Boilerplate\Models\User::class,
'table' => 'users',
],
],
];

View File

@@ -0,0 +1,7 @@
<?php
return [
'user' => Sebastienheyd\Boilerplate\Models\User::class,
'role' => Sebastienheyd\Boilerplate\Models\Role::class,
'permission' => Sebastienheyd\Boilerplate\Models\Permission::class,
];

View File

@@ -0,0 +1,6 @@
<?php
return [
'dashboard' => \Sebastienheyd\Boilerplate\Controllers\DashboardController::class, // Dashboard controller to use
'providers' => [], // Additional menu items providers
];

View File

@@ -0,0 +1,11 @@
<?php
$theme = include __DIR__.'/themes/default.php';
// Additionnal views to append items to the navbar
$theme['navbar'] += [
'left' => [],
'right' => [],
];
return $theme;

View File

@@ -0,0 +1,50 @@
<?php
/**
* BG : blue, indigo, purple, pink, red, orange, yellow, green, teal, cyan, gray, gray-dark, black
* Type : dark, light
* Shadow : 0-4.
*/
return [
'navbar' => [
'bg' => 'gray-dark',
'type' => 'dark',
'border' => true,
'user' => [
'visible' => false,
'shadow' => 0,
],
],
'sidebar' => [
'type' => 'light',
'shadow' => 0,
'border' => false,
'compact' => false,
'links' => [
'bg' => 'gray-dark',
'shadow' => 0,
],
'brand' => [
'bg' => 'gray-dark',
'logo' => [
'bg' => 'white',
'icon' => '<i class="fa fa-cubes"></i>',
'text' => '<strong>BO</strong>ilerplate',
'shadow' => 2,
],
],
'user' => [
'visible' => true,
'shadow' => 0,
],
],
'footer' => [
'visible' => true,
'vendorname' => 'Boilerplate',
'vendorlink' => '',
],
'card' => [
'outline' => true,
'default_color' => 'info',
],
];

View File

@@ -0,0 +1,50 @@
<?php
/**
* BG : blue, indigo, purple, pink, red, orange, yellow, green, teal, cyan, gray, gray-dark, black
* Type : dark, light
* Shadow : 0-4.
*/
return [
'navbar' => [
'bg' => 'white',
'type' => 'light',
'border' => true,
'user' => [
'visible' => false,
'shadow' => 0,
],
],
'sidebar' => [
'type' => 'dark',
'shadow' => 4,
'border' => false,
'compact' => false,
'links' => [
'bg' => 'blue',
'shadow' => 1,
],
'brand' => [
'bg' => 'gray-dark',
'logo' => [
'bg' => 'blue',
'icon' => '<i class="fa fa-cubes"></i>',
'text' => '<strong>BO</strong>ilerplate',
'shadow' => 2,
],
],
'user' => [
'visible' => true,
'shadow' => 2,
],
],
'footer' => [
'visible' => true,
'vendorname' => 'Boilerplate',
'vendorlink' => '',
],
'card' => [
'outline' => true,
'default_color' => 'info',
],
];

View File

@@ -0,0 +1,50 @@
<?php
/**
* BG : blue, indigo, purple, pink, red, orange, yellow, green, teal, cyan, gray, gray-dark, black
* Type : dark, light
* Shadow : 0-4.
*/
return [
'navbar' => [
'bg' => 'red',
'type' => 'dark',
'border' => true,
'user' => [
'visible' => true,
'shadow' => 0,
],
],
'sidebar' => [
'type' => 'dark',
'shadow' => 0,
'border' => true,
'compact' => false,
'links' => [
'bg' => 'red',
'shadow' => 0,
],
'brand' => [
'bg' => 'red',
'logo' => [
'bg' => 'white',
'icon' => '<i class="fa fa-cubes"></i>',
'text' => '<strong>BO</strong>ilerplate',
'shadow' => 2,
],
],
'user' => [
'visible' => false,
'shadow' => 2,
],
],
'footer' => [
'visible' => true,
'vendorname' => 'Boilerplate',
'vendorlink' => '',
],
'card' => [
'outline' => true,
'default_color' => 'red',
],
];