first commit
This commit is contained in:
126
config/app.php
Normal file
126
config/app.php
Normal file
@ -0,0 +1,126 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Application Name
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This value is the name of your application, which will be used when the
|
||||
| framework needs to place the application's name in a notification or
|
||||
| other UI elements where an application name needs to be displayed.
|
||||
|
|
||||
*/
|
||||
|
||||
'name' => env('APP_NAME', 'Laravel'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Application Environment
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This value determines the "environment" your application is currently
|
||||
| running in. This may determine how you prefer to configure various
|
||||
| services the application utilizes. Set this in your ".env" file.
|
||||
|
|
||||
*/
|
||||
|
||||
'env' => env('APP_ENV', 'production'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Application Debug Mode
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| When your application is in debug mode, detailed error messages with
|
||||
| stack traces will be shown on every error that occurs within your
|
||||
| application. If disabled, a simple generic error page is shown.
|
||||
|
|
||||
*/
|
||||
|
||||
'debug' => (bool) env('APP_DEBUG', false),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Application URL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This URL is used by the console to properly generate URLs when using
|
||||
| the Artisan command line tool. You should set this to the root of
|
||||
| the application so that it's available within Artisan commands.
|
||||
|
|
||||
*/
|
||||
|
||||
'url' => env('APP_URL', 'http://localhost'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Application Timezone
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify the default timezone for your application, which
|
||||
| will be used by the PHP date and date-time functions. The timezone
|
||||
| is set to "UTC" by default as it is suitable for most use cases.
|
||||
|
|
||||
*/
|
||||
|
||||
'timezone' => env('APP_TIMEZONE', 'UTC'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Application Locale Configuration
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The application locale determines the default locale that will be used
|
||||
| by Laravel's translation / localization methods. This option can be
|
||||
| set to any locale for which you plan to have translation strings.
|
||||
|
|
||||
*/
|
||||
|
||||
'locale' => env('APP_LOCALE', 'en'),
|
||||
|
||||
'fallback_locale' => env('APP_FALLBACK_LOCALE', 'en'),
|
||||
|
||||
'faker_locale' => env('APP_FAKER_LOCALE', 'en_US'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Encryption Key
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This key is utilized by Laravel's encryption services and should be set
|
||||
| to a random, 32 character string to ensure that all encrypted values
|
||||
| are secure. You should do this prior to deploying the application.
|
||||
|
|
||||
*/
|
||||
|
||||
'cipher' => 'AES-256-CBC',
|
||||
|
||||
'key' => env('APP_KEY'),
|
||||
|
||||
'previous_keys' => [
|
||||
...array_filter(
|
||||
explode(',', env('APP_PREVIOUS_KEYS', ''))
|
||||
),
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Maintenance Mode Driver
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| These configuration options determine the driver used to determine and
|
||||
| manage Laravel's "maintenance mode" status. The "cache" driver will
|
||||
| allow maintenance mode to be controlled across multiple machines.
|
||||
|
|
||||
| Supported drivers: "file", "cache"
|
||||
|
|
||||
*/
|
||||
|
||||
'maintenance' => [
|
||||
'driver' => env('APP_MAINTENANCE_DRIVER', 'file'),
|
||||
'store' => env('APP_MAINTENANCE_STORE', 'database'),
|
||||
],
|
||||
|
||||
];
|
115
config/auth.php
Normal file
115
config/auth.php
Normal file
@ -0,0 +1,115 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Authentication Defaults
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option defines the default authentication "guard" and password
|
||||
| reset "broker" for your application. You may change these values
|
||||
| as required, but they're a perfect start for most applications.
|
||||
|
|
||||
*/
|
||||
|
||||
'defaults' => [
|
||||
'guard' => env('AUTH_GUARD', 'web'),
|
||||
'passwords' => env('AUTH_PASSWORD_BROKER', 'users'),
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Authentication Guards
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Next, you may define every authentication guard for your application.
|
||||
| Of course, a great default configuration has been defined for you
|
||||
| which utilizes session storage plus the Eloquent user provider.
|
||||
|
|
||||
| All authentication guards have a user provider, which defines how the
|
||||
| users are actually retrieved out of your database or other storage
|
||||
| system used by the application. Typically, Eloquent is utilized.
|
||||
|
|
||||
| Supported: "session"
|
||||
|
|
||||
*/
|
||||
|
||||
'guards' => [
|
||||
'web' => [
|
||||
'driver' => 'session',
|
||||
'provider' => 'users',
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| User Providers
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| All authentication guards have a user provider, which defines how the
|
||||
| users are actually retrieved out of your database or other storage
|
||||
| system used by the application. Typically, Eloquent is utilized.
|
||||
|
|
||||
| If you have multiple user tables or models you may configure multiple
|
||||
| providers to represent the model / table. These providers may then
|
||||
| be assigned to any extra authentication guards you have defined.
|
||||
|
|
||||
| Supported: "database", "eloquent"
|
||||
|
|
||||
*/
|
||||
|
||||
'providers' => [
|
||||
'users' => [
|
||||
'driver' => 'eloquent',
|
||||
'model' => env('AUTH_MODEL', App\Models\User::class),
|
||||
],
|
||||
|
||||
// 'users' => [
|
||||
// 'driver' => 'database',
|
||||
// 'table' => 'users',
|
||||
// ],
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Resetting Passwords
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| These configuration options specify the behavior of Laravel's password
|
||||
| reset functionality, including the table utilized for token storage
|
||||
| and the user provider that is invoked to actually retrieve users.
|
||||
|
|
||||
| The expiry time is the number of minutes that each reset token will be
|
||||
| considered valid. This security feature keeps tokens short-lived so
|
||||
| they have less time to be guessed. You may change this as needed.
|
||||
|
|
||||
| The throttle setting is the number of seconds a user must wait before
|
||||
| generating more password reset tokens. This prevents the user from
|
||||
| quickly generating a very large amount of password reset tokens.
|
||||
|
|
||||
*/
|
||||
|
||||
'passwords' => [
|
||||
'users' => [
|
||||
'provider' => 'users',
|
||||
'table' => env('AUTH_PASSWORD_RESET_TOKEN_TABLE', 'password_reset_tokens'),
|
||||
'expire' => 60,
|
||||
'throttle' => 60,
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Password Confirmation Timeout
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may define the amount of seconds before a password confirmation
|
||||
| window expires and users are asked to re-enter their password via the
|
||||
| confirmation screen. By default, the timeout lasts for three hours.
|
||||
|
|
||||
*/
|
||||
|
||||
'password_timeout' => env('AUTH_PASSWORD_TIMEOUT', 10800),
|
||||
|
||||
];
|
108
config/cache.php
Normal file
108
config/cache.php
Normal file
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Cache Store
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option controls the default cache store that will be used by the
|
||||
| framework. This connection is utilized if another isn't explicitly
|
||||
| specified when running a cache operation inside the application.
|
||||
|
|
||||
*/
|
||||
|
||||
'default' => env('CACHE_STORE', 'database'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Stores
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may define all of the cache "stores" for your application as
|
||||
| well as their drivers. You may even define multiple stores for the
|
||||
| same cache driver to group types of items stored in your caches.
|
||||
|
|
||||
| Supported drivers: "array", "database", "file", "memcached",
|
||||
| "redis", "dynamodb", "octane", "null"
|
||||
|
|
||||
*/
|
||||
|
||||
'stores' => [
|
||||
|
||||
'array' => [
|
||||
'driver' => 'array',
|
||||
'serialize' => false,
|
||||
],
|
||||
|
||||
'database' => [
|
||||
'driver' => 'database',
|
||||
'connection' => env('DB_CACHE_CONNECTION'),
|
||||
'table' => env('DB_CACHE_TABLE', 'cache'),
|
||||
'lock_connection' => env('DB_CACHE_LOCK_CONNECTION'),
|
||||
'lock_table' => env('DB_CACHE_LOCK_TABLE'),
|
||||
],
|
||||
|
||||
'file' => [
|
||||
'driver' => 'file',
|
||||
'path' => storage_path('framework/cache/data'),
|
||||
'lock_path' => storage_path('framework/cache/data'),
|
||||
],
|
||||
|
||||
'memcached' => [
|
||||
'driver' => 'memcached',
|
||||
'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
|
||||
'sasl' => [
|
||||
env('MEMCACHED_USERNAME'),
|
||||
env('MEMCACHED_PASSWORD'),
|
||||
],
|
||||
'options' => [
|
||||
// Memcached::OPT_CONNECT_TIMEOUT => 2000,
|
||||
],
|
||||
'servers' => [
|
||||
[
|
||||
'host' => env('MEMCACHED_HOST', '127.0.0.1'),
|
||||
'port' => env('MEMCACHED_PORT', 11211),
|
||||
'weight' => 100,
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
'redis' => [
|
||||
'driver' => 'redis',
|
||||
'connection' => env('REDIS_CACHE_CONNECTION', 'cache'),
|
||||
'lock_connection' => env('REDIS_CACHE_LOCK_CONNECTION', 'default'),
|
||||
],
|
||||
|
||||
'dynamodb' => [
|
||||
'driver' => 'dynamodb',
|
||||
'key' => env('AWS_ACCESS_KEY_ID'),
|
||||
'secret' => env('AWS_SECRET_ACCESS_KEY'),
|
||||
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
|
||||
'table' => env('DYNAMODB_CACHE_TABLE', 'cache'),
|
||||
'endpoint' => env('DYNAMODB_ENDPOINT'),
|
||||
],
|
||||
|
||||
'octane' => [
|
||||
'driver' => 'octane',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Key Prefix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| When utilizing the APC, database, memcached, Redis, and DynamoDB cache
|
||||
| stores, there might be other applications using the same cache. For
|
||||
| that reason, you may prefix every cache key to avoid collisions.
|
||||
|
|
||||
*/
|
||||
|
||||
'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache_'),
|
||||
|
||||
];
|
173
config/database.php
Normal file
173
config/database.php
Normal file
@ -0,0 +1,173 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Database Connection Name
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify which of the database connections below you wish
|
||||
| to use as your default connection for database operations. This is
|
||||
| the connection which will be utilized unless another connection
|
||||
| is explicitly specified when you execute a query / statement.
|
||||
|
|
||||
*/
|
||||
|
||||
'default' => env('DB_CONNECTION', 'sqlite'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Database Connections
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Below are all of the database connections defined for your application.
|
||||
| An example configuration is provided for each database system which
|
||||
| is supported by Laravel. You're free to add / remove connections.
|
||||
|
|
||||
*/
|
||||
|
||||
'connections' => [
|
||||
|
||||
'sqlite' => [
|
||||
'driver' => 'sqlite',
|
||||
'url' => env('DB_URL'),
|
||||
'database' => env('DB_DATABASE', database_path('database.sqlite')),
|
||||
'prefix' => '',
|
||||
'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
|
||||
'busy_timeout' => null,
|
||||
'journal_mode' => null,
|
||||
'synchronous' => null,
|
||||
],
|
||||
|
||||
'mysql' => [
|
||||
'driver' => 'mysql',
|
||||
'url' => env('DB_URL'),
|
||||
'host' => env('DB_HOST', '127.0.0.1'),
|
||||
'port' => env('DB_PORT', '3306'),
|
||||
'database' => env('DB_DATABASE', 'laravel'),
|
||||
'username' => env('DB_USERNAME', 'root'),
|
||||
'password' => env('DB_PASSWORD', ''),
|
||||
'unix_socket' => env('DB_SOCKET', ''),
|
||||
'charset' => env('DB_CHARSET', 'utf8mb4'),
|
||||
'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'),
|
||||
'prefix' => '',
|
||||
'prefix_indexes' => true,
|
||||
'strict' => true,
|
||||
'engine' => null,
|
||||
'options' => extension_loaded('pdo_mysql') ? array_filter([
|
||||
PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
|
||||
]) : [],
|
||||
],
|
||||
|
||||
'mariadb' => [
|
||||
'driver' => 'mariadb',
|
||||
'url' => env('DB_URL'),
|
||||
'host' => env('DB_HOST', '127.0.0.1'),
|
||||
'port' => env('DB_PORT', '3306'),
|
||||
'database' => env('DB_DATABASE', 'laravel'),
|
||||
'username' => env('DB_USERNAME', 'root'),
|
||||
'password' => env('DB_PASSWORD', ''),
|
||||
'unix_socket' => env('DB_SOCKET', ''),
|
||||
'charset' => env('DB_CHARSET', 'utf8mb4'),
|
||||
'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'),
|
||||
'prefix' => '',
|
||||
'prefix_indexes' => true,
|
||||
'strict' => true,
|
||||
'engine' => null,
|
||||
'options' => extension_loaded('pdo_mysql') ? array_filter([
|
||||
PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
|
||||
]) : [],
|
||||
],
|
||||
|
||||
'pgsql' => [
|
||||
'driver' => 'pgsql',
|
||||
'url' => env('DB_URL'),
|
||||
'host' => env('DB_HOST', '127.0.0.1'),
|
||||
'port' => env('DB_PORT', '5432'),
|
||||
'database' => env('DB_DATABASE', 'laravel'),
|
||||
'username' => env('DB_USERNAME', 'root'),
|
||||
'password' => env('DB_PASSWORD', ''),
|
||||
'charset' => env('DB_CHARSET', 'utf8'),
|
||||
'prefix' => '',
|
||||
'prefix_indexes' => true,
|
||||
'search_path' => 'public',
|
||||
'sslmode' => 'prefer',
|
||||
],
|
||||
|
||||
'sqlsrv' => [
|
||||
'driver' => 'sqlsrv',
|
||||
'url' => env('DB_URL'),
|
||||
'host' => env('DB_HOST', 'localhost'),
|
||||
'port' => env('DB_PORT', '1433'),
|
||||
'database' => env('DB_DATABASE', 'laravel'),
|
||||
'username' => env('DB_USERNAME', 'root'),
|
||||
'password' => env('DB_PASSWORD', ''),
|
||||
'charset' => env('DB_CHARSET', 'utf8'),
|
||||
'prefix' => '',
|
||||
'prefix_indexes' => true,
|
||||
// 'encrypt' => env('DB_ENCRYPT', 'yes'),
|
||||
// 'trust_server_certificate' => env('DB_TRUST_SERVER_CERTIFICATE', 'false'),
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Migration Repository Table
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This table keeps track of all the migrations that have already run for
|
||||
| your application. Using this information, we can determine which of
|
||||
| the migrations on disk haven't actually been run on the database.
|
||||
|
|
||||
*/
|
||||
|
||||
'migrations' => [
|
||||
'table' => 'migrations',
|
||||
'update_date_on_publish' => true,
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Redis Databases
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Redis is an open source, fast, and advanced key-value store that also
|
||||
| provides a richer body of commands than a typical key-value system
|
||||
| such as Memcached. You may define your connection settings here.
|
||||
|
|
||||
*/
|
||||
|
||||
'redis' => [
|
||||
|
||||
'client' => env('REDIS_CLIENT', 'phpredis'),
|
||||
|
||||
'options' => [
|
||||
'cluster' => env('REDIS_CLUSTER', 'redis'),
|
||||
'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'),
|
||||
],
|
||||
|
||||
'default' => [
|
||||
'url' => env('REDIS_URL'),
|
||||
'host' => env('REDIS_HOST', '127.0.0.1'),
|
||||
'username' => env('REDIS_USERNAME'),
|
||||
'password' => env('REDIS_PASSWORD'),
|
||||
'port' => env('REDIS_PORT', '6379'),
|
||||
'database' => env('REDIS_DB', '0'),
|
||||
],
|
||||
|
||||
'cache' => [
|
||||
'url' => env('REDIS_URL'),
|
||||
'host' => env('REDIS_HOST', '127.0.0.1'),
|
||||
'username' => env('REDIS_USERNAME'),
|
||||
'password' => env('REDIS_PASSWORD'),
|
||||
'port' => env('REDIS_PORT', '6379'),
|
||||
'database' => env('REDIS_CACHE_DB', '1'),
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
];
|
80
config/filesystems.php
Normal file
80
config/filesystems.php
Normal file
@ -0,0 +1,80 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Filesystem Disk
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify the default filesystem disk that should be used
|
||||
| by the framework. The "local" disk, as well as a variety of cloud
|
||||
| based disks are available to your application for file storage.
|
||||
|
|
||||
*/
|
||||
|
||||
'default' => env('FILESYSTEM_DISK', 'local'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Filesystem Disks
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Below you may configure as many filesystem disks as necessary, and you
|
||||
| may even configure multiple disks for the same driver. Examples for
|
||||
| most supported storage drivers are configured here for reference.
|
||||
|
|
||||
| Supported drivers: "local", "ftp", "sftp", "s3"
|
||||
|
|
||||
*/
|
||||
|
||||
'disks' => [
|
||||
|
||||
'local' => [
|
||||
'driver' => 'local',
|
||||
'root' => storage_path('app/private'),
|
||||
'serve' => true,
|
||||
'throw' => false,
|
||||
'report' => false,
|
||||
],
|
||||
|
||||
'public' => [
|
||||
'driver' => 'local',
|
||||
'root' => storage_path('app/public'),
|
||||
'url' => env('APP_URL').'/storage',
|
||||
'visibility' => 'public',
|
||||
'throw' => false,
|
||||
'report' => false,
|
||||
],
|
||||
|
||||
's3' => [
|
||||
'driver' => 's3',
|
||||
'key' => env('AWS_ACCESS_KEY_ID'),
|
||||
'secret' => env('AWS_SECRET_ACCESS_KEY'),
|
||||
'region' => env('AWS_DEFAULT_REGION'),
|
||||
'bucket' => env('AWS_BUCKET'),
|
||||
'url' => env('AWS_URL'),
|
||||
'endpoint' => env('AWS_ENDPOINT'),
|
||||
'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),
|
||||
'throw' => false,
|
||||
'report' => false,
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Symbolic Links
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may configure the symbolic links that will be created when the
|
||||
| `storage:link` Artisan command is executed. The array keys should be
|
||||
| the locations of the links and the values should be their targets.
|
||||
|
|
||||
*/
|
||||
|
||||
'links' => [
|
||||
public_path('storage') => storage_path('app/public'),
|
||||
],
|
||||
|
||||
];
|
159
config/fortify.php
Normal file
159
config/fortify.php
Normal file
@ -0,0 +1,159 @@
|
||||
<?php
|
||||
|
||||
use Laravel\Fortify\Features;
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Fortify Guard
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify which authentication guard Fortify will use while
|
||||
| authenticating users. This value should correspond with one of your
|
||||
| guards that is already present in your "auth" configuration file.
|
||||
|
|
||||
*/
|
||||
|
||||
'guard' => 'web',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Fortify Password Broker
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify which password broker Fortify can use when a user
|
||||
| is resetting their password. This configured value should match one
|
||||
| of your password brokers setup in your "auth" configuration file.
|
||||
|
|
||||
*/
|
||||
|
||||
'passwords' => 'users',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Username / Email
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This value defines which model attribute should be considered as your
|
||||
| application's "username" field. Typically, this might be the email
|
||||
| address of the users but you are free to change this value here.
|
||||
|
|
||||
| Out of the box, Fortify expects forgot password and reset password
|
||||
| requests to have a field named 'email'. If the application uses
|
||||
| another name for the field you may define it below as needed.
|
||||
|
|
||||
*/
|
||||
|
||||
'username' => 'email',
|
||||
|
||||
'email' => 'email',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Lowercase Usernames
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This value defines whether usernames should be lowercased before saving
|
||||
| them in the database, as some database system string fields are case
|
||||
| sensitive. You may disable this for your application if necessary.
|
||||
|
|
||||
*/
|
||||
|
||||
'lowercase_usernames' => true,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Home Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may configure the path where users will get redirected during
|
||||
| authentication or password reset when the operations are successful
|
||||
| and the user is authenticated. You are free to change this value.
|
||||
|
|
||||
*/
|
||||
|
||||
'home' => '/admin',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Fortify Routes Prefix / Subdomain
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify which prefix Fortify will assign to all the routes
|
||||
| that it registers with the application. If necessary, you may change
|
||||
| subdomain under which all of the Fortify routes will be available.
|
||||
|
|
||||
*/
|
||||
|
||||
'prefix' => '',
|
||||
|
||||
'domain' => null,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Fortify Routes Middleware
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify which middleware Fortify will assign to the routes
|
||||
| that it registers with the application. If necessary, you may change
|
||||
| these middleware but typically this provided default is preferred.
|
||||
|
|
||||
*/
|
||||
|
||||
'middleware' => ['web'],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Rate Limiting
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default, Fortify will throttle logins to five requests per minute for
|
||||
| every email and IP address combination. However, if you would like to
|
||||
| specify a custom rate limiter to call then you may specify it here.
|
||||
|
|
||||
*/
|
||||
|
||||
'limiters' => [
|
||||
'login' => 'login',
|
||||
'two-factor' => 'two-factor',
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Register View Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify if the routes returning views should be disabled as
|
||||
| you may not need them when building your own application. This may be
|
||||
| especially true if you're writing a custom single-page application.
|
||||
|
|
||||
*/
|
||||
|
||||
'views' => true,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Features
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Some of the Fortify features are optional. You may disable the features
|
||||
| by removing them from this array. You're free to only remove some of
|
||||
| these features or you can even remove all of these if you need to.
|
||||
|
|
||||
*/
|
||||
|
||||
'features' => [
|
||||
Features::registration(),
|
||||
Features::resetPasswords(),
|
||||
Features::emailVerification(),
|
||||
Features::updateProfileInformation(),
|
||||
Features::updatePasswords(),
|
||||
Features::twoFactorAuthentication([
|
||||
'confirm' => true,
|
||||
'confirmPassword' => true,
|
||||
'window' => 1,
|
||||
]),
|
||||
],
|
||||
|
||||
];
|
42
config/image.php
Normal file
42
config/image.php
Normal file
@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Image Driver
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Intervention Image supports “GD Library” and “Imagick” to process images
|
||||
| internally. Depending on your PHP setup, you can choose one of them.
|
||||
|
|
||||
| Included options:
|
||||
| - \Intervention\Image\Drivers\Gd\Driver::class
|
||||
| - \Intervention\Image\Drivers\Imagick\Driver::class
|
||||
|
|
||||
*/
|
||||
|
||||
'driver' => \Intervention\Image\Drivers\Imagick\Driver::class,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Configuration Options
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| These options control the behavior of Intervention Image.
|
||||
|
|
||||
| - "autoOrientation" controls whether an imported image should be
|
||||
| automatically rotated according to any existing Exif data.
|
||||
|
|
||||
| - "decodeAnimation" decides whether a possibly animated image is
|
||||
| decoded as such or whether the animation is discarded.
|
||||
|
|
||||
| - "blendingColor" Defines the default blending color.
|
||||
*/
|
||||
|
||||
'options' => [
|
||||
'autoOrientation' => true,
|
||||
'decodeAnimation' => true,
|
||||
'blendingColor' => 'ffffff',
|
||||
]
|
||||
];
|
132
config/logging.php
Normal file
132
config/logging.php
Normal file
@ -0,0 +1,132 @@
|
||||
<?php
|
||||
|
||||
use Monolog\Handler\NullHandler;
|
||||
use Monolog\Handler\StreamHandler;
|
||||
use Monolog\Handler\SyslogUdpHandler;
|
||||
use Monolog\Processor\PsrLogMessageProcessor;
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Log Channel
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option defines the default log channel that is utilized to write
|
||||
| messages to your logs. The value provided here should match one of
|
||||
| the channels present in the list of "channels" configured below.
|
||||
|
|
||||
*/
|
||||
|
||||
'default' => env('LOG_CHANNEL', 'stack'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Deprecations Log Channel
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option controls the log channel that should be used to log warnings
|
||||
| regarding deprecated PHP and library features. This allows you to get
|
||||
| your application ready for upcoming major versions of dependencies.
|
||||
|
|
||||
*/
|
||||
|
||||
'deprecations' => [
|
||||
'channel' => env('LOG_DEPRECATIONS_CHANNEL', 'null'),
|
||||
'trace' => env('LOG_DEPRECATIONS_TRACE', false),
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Log Channels
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may configure the log channels for your application. Laravel
|
||||
| utilizes the Monolog PHP logging library, which includes a variety
|
||||
| of powerful log handlers and formatters that you're free to use.
|
||||
|
|
||||
| Available drivers: "single", "daily", "slack", "syslog",
|
||||
| "errorlog", "monolog", "custom", "stack"
|
||||
|
|
||||
*/
|
||||
|
||||
'channels' => [
|
||||
|
||||
'stack' => [
|
||||
'driver' => 'stack',
|
||||
'channels' => explode(',', env('LOG_STACK', 'single')),
|
||||
'ignore_exceptions' => false,
|
||||
],
|
||||
|
||||
'single' => [
|
||||
'driver' => 'single',
|
||||
'path' => storage_path('logs/laravel.log'),
|
||||
'level' => env('LOG_LEVEL', 'debug'),
|
||||
'replace_placeholders' => true,
|
||||
],
|
||||
|
||||
'daily' => [
|
||||
'driver' => 'daily',
|
||||
'path' => storage_path('logs/laravel.log'),
|
||||
'level' => env('LOG_LEVEL', 'debug'),
|
||||
'days' => env('LOG_DAILY_DAYS', 14),
|
||||
'replace_placeholders' => true,
|
||||
],
|
||||
|
||||
'slack' => [
|
||||
'driver' => 'slack',
|
||||
'url' => env('LOG_SLACK_WEBHOOK_URL'),
|
||||
'username' => env('LOG_SLACK_USERNAME', 'Laravel Log'),
|
||||
'emoji' => env('LOG_SLACK_EMOJI', ':boom:'),
|
||||
'level' => env('LOG_LEVEL', 'critical'),
|
||||
'replace_placeholders' => true,
|
||||
],
|
||||
|
||||
'papertrail' => [
|
||||
'driver' => 'monolog',
|
||||
'level' => env('LOG_LEVEL', 'debug'),
|
||||
'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class),
|
||||
'handler_with' => [
|
||||
'host' => env('PAPERTRAIL_URL'),
|
||||
'port' => env('PAPERTRAIL_PORT'),
|
||||
'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'),
|
||||
],
|
||||
'processors' => [PsrLogMessageProcessor::class],
|
||||
],
|
||||
|
||||
'stderr' => [
|
||||
'driver' => 'monolog',
|
||||
'level' => env('LOG_LEVEL', 'debug'),
|
||||
'handler' => StreamHandler::class,
|
||||
'formatter' => env('LOG_STDERR_FORMATTER'),
|
||||
'with' => [
|
||||
'stream' => 'php://stderr',
|
||||
],
|
||||
'processors' => [PsrLogMessageProcessor::class],
|
||||
],
|
||||
|
||||
'syslog' => [
|
||||
'driver' => 'syslog',
|
||||
'level' => env('LOG_LEVEL', 'debug'),
|
||||
'facility' => env('LOG_SYSLOG_FACILITY', LOG_USER),
|
||||
'replace_placeholders' => true,
|
||||
],
|
||||
|
||||
'errorlog' => [
|
||||
'driver' => 'errorlog',
|
||||
'level' => env('LOG_LEVEL', 'debug'),
|
||||
'replace_placeholders' => true,
|
||||
],
|
||||
|
||||
'null' => [
|
||||
'driver' => 'monolog',
|
||||
'handler' => NullHandler::class,
|
||||
],
|
||||
|
||||
'emergency' => [
|
||||
'path' => storage_path('logs/laravel.log'),
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
];
|
116
config/mail.php
Normal file
116
config/mail.php
Normal file
@ -0,0 +1,116 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Mailer
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option controls the default mailer that is used to send all email
|
||||
| messages unless another mailer is explicitly specified when sending
|
||||
| the message. All additional mailers can be configured within the
|
||||
| "mailers" array. Examples of each type of mailer are provided.
|
||||
|
|
||||
*/
|
||||
|
||||
'default' => env('MAIL_MAILER', 'log'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Mailer Configurations
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may configure all of the mailers used by your application plus
|
||||
| their respective settings. Several examples have been configured for
|
||||
| you and you are free to add your own as your application requires.
|
||||
|
|
||||
| Laravel supports a variety of mail "transport" drivers that can be used
|
||||
| when delivering an email. You may specify which one you're using for
|
||||
| your mailers below. You may also add additional mailers if needed.
|
||||
|
|
||||
| Supported: "smtp", "sendmail", "mailgun", "ses", "ses-v2",
|
||||
| "postmark", "resend", "log", "array",
|
||||
| "failover", "roundrobin"
|
||||
|
|
||||
*/
|
||||
|
||||
'mailers' => [
|
||||
|
||||
'smtp' => [
|
||||
'transport' => 'smtp',
|
||||
'scheme' => env('MAIL_SCHEME'),
|
||||
'url' => env('MAIL_URL'),
|
||||
'host' => env('MAIL_HOST', '127.0.0.1'),
|
||||
'port' => env('MAIL_PORT', 2525),
|
||||
'username' => env('MAIL_USERNAME'),
|
||||
'password' => env('MAIL_PASSWORD'),
|
||||
'timeout' => null,
|
||||
'local_domain' => env('MAIL_EHLO_DOMAIN', parse_url(env('APP_URL', 'http://localhost'), PHP_URL_HOST)),
|
||||
],
|
||||
|
||||
'ses' => [
|
||||
'transport' => 'ses',
|
||||
],
|
||||
|
||||
'postmark' => [
|
||||
'transport' => 'postmark',
|
||||
// 'message_stream_id' => env('POSTMARK_MESSAGE_STREAM_ID'),
|
||||
// 'client' => [
|
||||
// 'timeout' => 5,
|
||||
// ],
|
||||
],
|
||||
|
||||
'resend' => [
|
||||
'transport' => 'resend',
|
||||
],
|
||||
|
||||
'sendmail' => [
|
||||
'transport' => 'sendmail',
|
||||
'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'),
|
||||
],
|
||||
|
||||
'log' => [
|
||||
'transport' => 'log',
|
||||
'channel' => env('MAIL_LOG_CHANNEL'),
|
||||
],
|
||||
|
||||
'array' => [
|
||||
'transport' => 'array',
|
||||
],
|
||||
|
||||
'failover' => [
|
||||
'transport' => 'failover',
|
||||
'mailers' => [
|
||||
'smtp',
|
||||
'log',
|
||||
],
|
||||
],
|
||||
|
||||
'roundrobin' => [
|
||||
'transport' => 'roundrobin',
|
||||
'mailers' => [
|
||||
'ses',
|
||||
'postmark',
|
||||
],
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Global "From" Address
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| You may wish for all emails sent by your application to be sent from
|
||||
| the same address. Here you may specify a name and address that is
|
||||
| used globally for all emails that are sent by your application.
|
||||
|
|
||||
*/
|
||||
|
||||
'from' => [
|
||||
'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
|
||||
'name' => env('MAIL_FROM_NAME', 'Example'),
|
||||
],
|
||||
|
||||
];
|
112
config/queue.php
Normal file
112
config/queue.php
Normal file
@ -0,0 +1,112 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Queue Connection Name
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Laravel's queue supports a variety of backends via a single, unified
|
||||
| API, giving you convenient access to each backend using identical
|
||||
| syntax for each. The default queue connection is defined below.
|
||||
|
|
||||
*/
|
||||
|
||||
'default' => env('QUEUE_CONNECTION', 'database'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Queue Connections
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may configure the connection options for every queue backend
|
||||
| used by your application. An example configuration is provided for
|
||||
| each backend supported by Laravel. You're also free to add more.
|
||||
|
|
||||
| Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null"
|
||||
|
|
||||
*/
|
||||
|
||||
'connections' => [
|
||||
|
||||
'sync' => [
|
||||
'driver' => 'sync',
|
||||
],
|
||||
|
||||
'database' => [
|
||||
'driver' => 'database',
|
||||
'connection' => env('DB_QUEUE_CONNECTION'),
|
||||
'table' => env('DB_QUEUE_TABLE', 'jobs'),
|
||||
'queue' => env('DB_QUEUE', 'default'),
|
||||
'retry_after' => (int) env('DB_QUEUE_RETRY_AFTER', 90),
|
||||
'after_commit' => false,
|
||||
],
|
||||
|
||||
'beanstalkd' => [
|
||||
'driver' => 'beanstalkd',
|
||||
'host' => env('BEANSTALKD_QUEUE_HOST', 'localhost'),
|
||||
'queue' => env('BEANSTALKD_QUEUE', 'default'),
|
||||
'retry_after' => (int) env('BEANSTALKD_QUEUE_RETRY_AFTER', 90),
|
||||
'block_for' => 0,
|
||||
'after_commit' => false,
|
||||
],
|
||||
|
||||
'sqs' => [
|
||||
'driver' => 'sqs',
|
||||
'key' => env('AWS_ACCESS_KEY_ID'),
|
||||
'secret' => env('AWS_SECRET_ACCESS_KEY'),
|
||||
'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
|
||||
'queue' => env('SQS_QUEUE', 'default'),
|
||||
'suffix' => env('SQS_SUFFIX'),
|
||||
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
|
||||
'after_commit' => false,
|
||||
],
|
||||
|
||||
'redis' => [
|
||||
'driver' => 'redis',
|
||||
'connection' => env('REDIS_QUEUE_CONNECTION', 'default'),
|
||||
'queue' => env('REDIS_QUEUE', 'default'),
|
||||
'retry_after' => (int) env('REDIS_QUEUE_RETRY_AFTER', 90),
|
||||
'block_for' => null,
|
||||
'after_commit' => false,
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Job Batching
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following options configure the database and table that store job
|
||||
| batching information. These options can be updated to any database
|
||||
| connection and table which has been defined by your application.
|
||||
|
|
||||
*/
|
||||
|
||||
'batching' => [
|
||||
'database' => env('DB_CONNECTION', 'sqlite'),
|
||||
'table' => 'job_batches',
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Failed Queue Jobs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| These options configure the behavior of failed queue job logging so you
|
||||
| can control how and where failed jobs are stored. Laravel ships with
|
||||
| support for storing failed jobs in a simple file or in a database.
|
||||
|
|
||||
| Supported drivers: "database-uuids", "dynamodb", "file", "null"
|
||||
|
|
||||
*/
|
||||
|
||||
'failed' => [
|
||||
'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'),
|
||||
'database' => env('DB_CONNECTION', 'sqlite'),
|
||||
'table' => 'failed_jobs',
|
||||
],
|
||||
|
||||
];
|
38
config/services.php
Normal file
38
config/services.php
Normal file
@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Third Party Services
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This file is for storing the credentials for third party services such
|
||||
| as Mailgun, Postmark, AWS and more. This file provides the de facto
|
||||
| location for this type of information, allowing packages to have
|
||||
| a conventional file to locate the various service credentials.
|
||||
|
|
||||
*/
|
||||
|
||||
'postmark' => [
|
||||
'token' => env('POSTMARK_TOKEN'),
|
||||
],
|
||||
|
||||
'ses' => [
|
||||
'key' => env('AWS_ACCESS_KEY_ID'),
|
||||
'secret' => env('AWS_SECRET_ACCESS_KEY'),
|
||||
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
|
||||
],
|
||||
|
||||
'resend' => [
|
||||
'key' => env('RESEND_KEY'),
|
||||
],
|
||||
|
||||
'slack' => [
|
||||
'notifications' => [
|
||||
'bot_user_oauth_token' => env('SLACK_BOT_USER_OAUTH_TOKEN'),
|
||||
'channel' => env('SLACK_BOT_USER_DEFAULT_CHANNEL'),
|
||||
],
|
||||
],
|
||||
|
||||
];
|
217
config/session.php
Normal file
217
config/session.php
Normal file
@ -0,0 +1,217 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Session Driver
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option determines the default session driver that is utilized for
|
||||
| incoming requests. Laravel supports a variety of storage options to
|
||||
| persist session data. Database storage is a great default choice.
|
||||
|
|
||||
| Supported: "file", "cookie", "database", "apc",
|
||||
| "memcached", "redis", "dynamodb", "array"
|
||||
|
|
||||
*/
|
||||
|
||||
'driver' => env('SESSION_DRIVER', 'database'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Lifetime
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify the number of minutes that you wish the session
|
||||
| to be allowed to remain idle before it expires. If you want them
|
||||
| to expire immediately when the browser is closed then you may
|
||||
| indicate that via the expire_on_close configuration option.
|
||||
|
|
||||
*/
|
||||
|
||||
'lifetime' => (int) env('SESSION_LIFETIME', 120),
|
||||
|
||||
'expire_on_close' => env('SESSION_EXPIRE_ON_CLOSE', false),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Encryption
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option allows you to easily specify that all of your session data
|
||||
| should be encrypted before it's stored. All encryption is performed
|
||||
| automatically by Laravel and you may use the session like normal.
|
||||
|
|
||||
*/
|
||||
|
||||
'encrypt' => env('SESSION_ENCRYPT', false),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session File Location
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| When utilizing the "file" session driver, the session files are placed
|
||||
| on disk. The default storage location is defined here; however, you
|
||||
| are free to provide another location where they should be stored.
|
||||
|
|
||||
*/
|
||||
|
||||
'files' => storage_path('framework/sessions'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Database Connection
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| When using the "database" or "redis" session drivers, you may specify a
|
||||
| connection that should be used to manage these sessions. This should
|
||||
| correspond to a connection in your database configuration options.
|
||||
|
|
||||
*/
|
||||
|
||||
'connection' => env('SESSION_CONNECTION'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Database Table
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| When using the "database" session driver, you may specify the table to
|
||||
| be used to store sessions. Of course, a sensible default is defined
|
||||
| for you; however, you're welcome to change this to another table.
|
||||
|
|
||||
*/
|
||||
|
||||
'table' => env('SESSION_TABLE', 'sessions'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Cache Store
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| When using one of the framework's cache driven session backends, you may
|
||||
| define the cache store which should be used to store the session data
|
||||
| between requests. This must match one of your defined cache stores.
|
||||
|
|
||||
| Affects: "apc", "dynamodb", "memcached", "redis"
|
||||
|
|
||||
*/
|
||||
|
||||
'store' => env('SESSION_STORE'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Sweeping Lottery
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Some session drivers must manually sweep their storage location to get
|
||||
| rid of old sessions from storage. Here are the chances that it will
|
||||
| happen on a given request. By default, the odds are 2 out of 100.
|
||||
|
|
||||
*/
|
||||
|
||||
'lottery' => [2, 100],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Cookie Name
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may change the name of the session cookie that is created by
|
||||
| the framework. Typically, you should not need to change this value
|
||||
| since doing so does not grant a meaningful security improvement.
|
||||
|
|
||||
*/
|
||||
|
||||
'cookie' => env(
|
||||
'SESSION_COOKIE',
|
||||
Str::slug(env('APP_NAME', 'laravel'), '_').'_session'
|
||||
),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Cookie Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The session cookie path determines the path for which the cookie will
|
||||
| be regarded as available. Typically, this will be the root path of
|
||||
| your application, but you're free to change this when necessary.
|
||||
|
|
||||
*/
|
||||
|
||||
'path' => env('SESSION_PATH', '/'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Cookie Domain
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This value determines the domain and subdomains the session cookie is
|
||||
| available to. By default, the cookie will be available to the root
|
||||
| domain and all subdomains. Typically, this shouldn't be changed.
|
||||
|
|
||||
*/
|
||||
|
||||
'domain' => env('SESSION_DOMAIN'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| HTTPS Only Cookies
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By setting this option to true, session cookies will only be sent back
|
||||
| to the server if the browser has a HTTPS connection. This will keep
|
||||
| the cookie from being sent to you when it can't be done securely.
|
||||
|
|
||||
*/
|
||||
|
||||
'secure' => env('SESSION_SECURE_COOKIE'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| HTTP Access Only
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Setting this value to true will prevent JavaScript from accessing the
|
||||
| value of the cookie and the cookie will only be accessible through
|
||||
| the HTTP protocol. It's unlikely you should disable this option.
|
||||
|
|
||||
*/
|
||||
|
||||
'http_only' => env('SESSION_HTTP_ONLY', true),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Same-Site Cookies
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option determines how your cookies behave when cross-site requests
|
||||
| take place, and can be used to mitigate CSRF attacks. By default, we
|
||||
| will set this value to "lax" to permit secure cross-site requests.
|
||||
|
|
||||
| See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#samesitesamesite-value
|
||||
|
|
||||
| Supported: "lax", "strict", "none", null
|
||||
|
|
||||
*/
|
||||
|
||||
'same_site' => env('SESSION_SAME_SITE', 'lax'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Partitioned Cookies
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Setting this value to true will tie the cookie to the top-level site for
|
||||
| a cross-site context. Partitioned cookies are accepted by the browser
|
||||
| when flagged "secure" and the Same-Site attribute is set to "none".
|
||||
|
|
||||
*/
|
||||
|
||||
'partitioned' => env('SESSION_PARTITIONED_COOKIE', false),
|
||||
|
||||
];
|
841
config/vuexy_menu.php
Normal file
841
config/vuexy_menu.php
Normal file
@ -0,0 +1,841 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'Inicio' => [
|
||||
'breadcrumbs' => false,
|
||||
'icon' => 'menu-icon tf-icons ti ti-home',
|
||||
'submenu' => [
|
||||
'Inicio' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-home',
|
||||
'route' => 'admin.core.home.index',
|
||||
],
|
||||
'Sitio web' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-world-www',
|
||||
'url' => env('APP_URL'),
|
||||
],
|
||||
'Ajustes' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-settings-cog',
|
||||
'submenu' => [
|
||||
'Aplicación' => [
|
||||
'submenu' => [
|
||||
'Ajustes generales' => [
|
||||
'route' => 'admin.core.general-settings.index',
|
||||
'can' => 'admin.core.general-settings.allow',
|
||||
],
|
||||
'Ajustes de caché' => [
|
||||
'route' => 'admin.core.cache-manager.index',
|
||||
'can' => 'admin.core.cache-manager.view',
|
||||
],
|
||||
'Servidor de correo SMTP' => [
|
||||
'route' => 'admin.core.smtp-settings.index',
|
||||
'can' => 'admin.core.smtp-settings.allow',
|
||||
],
|
||||
],
|
||||
],
|
||||
'Empresa' => [
|
||||
'submenu' => [
|
||||
'Información general' => [
|
||||
'route' => 'admin.store-manager.company.index',
|
||||
'can' => 'admin.store-manager.company.view',
|
||||
],
|
||||
'Sucursales' => [
|
||||
'route' => 'admin.store-manager.stores.index',
|
||||
'can' => 'admin.store-manager.stores.view',
|
||||
],
|
||||
'Centros de trabajo' => [
|
||||
'route' => 'admin.store-manager.work-centers.index',
|
||||
'can' => 'admin.store-manager.stores.view',
|
||||
],
|
||||
'Almacenes' => [
|
||||
'route' => 'admin.inventory.warehouse.index',
|
||||
'can' => 'admin.inventory.warehouse.view',
|
||||
],
|
||||
]
|
||||
],
|
||||
'BANXICO' => [
|
||||
'route' => 'admin.finance.banxico.index',
|
||||
'can' => 'admin.finance.banxico.allow',
|
||||
],
|
||||
'Conectividad bancaria' => [
|
||||
'route' => 'admin.finance.banking.index',
|
||||
'can' => 'admin.finance.banking.allow',
|
||||
],
|
||||
'Punto de venta' => [
|
||||
'submenu' => [
|
||||
'Ticket' => [
|
||||
'route' => 'admin.sales.ticket-config.index',
|
||||
'can' => 'admin.sales.ticket-config.allow',
|
||||
],
|
||||
]
|
||||
],
|
||||
'Facturación' => [
|
||||
'submenu' => [
|
||||
'Certificados de Sello Digital' => [
|
||||
'route' => 'admin.billing.csds-settings.index',
|
||||
'can' => 'admin.billing.csds-settings.allow',
|
||||
],
|
||||
'Paquete de timbrado' => [
|
||||
'route' => 'admin.billing.stamping-package.index',
|
||||
'can' => 'admin.billing.stamping-package.allow',
|
||||
],
|
||||
'Servidor de correo SMTP' => [
|
||||
'route' => 'admin.billing.smtp-settings.index',
|
||||
'can' => 'admin.billing.smtp-settings.allow',
|
||||
],
|
||||
'Descarga masiva de CFDI' => [
|
||||
'route' => 'admin.billing.mass-cfdi-download.index',
|
||||
'can' => 'admin.billing.mass-cfdi-download.allow',
|
||||
],
|
||||
]
|
||||
],
|
||||
]
|
||||
],
|
||||
'Sistema' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-user-cog',
|
||||
'submenu' => [
|
||||
'Usuarios' => [
|
||||
'route' => 'admin.core.users.index',
|
||||
'can' => 'admin.core.users.view',
|
||||
],
|
||||
'Roles' => [
|
||||
'route' => 'admin.core.roles.index',
|
||||
'can' => 'admin.core.roles.view',
|
||||
],
|
||||
'Permisos' => [
|
||||
'route' => 'admin.core.permissions.index',
|
||||
'can' => 'admin.core.permissions.view',
|
||||
]
|
||||
]
|
||||
],
|
||||
'Catálogos' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-library',
|
||||
'submenu' => [
|
||||
'Importar catálogos SAT' => [
|
||||
'route' => 'admin.core.import-sat-catalogs.index',
|
||||
'can' => 'admin.core.import-sat-catalogs.allow',
|
||||
],
|
||||
]
|
||||
],
|
||||
'Configuración de cuenta' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-user-cog',
|
||||
'route' => 'admin.core.user-profile.index',
|
||||
],
|
||||
'Acerca de' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-cat',
|
||||
'route' => 'admin.core.about.index',
|
||||
],
|
||||
],
|
||||
],
|
||||
'Herramientas avanzadas' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-device-ipad-cog',
|
||||
'submenu' => [
|
||||
'Asistente AI' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-brain',
|
||||
'submenu' => [
|
||||
'Panel de IA' => [
|
||||
'route' => 'admin.ai.dashboard.index',
|
||||
'can' => 'admin.ai.dashboard.view',
|
||||
],
|
||||
'Generación de contenidos' => [
|
||||
'route' => 'admin.ai.content.index',
|
||||
'can' => 'admin.ai.content.create',
|
||||
],
|
||||
'Análisis de datos' => [
|
||||
'route' => 'admin.ai.analytics.index',
|
||||
'can' => 'admin.ai.analytics.view',
|
||||
],
|
||||
],
|
||||
],
|
||||
'Chatbot' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-message-chatbot',
|
||||
'submenu' => [
|
||||
'Configuración' => [
|
||||
'route' => 'admin.chatbot.config.index',
|
||||
'can' => 'admin.chatbot.config.view',
|
||||
],
|
||||
'Flujos de conversación' => [
|
||||
'route' => 'admin.chatbot.flows.index',
|
||||
'can' => 'admin.chatbot.flows.manage',
|
||||
],
|
||||
'Historial de interacciones' => [
|
||||
'route' => 'admin.chatbot.history.index',
|
||||
'can' => 'admin.chatbot.history.view',
|
||||
],
|
||||
],
|
||||
],
|
||||
'IoT box' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-cpu',
|
||||
'submenu' => [
|
||||
'Dispositivos conectados' => [
|
||||
'route' => 'admin.iot.devices.index',
|
||||
'can' => 'admin.iot.devices.view',
|
||||
],
|
||||
'Sensores y configuración' => [
|
||||
'route' => 'admin.iot.sensors.index',
|
||||
'can' => 'admin.iot.sensors.manage',
|
||||
],
|
||||
'Monitoreo en tiempo Real' => [
|
||||
'route' => 'admin.iot.monitoring.index',
|
||||
'can' => 'admin.iot.monitoring.view',
|
||||
],
|
||||
],
|
||||
],
|
||||
'Reconocimiento facial' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-face-id',
|
||||
'submenu' => [
|
||||
'Gestión de perfiles' => [
|
||||
'route' => 'admin.facial-recognition.profiles.index',
|
||||
'can' => 'admin.facial-recognition.profiles.manage',
|
||||
],
|
||||
'Verificación en vivo' => [
|
||||
'route' => 'admin.facial-recognition.live.index',
|
||||
'can' => 'admin.facial-recognition.live.verify',
|
||||
],
|
||||
'Historial de accesos' => [
|
||||
'route' => 'admin.facial-recognition.history.index',
|
||||
'can' => 'admin.facial-recognition.history.view',
|
||||
],
|
||||
],
|
||||
],
|
||||
'Servidor de impresión' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-printer',
|
||||
'submenu' => [
|
||||
'Cola de impresión' => [
|
||||
'route' => 'admin.print.queue.index',
|
||||
'can' => 'admin.print.queue.view',
|
||||
],
|
||||
'Historial de impresiones' => [
|
||||
'route' => 'admin.print.history.index',
|
||||
'can' => 'admin.print.history.view',
|
||||
],
|
||||
'Configuración de impresoras' => [
|
||||
'route' => 'admin.print.settings.index',
|
||||
'can' => 'admin.print.settings.manage',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'Sitio web' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-tools',
|
||||
'submenu' => [
|
||||
'Ajustes generales' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-tools',
|
||||
'route' => 'admin.website.general-settings.index',
|
||||
'can' => 'admin.website.general-settings.allow',
|
||||
],
|
||||
'Avisos legales' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-writing-sign',
|
||||
'route' => 'admin.website.legal.index',
|
||||
'can' => 'admin.website.legal.view',
|
||||
],
|
||||
'Preguntas frecuentes' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-bubble-text',
|
||||
'route' => 'admin.website.faq.index',
|
||||
'can' => 'admin.website.faq.view',
|
||||
],
|
||||
]
|
||||
],
|
||||
'Blog' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-news',
|
||||
'submenu' => [
|
||||
'Categorias' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-category',
|
||||
'route' => 'admin.blog.categories.index',
|
||||
'can' => 'admin.blog.categories.view',
|
||||
],
|
||||
'Etiquetas' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-tags',
|
||||
'route' => 'admin.blog.tags.index',
|
||||
'can' => 'admin.blog.tags.view',
|
||||
],
|
||||
'Articulos' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-news',
|
||||
'route' => 'admin.blog.articles.index',
|
||||
'can' => 'admin.blog.articles.view',
|
||||
],
|
||||
'Comentarios' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-message',
|
||||
'route' => 'admin.blog.comments.index',
|
||||
'can' => 'admin.blog.comments.view',
|
||||
],
|
||||
]
|
||||
],
|
||||
'Contactos' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-users',
|
||||
'submenu' => [
|
||||
'Contactos' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-users',
|
||||
'route' => 'admin.contacts.contacts.index',
|
||||
'can' => 'admin.contacts.contacts.view',
|
||||
],
|
||||
'Campañas de marketing' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-ad-2',
|
||||
'route' => 'admin.crm.marketing-campaigns.index',
|
||||
'can' => 'admin.crm.marketing-campaigns.view',
|
||||
],
|
||||
'Oportunidades ' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-target-arrow',
|
||||
'route' => 'admin.crm.leads.index',
|
||||
'can' => 'admin.crm.leads.view',
|
||||
],
|
||||
'Newsletter' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-notebook',
|
||||
'route' => 'admin.crm.newsletter.index',
|
||||
'can' => 'admin.crm.newsletter.view',
|
||||
],
|
||||
]
|
||||
],
|
||||
'RRHH' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-users-group',
|
||||
'submenu' => [
|
||||
'Gestión de empleados' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-id-badge-2',
|
||||
'submenu' => [
|
||||
'Empleados' => [
|
||||
'route' => 'admin.contacts.employees.index',
|
||||
'can' => 'admin.contacts.employees.view',
|
||||
],
|
||||
'Puestos de trabajo' => [
|
||||
'route' => 'admin.rrhh.jobs.index',
|
||||
'can' => 'admin.rrhh.jobs.view',
|
||||
],
|
||||
'Estructura organizacional' => [
|
||||
'route' => 'admin.rrhh.organization.index',
|
||||
'can' => 'admin.rrhh.organization.view',
|
||||
],
|
||||
],
|
||||
],
|
||||
'Reclutamiento' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-user-search',
|
||||
'submenu' => [
|
||||
'Vacantes disponibles' => [
|
||||
'route' => 'admin.recruitment.jobs.index',
|
||||
'can' => 'admin.recruitment.jobs.view',
|
||||
],
|
||||
'Seguimiento de candidatos' => [
|
||||
'route' => 'admin.recruitment.candidates.index',
|
||||
'can' => 'admin.recruitment.candidates.view',
|
||||
],
|
||||
'Entrevistas y evaluaciones' => [
|
||||
'route' => 'admin.recruitment.interviews.index',
|
||||
'can' => 'admin.recruitment.interviews.view',
|
||||
],
|
||||
],
|
||||
],
|
||||
'Nómina' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-cash',
|
||||
'submenu' => [
|
||||
'Contratos' => [
|
||||
'route' => 'admin.payroll.contracts.index',
|
||||
'can' => 'admin.payroll.contracts.view',
|
||||
],
|
||||
'Procesar nómina' => [
|
||||
'route' => 'admin.payroll.process.index',
|
||||
'can' => 'admin.payroll.process.view',
|
||||
],
|
||||
'Recibos de nómina' => [
|
||||
'route' => 'admin.payroll.receipts.index',
|
||||
'can' => 'admin.payroll.receipts.view',
|
||||
],
|
||||
'Reportes financieros' => [
|
||||
'route' => 'admin.payroll.reports.index',
|
||||
'can' => 'admin.payroll.reports.view',
|
||||
],
|
||||
],
|
||||
],
|
||||
'Asistencia' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-calendar-exclamation',
|
||||
'submenu' => [
|
||||
'Registro de horarios' => [
|
||||
'route' => 'admin.attendance.records.index',
|
||||
'can' => 'admin.attendance.records.view',
|
||||
],
|
||||
'Asistencia con biométricos' => [
|
||||
'route' => 'admin.attendance.biometric.index',
|
||||
'can' => 'admin.attendance.biometric.view',
|
||||
],
|
||||
'Justificación de ausencias' => [
|
||||
'route' => 'admin.attendance.absences.index',
|
||||
'can' => 'admin.attendance.absences.view',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'Productos y servicios' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-package',
|
||||
'submenu' => [
|
||||
'Categorias' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-category',
|
||||
'route' => 'admin.inventory.product-categories.index',
|
||||
'can' => 'admin.inventory.product-categories.view',
|
||||
],
|
||||
'Productos y servicios' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-packages',
|
||||
'route' => 'admin.inventory.products.index',
|
||||
'can' => 'admin.inventory.products.view',
|
||||
],
|
||||
'Agregar producto o servicio' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-package',
|
||||
'route' => 'admin.inventory.products.create',
|
||||
'can' => 'admin.inventory.products.create',
|
||||
],
|
||||
]
|
||||
],
|
||||
'Ventas' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-cash-register',
|
||||
'submenu' => [
|
||||
'Tablero' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-chart-infographic',
|
||||
'route' => 'admin.sales.dashboard.index',
|
||||
'can' => 'admin.sales.dashboard.allow',
|
||||
],
|
||||
'Clientes' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-users-group',
|
||||
'route' => 'admin.contacts.customers.index',
|
||||
'can' => 'admin.contacts.customers.view',
|
||||
],
|
||||
'Lista de precios' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-report-search',
|
||||
'route' => 'admin.sales.pricelist.index',
|
||||
'can' => 'admin.sales.sales.view',
|
||||
],
|
||||
'Cotizaciones' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-file-dollar',
|
||||
'route' => 'admin.sales.quotes.index',
|
||||
'can' => 'admin.sales.quotes.view',
|
||||
],
|
||||
'Ventas' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-cash-register',
|
||||
'submenu' => [
|
||||
'Crear venta' => [
|
||||
'route' => 'admin.sales.sales.create',
|
||||
'can' => 'admin.sales.sales.create',
|
||||
],
|
||||
'Ventas' => [
|
||||
'route' => 'admin.sales.sales.index',
|
||||
'can' => 'admin.sales.sales.view',
|
||||
],
|
||||
'Ventas por producto o servicio' => [
|
||||
'route' => 'admin.sales.sales-by-product.index',
|
||||
'can' => 'admin.sales.sales.view',
|
||||
],
|
||||
]
|
||||
],
|
||||
'Remisiones' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-receipt',
|
||||
'submenu' => [
|
||||
'Crear remisión' => [
|
||||
'route' => 'admin.sales.remissions.create',
|
||||
'can' => 'admin.sales.remissions.create',
|
||||
],
|
||||
'Remisiones' => [
|
||||
'route' => 'admin.sales.remissions.index',
|
||||
'can' => 'admin.sales.remissions.view',
|
||||
],
|
||||
'Remisiones por producto o servicio' => [
|
||||
'route' => 'admin.sales.remissions-by-product.index',
|
||||
'can' => 'admin.sales.remissions.view',
|
||||
],
|
||||
]
|
||||
],
|
||||
'Notas de crédito' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-receipt-refund',
|
||||
'submenu' => [
|
||||
'Crear nota de crédito' => [
|
||||
'route' => 'admin.sales.credit-notes.create',
|
||||
'can' => 'admin.sales.credit-notes.create',
|
||||
],
|
||||
'Notas de créditos' => [
|
||||
'route' => 'admin.sales.credit-notes.index',
|
||||
'can' => 'admin.sales.credit-notes.view',
|
||||
],
|
||||
'Notas de crédito por producto o servicio' => [
|
||||
'route' => 'admin.sales.credit-notes-by-product.index',
|
||||
'can' => 'admin.sales.credit-notes.view',
|
||||
],
|
||||
]
|
||||
],
|
||||
],
|
||||
],
|
||||
'Finanzas' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-coins',
|
||||
'submenu' => [
|
||||
'Tablero financiero' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-chart-infographic',
|
||||
'route' => 'admin.accounting.dashboard.index',
|
||||
'can' => 'admin.accounting.dashboard.view',
|
||||
],
|
||||
'Contabilidad' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-chart-pie',
|
||||
'submenu' => [
|
||||
'Cuentas contables' => [
|
||||
'route' => 'admin.accounting.charts.index',
|
||||
'can' => 'admin.accounting.charts.view',
|
||||
],
|
||||
'Cuentas por pagar' => [
|
||||
'route' => 'admin.finance.accounts-payable.index',
|
||||
'can' => 'admin.finance.accounts-payable.view',
|
||||
],
|
||||
'Cuentas por cobrar' => [
|
||||
'route' => 'admin.finance.accounts-receivable.index',
|
||||
'can' => 'admin.finance.accounts-receivable.view',
|
||||
],
|
||||
'Balance general' => [
|
||||
'route' => 'admin.accounting.balance.index',
|
||||
'can' => 'admin.accounting.balance.view',
|
||||
],
|
||||
'Estado de resultados' => [
|
||||
'route' => 'admin.accounting.income-statement.index',
|
||||
'can' => 'admin.accounting.income-statement.view',
|
||||
],
|
||||
'Libro mayor' => [
|
||||
'route' => 'admin.accounting.ledger.index',
|
||||
'can' => 'admin.accounting.ledger.view',
|
||||
],
|
||||
'Registros contables' => [
|
||||
'route' => 'admin.accounting.entries.index',
|
||||
'can' => 'admin.accounting.entries.view',
|
||||
],
|
||||
],
|
||||
],
|
||||
'Tablero de gastos' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-chart-infographic',
|
||||
'route' => 'admin.expenses.dashboard.index',
|
||||
'can' => 'admin.expenses.dashboard.view',
|
||||
],
|
||||
'Gestión de gastos' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-receipt-2',
|
||||
'submenu' => [
|
||||
'Nuevo gasto' => [
|
||||
'route' => 'admin.expenses.expenses.create',
|
||||
'can' => 'admin.expenses.expenses.create',
|
||||
],
|
||||
'Gastos' => [
|
||||
'route' => 'admin.expenses.expenses.index',
|
||||
'can' => 'admin.expenses.expenses.view',
|
||||
],
|
||||
'Categorías de gastos' => [
|
||||
'route' => 'admin.expenses.categories.index',
|
||||
'can' => 'admin.expenses.categories.view',
|
||||
],
|
||||
'Historial de gastos' => [
|
||||
'route' => 'admin.expenses.history.index',
|
||||
'can' => 'admin.expenses.history.view',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
|
||||
|
||||
|
||||
'Facturación' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-rubber-stamp',
|
||||
'submenu' => [
|
||||
'Tablero' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-chart-infographic',
|
||||
'route' => 'admin.billing.dashboard.index',
|
||||
'can' => 'admin.billing.dashboard.allow',
|
||||
],
|
||||
'Ingresos' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-file-certificate',
|
||||
'submenu' => [
|
||||
'Facturar ventas' => [
|
||||
'route' => 'admin.billing.ingresos-stamp.index',
|
||||
'can' => 'admin.billing.ingresos.create',
|
||||
],
|
||||
'CFDI Ingresos' => [
|
||||
'route' => 'admin.billing.ingresos.index',
|
||||
'can' => 'admin.billing.ingresos.view',
|
||||
],
|
||||
'CFDI Ingresos por producto o servicio' => [
|
||||
'route' => 'admin.billing.ingresos-by-product.index',
|
||||
'can' => 'admin.billing.ingresos.view',
|
||||
],
|
||||
]
|
||||
],
|
||||
'Egresos' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-file-certificate',
|
||||
'submenu' => [
|
||||
'Facturar notas de crédito' => [
|
||||
'route' => 'admin.billing.egresos-stamp.index',
|
||||
'can' => 'admin.billing.egresos.create',
|
||||
],
|
||||
'CFDI Engresos' => [
|
||||
'route' => 'admin.billing.egresos.index',
|
||||
'can' => 'admin.billing.egresos.view',
|
||||
],
|
||||
'CFDI Engresos por producto o servicio' => [
|
||||
'route' => 'admin.billing.egresos-by-product.index',
|
||||
'can' => 'admin.billing.egresos.view',
|
||||
],
|
||||
]
|
||||
],
|
||||
'Pagos' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-file-certificate',
|
||||
'submenu' => [
|
||||
'Facturar pagos' => [
|
||||
'route' => 'admin.billing.pagos-stamp.index',
|
||||
'can' => 'admin.billing.pagos.created',
|
||||
],
|
||||
'CFDI Pagos' => [
|
||||
'route' => 'admin.billing.pagos.index',
|
||||
'can' => 'admin.billing.pagos.view',
|
||||
],
|
||||
]
|
||||
],
|
||||
'CFDI nómina' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-file-certificate',
|
||||
'route' => 'admin.billing.nomina.index',
|
||||
'can' => 'admin.billing.nomina.view',
|
||||
],
|
||||
'Verificador de CFDI 4.0' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-rosette-discount-check',
|
||||
'route' => 'admin.billing.verify-cfdi.index',
|
||||
'can' => 'admin.billing.verify-cfdi.allow',
|
||||
],
|
||||
]
|
||||
],
|
||||
|
||||
'Inventario y logística' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-truck-delivery',
|
||||
'submenu' => [
|
||||
'Cadena de suministro' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-chart-dots-3',
|
||||
'submenu' => [
|
||||
'Proveedores' => [
|
||||
'route' => 'admin.contacts.suppliers.index',
|
||||
'can' => 'admin.contacts.suppliers.view',
|
||||
],
|
||||
'Órdenes de compra' => [
|
||||
'route' => 'admin.inventory.orders.index',
|
||||
'can' => 'admin.inventory.orders.view',
|
||||
],
|
||||
'Recepción de productos' => [
|
||||
'route' => 'admin.inventory.reception.index',
|
||||
'can' => 'admin.inventory.reception.view',
|
||||
],
|
||||
'Gestión de insumos' => [
|
||||
'route' => 'admin.inventory.materials.index',
|
||||
'can' => 'admin.inventory.materials.view',
|
||||
],
|
||||
],
|
||||
],
|
||||
'Gestión de almacenes' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-building-warehouse',
|
||||
'submenu' => [
|
||||
'Almacenes' => [
|
||||
'route' => 'admin.inventory.warehouse.index',
|
||||
'can' => 'admin.inventory.warehouse.view',
|
||||
],
|
||||
'Stock de inventario' => [
|
||||
'route' => 'admin.inventory.stock.index',
|
||||
'can' => 'admin.inventory.stock.view',
|
||||
],
|
||||
'Movimientos de almacenes' => [
|
||||
'route' => 'admin.inventory.movements.index',
|
||||
'can' => 'admin.inventory.movements.view',
|
||||
],
|
||||
'Transferencias entre Almacenes' => [
|
||||
'route' => 'admin.inventory.transfers.index',
|
||||
'can' => 'admin.inventory.transfers.view',
|
||||
],
|
||||
],
|
||||
],
|
||||
'Envíos y logística' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-truck',
|
||||
'submenu' => [
|
||||
'Órdenes de envío' => [
|
||||
'route' => 'admin.inventory.shipping-orders.index',
|
||||
'can' => 'admin.inventory.shipping-orders.view',
|
||||
],
|
||||
'Seguimiento de envíos' => [
|
||||
'route' => 'admin.inventory.shipping-tracking.index',
|
||||
'can' => 'admin.inventory.shipping-tracking.view',
|
||||
],
|
||||
'Transportistas' => [
|
||||
'route' => 'admin.inventory.shipping-carriers.index',
|
||||
'can' => 'admin.inventory.shipping-carriers.view',
|
||||
],
|
||||
'Tarifas y métodos de envío' => [
|
||||
'route' => 'admin.inventory.shipping-rates.index',
|
||||
'can' => 'admin.inventory.shipping-rates.view',
|
||||
],
|
||||
],
|
||||
],
|
||||
'Gestión de activos' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-tools-kitchen',
|
||||
'submenu' => [
|
||||
'Activos registrados' => [
|
||||
'route' => 'admin.inventory.assets.index',
|
||||
'can' => 'admin.inventory.assets.view',
|
||||
],
|
||||
'Mantenimiento preventivo' => [
|
||||
'route' => 'admin.inventory.asset-maintenance.index',
|
||||
'can' => 'admin.inventory.asset-maintenance.view',
|
||||
],
|
||||
'Control de vida útil' => [
|
||||
'route' => 'admin.inventory.asset-lifecycle.index',
|
||||
'can' => 'admin.inventory.asset-lifecycle.view',
|
||||
],
|
||||
'Asignación de activos' => [
|
||||
'route' => 'admin.inventory.asset-assignments.index',
|
||||
'can' => 'admin.inventory.asset-assignments.view',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
'Gestión empresarial' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-briefcase',
|
||||
'submenu' => [
|
||||
'Gestión de proyectos' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-layout-kanban',
|
||||
'submenu' => [
|
||||
'Tablero de proyectos' => [
|
||||
'route' => 'admin.projects.dashboard.index',
|
||||
'can' => 'admin.projects.dashboard.view',
|
||||
],
|
||||
'Proyectos activos' => [
|
||||
'route' => 'admin.projects.index',
|
||||
'can' => 'admin.projects.view',
|
||||
],
|
||||
'Crear proyecto' => [
|
||||
'route' => 'admin.projects.create',
|
||||
'can' => 'admin.projects.create',
|
||||
],
|
||||
'Gestión de tareas' => [
|
||||
'route' => 'admin.projects.tasks.index',
|
||||
'can' => 'admin.projects.tasks.view',
|
||||
],
|
||||
'Historial de proyectos' => [
|
||||
'route' => 'admin.projects.history.index',
|
||||
'can' => 'admin.projects.history.view',
|
||||
],
|
||||
],
|
||||
],
|
||||
'Producción y manufactura' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-building-factory',
|
||||
'submenu' => [
|
||||
'Órdenes de producción' => [
|
||||
'route' => 'admin.production.orders.index',
|
||||
'can' => 'admin.production.orders.view',
|
||||
],
|
||||
'Nueva Orden de producción' => [
|
||||
'route' => 'admin.production.orders.create',
|
||||
'can' => 'admin.production.orders.create',
|
||||
],
|
||||
'Control de procesos' => [
|
||||
'route' => 'admin.production.process.index',
|
||||
'can' => 'admin.production.process.view',
|
||||
],
|
||||
'Historial de producción' => [
|
||||
'route' => 'admin.production.history.index',
|
||||
'can' => 'admin.production.history.view',
|
||||
],
|
||||
],
|
||||
],
|
||||
'Control de calidad' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-award',
|
||||
'submenu' => [
|
||||
'Inspecciones de calidad' => [
|
||||
'route' => 'admin.quality.inspections.index',
|
||||
'can' => 'admin.quality.inspections.view',
|
||||
],
|
||||
'Crear inspección' => [
|
||||
'route' => 'admin.quality.inspections.create',
|
||||
'can' => 'admin.quality.inspections.create',
|
||||
],
|
||||
'Reportes de calidad' => [
|
||||
'route' => 'admin.quality.reports.index',
|
||||
'can' => 'admin.quality.reports.view',
|
||||
],
|
||||
'Historial de inspecciones' => [
|
||||
'route' => 'admin.quality.history.index',
|
||||
'can' => 'admin.quality.history.view',
|
||||
],
|
||||
],
|
||||
],
|
||||
'Flujos de trabajo y automatización' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-chart-dots-3',
|
||||
'submenu' => [
|
||||
'Gestión de flujos de trabajo' => [
|
||||
'route' => 'admin.workflows.index',
|
||||
'can' => 'admin.workflows.view',
|
||||
],
|
||||
'Crear flujo de trabajo' => [
|
||||
'route' => 'admin.workflows.create',
|
||||
'can' => 'admin.workflows.create',
|
||||
],
|
||||
'Automatizaciones' => [
|
||||
'route' => 'admin.workflows.automations.index',
|
||||
'can' => 'admin.workflows.automations.view',
|
||||
],
|
||||
'Historial de flujos' => [
|
||||
'route' => 'admin.workflows.history.index',
|
||||
'can' => 'admin.workflows.history.view',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'Contratos' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-writing-sign',
|
||||
'submenu' => [
|
||||
'Mis contratos' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-file-description',
|
||||
'route' => 'admin.contracts.index',
|
||||
'can' => 'admin.contracts.view',
|
||||
],
|
||||
'Firmar contrato' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-signature',
|
||||
'route' => 'admin.contracts.sign',
|
||||
'can' => 'admin.contracts.sign',
|
||||
],
|
||||
'Contratos automatizados' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-robot',
|
||||
'route' => 'admin.contracts.automated',
|
||||
'can' => 'admin.contracts.automated.view',
|
||||
],
|
||||
'Historial de contratos' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-archive',
|
||||
'route' => 'admin.contracts.history',
|
||||
'can' => 'admin.contracts.history.view',
|
||||
],
|
||||
]
|
||||
],
|
||||
'Atención al cliente' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-messages',
|
||||
'submenu' => [
|
||||
'Tablero' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-chart-infographic',
|
||||
'route' => 'admin.sales.dashboard.index',
|
||||
'can' => 'admin.ticketing.dashboard.view',
|
||||
],
|
||||
'Mis tickets' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-ticket',
|
||||
'route' => 'admin.ticketing.tickets.index',
|
||||
'can' => 'admin.ticketing.tickets.view',
|
||||
],
|
||||
'Crear ticket' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-square-plus',
|
||||
'route' => 'admin.ticketing.tickets.create',
|
||||
'can' => 'admin.ticketing.tickets.create',
|
||||
],
|
||||
'Categorías de tickets' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-category',
|
||||
'route' => 'admin.ticketing.categories.index',
|
||||
'can' => 'admin.ticketing.categories.view',
|
||||
],
|
||||
'Estadísticas de atención' => [
|
||||
'icon' => 'menu-icon tf-icons ti ti-chart-bar',
|
||||
'route' => 'admin.ticketing.analytics.index',
|
||||
'can' => 'admin.ticketing.analytics.view',
|
||||
],
|
||||
]
|
||||
],
|
||||
];
|
Reference in New Issue
Block a user