Upgrade boilerplate

This commit is contained in:
Ludovic CANDELLIER
2021-09-22 21:01:43 +02:00
parent ffb9f81353
commit e98266e556
56 changed files with 1477 additions and 701 deletions

View File

@@ -1,8 +1,8 @@
<?php
return [
'register' => false, // Allow to register new users on backend login page
'register_role' => 'operator', // Given role to new users (except the first one who is admin)
'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',
@@ -10,4 +10,8 @@ return [
'table' => 'users',
],
],
'throttle' => [
'maxAttempts' => 3, // Maximum number of login attempts to allow
'decayMinutes' => 1, // Number of minutes to wait before login will be available again
],
];

View File

@@ -3,8 +3,9 @@
return [
'default' => config('app.locale'),
'switch' => false,
'allowed' => ['en', 'es', 'fa', 'fr', 'it', 'tr'],
'allowed' => ['bg', 'en', 'es', 'fa', 'fr', 'it', 'tr'],
'languages' => [
'bg' => ['label' => 'български', 'datatable' => 'Bulgarian'],
'en' => ['label' => 'English', 'datatable' => 'English'],
'es' => ['label' => 'Español', 'datatable' => 'Spanish'],
'fa' => ['label' => 'فارسی', 'datatable' => 'Persian'],

View File

@@ -2,10 +2,14 @@
$theme = include __DIR__.'/themes/green.php';
// Additionnal views to append items to the navbar
$theme['navbar'] += [
'left' => [],
'right' => [],
$theme += [
'navbar' => [ // Additionnal views to append items to the navbar
'left' => [],
'right' => [],
],
'favicon' => null, // Favicon url
'fullscreen' => true, // Fullscreen switch
'darkmode' => true, // Dark mode switch
];
return $theme;

View File

@@ -16,7 +16,7 @@ return [
],
],
'sidebar' => [
'type' => 'light',
'type' => 'dark',
'shadow' => 0,
'border' => false,
'compact' => false,

View File

@@ -11,8 +11,8 @@ return [
'type' => 'light',
'border' => true,
'user' => [
'visible' => true,
'shadow' => 2,
'visible' => false,
'shadow' => 0,
],
],
'sidebar' => [
@@ -27,20 +27,20 @@ return [
'brand' => [
'bg' => 'gray-dark',
'logo' => [
'bg' => '',
'icon' => '',
'text' => 'Jardinenvie',
'bg' => 'blue',
'icon' => '<i class="fa fa-cubes"></i>',
'text' => '<strong>BO</strong>ilerplate',
'shadow' => 2,
],
],
'user' => [
'visible' => false,
'visible' => true,
'shadow' => 2,
],
],
'footer' => [
'visible' => true,
'vendorname' => 'Jardinenvie',
'vendorname' => 'Boilerplate',
'vendorlink' => '',
],
'card' => [

View File

@@ -150,6 +150,7 @@ return [
'backtrace' => true, // Use a backtrace to find the origin of the query in your files.
'backtrace_exclude_paths' => [], // Paths to exclude from backtrace. (in addition to defaults)
'timeline' => false, // Add the queries to the timeline
'duration_background' => true, // Show shaded background on each query relative to how long it took to execute.
'explain' => [ // Show EXPLAIN output on queries
'enabled' => false,
'types' => ['SELECT'], // Deprecated setting, is always only SELECT
@@ -161,6 +162,7 @@ return [
'full_log' => false,
],
'views' => [
'timeline' => false, // Add the views to the timeline (Experimental)
'data' => false, //Note: Can slow down the application, because the data can be quite large..
],
'route' => [