CS Fixes
This commit is contained in:
@@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
namespace CachetHQ\Cachet\Http\Controllers\Admin;
|
namespace CachetHQ\Cachet\Http\Controllers\Admin;
|
||||||
|
|
||||||
|
use CachetHQ\Cachet\Controllers\AbstractController;
|
||||||
use CachetHQ\Cachet\Models\Setting;
|
use CachetHQ\Cachet\Models\Setting;
|
||||||
use CachetHQ\Cachet\Models\User;
|
use CachetHQ\Cachet\Models\User;
|
||||||
use Exception;
|
use Exception;
|
||||||
use GrahamCampbell\Binput\Facades\Binput;
|
use GrahamCampbell\Binput\Facades\Binput;
|
||||||
use CachetHQ\Cachet\Controllers\AbstractController;
|
|
||||||
use Illuminate\Support\Facades\Lang;
|
use Illuminate\Support\Facades\Lang;
|
||||||
use Illuminate\Support\Facades\Redirect;
|
use Illuminate\Support\Facades\Redirect;
|
||||||
use Illuminate\Support\Facades\View;
|
use Illuminate\Support\Facades\View;
|
||||||
|
|||||||
@@ -65,11 +65,11 @@ class Component extends Model
|
|||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The attributes that should be mutated to dates.
|
* The attributes that should be mutated to dates.
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $dates = ['deleted_at'];
|
protected $dates = ['deleted_at'];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Components can belong to a group.
|
* Components can belong to a group.
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
$app = new Illuminate\Foundation\Application(
|
$app = new Illuminate\Foundation\Application(
|
||||||
realpath(__DIR__.'/../')
|
realpath(__DIR__.'/../')
|
||||||
);
|
);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -27,18 +27,18 @@ $app = new Illuminate\Foundation\Application(
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
$app->singleton(
|
$app->singleton(
|
||||||
'Illuminate\Contracts\Http\Kernel',
|
'Illuminate\Contracts\Http\Kernel',
|
||||||
'CachetHQ\Cachet\Http\Kernel'
|
'CachetHQ\Cachet\Http\Kernel'
|
||||||
);
|
);
|
||||||
|
|
||||||
$app->singleton(
|
$app->singleton(
|
||||||
'Illuminate\Contracts\Console\Kernel',
|
'Illuminate\Contracts\Console\Kernel',
|
||||||
'CachetHQ\Cachet\Console\Kernel'
|
'CachetHQ\Cachet\Console\Kernel'
|
||||||
);
|
);
|
||||||
|
|
||||||
$app->singleton(
|
$app->singleton(
|
||||||
'Illuminate\Contracts\Debug\ExceptionHandler',
|
'Illuminate\Contracts\Debug\ExceptionHandler',
|
||||||
'CachetHQ\Cachet\Exceptions\Handler'
|
'CachetHQ\Cachet\Exceptions\Handler'
|
||||||
);
|
);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -29,7 +29,6 @@ require __DIR__.'/../vendor/autoload.php';
|
|||||||
|
|
||||||
$compiledPath = __DIR__.'/../vendor/compiled.php';
|
$compiledPath = __DIR__.'/../vendor/compiled.php';
|
||||||
|
|
||||||
if (file_exists($compiledPath))
|
if (file_exists($compiledPath)) {
|
||||||
{
|
require $compiledPath;
|
||||||
require $compiledPath;
|
|
||||||
}
|
}
|
||||||
|
|||||||
358
config/app.php
358
config/app.php
@@ -2,142 +2,142 @@
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Application Debug Mode
|
| Application Debug Mode
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| When your application is in debug mode, detailed error messages with
|
| When your application is in debug mode, detailed error messages with
|
||||||
| stack traces will be shown on every error that occurs within your
|
| stack traces will be shown on every error that occurs within your
|
||||||
| application. If disabled, a simple generic error page is shown.
|
| application. If disabled, a simple generic error page is shown.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'debug' => env('APP_DEBUG'),
|
'debug' => env('APP_DEBUG'),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Application URL
|
| Application URL
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| This URL is used by the console to properly generate URLs when using
|
| 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 Artisan command line tool. You should set this to the root of
|
||||||
| your application so that it is used when running Artisan tasks.
|
| your application so that it is used when running Artisan tasks.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'url' => 'http://localhost',
|
'url' => 'http://localhost',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Application Timezone
|
| Application Timezone
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Here you may specify the default timezone for your application, which
|
| Here you may specify the default timezone for your application, which
|
||||||
| will be used by the PHP date and date-time functions. We have gone
|
| will be used by the PHP date and date-time functions. We have gone
|
||||||
| ahead and set this to a sensible default for you out of the box.
|
| ahead and set this to a sensible default for you out of the box.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'timezone' => 'UTC',
|
'timezone' => 'UTC',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Application Locale Configuration
|
| Application Locale Configuration
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| The application locale determines the default locale that will be used
|
| The application locale determines the default locale that will be used
|
||||||
| by the translation service provider. You are free to set this value
|
| by the translation service provider. You are free to set this value
|
||||||
| to any of the locales which will be supported by the application.
|
| to any of the locales which will be supported by the application.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'locale' => 'en',
|
'locale' => 'en',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Application Fallback Locale
|
| Application Fallback Locale
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| The fallback locale determines the locale to use when the current one
|
| The fallback locale determines the locale to use when the current one
|
||||||
| is not available. You may change the value to correspond to any of
|
| is not available. You may change the value to correspond to any of
|
||||||
| the language folders that are provided through your application.
|
| the language folders that are provided through your application.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'fallback_locale' => 'en',
|
'fallback_locale' => 'en',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Encryption Key
|
| Encryption Key
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| This key is used by the Illuminate encrypter service and should be set
|
| This key is used by the Illuminate encrypter service and should be set
|
||||||
| to a random, 32 character string, otherwise these encrypted strings
|
| to a random, 32 character string, otherwise these encrypted strings
|
||||||
| will not be safe. Please do this before deploying an application!
|
| will not be safe. Please do this before deploying an application!
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'key' => env('APP_KEY', 'SomeRandomString'),
|
'key' => env('APP_KEY', 'SomeRandomString'),
|
||||||
|
|
||||||
'cipher' => MCRYPT_RIJNDAEL_128,
|
'cipher' => MCRYPT_RIJNDAEL_128,
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Logging Configuration
|
| Logging Configuration
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Here you may configure the log settings for your application. Out of
|
| Here you may configure the log settings for your application. Out of
|
||||||
| the box, Laravel uses the Monolog PHP logging library. This gives
|
| the box, Laravel uses the Monolog PHP logging library. This gives
|
||||||
| you a variety of powerful log handlers / formatters to utilize.
|
| you a variety of powerful log handlers / formatters to utilize.
|
||||||
|
|
|
|
||||||
| Available Settings: "single", "daily", "syslog", "errorlog"
|
| Available Settings: "single", "daily", "syslog", "errorlog"
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'log' => 'daily',
|
'log' => 'daily',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Autoloaded Service Providers
|
| Autoloaded Service Providers
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| The service providers listed here will be automatically loaded on the
|
| The service providers listed here will be automatically loaded on the
|
||||||
| request to your application. Feel free to add your own services to
|
| request to your application. Feel free to add your own services to
|
||||||
| this array to grant expanded functionality to your applications.
|
| this array to grant expanded functionality to your applications.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'providers' => [
|
'providers' => [
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Laravel Framework Service Providers...
|
* Laravel Framework Service Providers...
|
||||||
*/
|
*/
|
||||||
'Illuminate\Foundation\Providers\ArtisanServiceProvider',
|
'Illuminate\Foundation\Providers\ArtisanServiceProvider',
|
||||||
'Illuminate\Auth\AuthServiceProvider',
|
'Illuminate\Auth\AuthServiceProvider',
|
||||||
'Illuminate\Bus\BusServiceProvider',
|
'Illuminate\Bus\BusServiceProvider',
|
||||||
'Illuminate\Cache\CacheServiceProvider',
|
'Illuminate\Cache\CacheServiceProvider',
|
||||||
'Illuminate\Foundation\Providers\ConsoleSupportServiceProvider',
|
'Illuminate\Foundation\Providers\ConsoleSupportServiceProvider',
|
||||||
'Illuminate\Routing\ControllerServiceProvider',
|
'Illuminate\Routing\ControllerServiceProvider',
|
||||||
'Illuminate\Cookie\CookieServiceProvider',
|
'Illuminate\Cookie\CookieServiceProvider',
|
||||||
'Illuminate\Database\DatabaseServiceProvider',
|
'Illuminate\Database\DatabaseServiceProvider',
|
||||||
'Illuminate\Encryption\EncryptionServiceProvider',
|
'Illuminate\Encryption\EncryptionServiceProvider',
|
||||||
'Illuminate\Filesystem\FilesystemServiceProvider',
|
'Illuminate\Filesystem\FilesystemServiceProvider',
|
||||||
'Illuminate\Foundation\Providers\FoundationServiceProvider',
|
'Illuminate\Foundation\Providers\FoundationServiceProvider',
|
||||||
'Illuminate\Hashing\HashServiceProvider',
|
'Illuminate\Hashing\HashServiceProvider',
|
||||||
'Illuminate\Html\HtmlServiceProvider',
|
'Illuminate\Html\HtmlServiceProvider',
|
||||||
'Illuminate\Mail\MailServiceProvider',
|
'Illuminate\Mail\MailServiceProvider',
|
||||||
'Illuminate\Pagination\PaginationServiceProvider',
|
'Illuminate\Pagination\PaginationServiceProvider',
|
||||||
'Illuminate\Pipeline\PipelineServiceProvider',
|
'Illuminate\Pipeline\PipelineServiceProvider',
|
||||||
'Illuminate\Queue\QueueServiceProvider',
|
'Illuminate\Queue\QueueServiceProvider',
|
||||||
'Illuminate\Redis\RedisServiceProvider',
|
'Illuminate\Redis\RedisServiceProvider',
|
||||||
'Illuminate\Auth\Passwords\PasswordResetServiceProvider',
|
'Illuminate\Auth\Passwords\PasswordResetServiceProvider',
|
||||||
'Illuminate\Session\SessionServiceProvider',
|
'Illuminate\Session\SessionServiceProvider',
|
||||||
'Illuminate\Translation\TranslationServiceProvider',
|
'Illuminate\Translation\TranslationServiceProvider',
|
||||||
'Illuminate\Validation\ValidationServiceProvider',
|
'Illuminate\Validation\ValidationServiceProvider',
|
||||||
'Illuminate\View\ViewServiceProvider',
|
'Illuminate\View\ViewServiceProvider',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Packages Service Providers...
|
* Packages Service Providers...
|
||||||
*/
|
*/
|
||||||
'Fideloper\Proxy\TrustedProxyServiceProvider',
|
'Fideloper\Proxy\TrustedProxyServiceProvider',
|
||||||
@@ -150,73 +150,73 @@ return [
|
|||||||
'PragmaRX\Google2FA\Vendor\Laravel\ServiceProvider',
|
'PragmaRX\Google2FA\Vendor\Laravel\ServiceProvider',
|
||||||
'Roumen\Feed\FeedServiceProvider',
|
'Roumen\Feed\FeedServiceProvider',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Application Service Providers...
|
* Application Service Providers...
|
||||||
*/
|
*/
|
||||||
'CachetHQ\Cachet\Providers\AppServiceProvider',
|
'CachetHQ\Cachet\Providers\AppServiceProvider',
|
||||||
'CachetHQ\Cachet\Providers\BusServiceProvider',
|
'CachetHQ\Cachet\Providers\BusServiceProvider',
|
||||||
'CachetHQ\Cachet\Providers\ConfigServiceProvider',
|
'CachetHQ\Cachet\Providers\ConfigServiceProvider',
|
||||||
'CachetHQ\Cachet\Providers\ConsoleServiceProvider',
|
'CachetHQ\Cachet\Providers\ConsoleServiceProvider',
|
||||||
'CachetHQ\Cachet\Providers\EventServiceProvider',
|
'CachetHQ\Cachet\Providers\EventServiceProvider',
|
||||||
'CachetHQ\Cachet\Providers\RepositoryServiceProvider',
|
'CachetHQ\Cachet\Providers\RepositoryServiceProvider',
|
||||||
'CachetHQ\Cachet\Providers\RouteServiceProvider',
|
'CachetHQ\Cachet\Providers\RouteServiceProvider',
|
||||||
'CachetHQ\Cachet\Providers\SettingsServiceProvider',
|
'CachetHQ\Cachet\Providers\SettingsServiceProvider',
|
||||||
'CachetHQ\Cachet\Providers\SegmentApiServiceProvider',
|
'CachetHQ\Cachet\Providers\SegmentApiServiceProvider',
|
||||||
'CachetHQ\Cachet\Providers\ViewComposerServiceProvider',
|
'CachetHQ\Cachet\Providers\ViewComposerServiceProvider',
|
||||||
'CachetHQ\Cachet\Providers\LoadConfigServiceProvider',
|
'CachetHQ\Cachet\Providers\LoadConfigServiceProvider',
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Class Aliases
|
| Class Aliases
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| This array of class aliases will be registered when this application
|
| This array of class aliases will be registered when this application
|
||||||
| is started. However, feel free to register as many as you wish as
|
| is started. However, feel free to register as many as you wish as
|
||||||
| the aliases are "lazy" loaded so they don't hinder performance.
|
| the aliases are "lazy" loaded so they don't hinder performance.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'aliases' => [
|
'aliases' => [
|
||||||
|
|
||||||
'App' => 'Illuminate\Support\Facades\App',
|
'App' => 'Illuminate\Support\Facades\App',
|
||||||
'Artisan' => 'Illuminate\Support\Facades\Artisan',
|
'Artisan' => 'Illuminate\Support\Facades\Artisan',
|
||||||
'Auth' => 'Illuminate\Support\Facades\Auth',
|
'Auth' => 'Illuminate\Support\Facades\Auth',
|
||||||
'Blade' => 'Illuminate\Support\Facades\Blade',
|
'Blade' => 'Illuminate\Support\Facades\Blade',
|
||||||
'Bus' => 'Illuminate\Support\Facades\Bus',
|
'Bus' => 'Illuminate\Support\Facades\Bus',
|
||||||
'Cache' => 'Illuminate\Support\Facades\Cache',
|
'Cache' => 'Illuminate\Support\Facades\Cache',
|
||||||
'Config' => 'Illuminate\Support\Facades\Config',
|
'Config' => 'Illuminate\Support\Facades\Config',
|
||||||
'Cookie' => 'Illuminate\Support\Facades\Cookie',
|
'Cookie' => 'Illuminate\Support\Facades\Cookie',
|
||||||
'Crypt' => 'Illuminate\Support\Facades\Crypt',
|
'Crypt' => 'Illuminate\Support\Facades\Crypt',
|
||||||
'DB' => 'Illuminate\Support\Facades\DB',
|
'DB' => 'Illuminate\Support\Facades\DB',
|
||||||
'Eloquent' => 'Illuminate\Database\Eloquent\Model',
|
'Eloquent' => 'Illuminate\Database\Eloquent\Model',
|
||||||
'Event' => 'Illuminate\Support\Facades\Event',
|
'Event' => 'Illuminate\Support\Facades\Event',
|
||||||
'File' => 'Illuminate\Support\Facades\File',
|
'File' => 'Illuminate\Support\Facades\File',
|
||||||
'Form' => 'Illuminate\Html\FormFacade',
|
'Form' => 'Illuminate\Html\FormFacade',
|
||||||
'Hash' => 'Illuminate\Support\Facades\Hash',
|
'Hash' => 'Illuminate\Support\Facades\Hash',
|
||||||
'Input' => 'Illuminate\Support\Facades\Input',
|
'Input' => 'Illuminate\Support\Facades\Input',
|
||||||
'Inspiring' => 'Illuminate\Foundation\Inspiring',
|
'Inspiring' => 'Illuminate\Foundation\Inspiring',
|
||||||
'Lang' => 'Illuminate\Support\Facades\Lang',
|
'Lang' => 'Illuminate\Support\Facades\Lang',
|
||||||
'Log' => 'Illuminate\Support\Facades\Log',
|
'Log' => 'Illuminate\Support\Facades\Log',
|
||||||
'Mail' => 'Illuminate\Support\Facades\Mail',
|
'Mail' => 'Illuminate\Support\Facades\Mail',
|
||||||
'Password' => 'Illuminate\Support\Facades\Password',
|
'Password' => 'Illuminate\Support\Facades\Password',
|
||||||
'Queue' => 'Illuminate\Support\Facades\Queue',
|
'Queue' => 'Illuminate\Support\Facades\Queue',
|
||||||
'Redirect' => 'Illuminate\Support\Facades\Redirect',
|
'Redirect' => 'Illuminate\Support\Facades\Redirect',
|
||||||
'Redis' => 'Illuminate\Support\Facades\Redis',
|
'Redis' => 'Illuminate\Support\Facades\Redis',
|
||||||
'Request' => 'Illuminate\Support\Facades\Request',
|
'Request' => 'Illuminate\Support\Facades\Request',
|
||||||
'Response' => 'Illuminate\Support\Facades\Response',
|
'Response' => 'Illuminate\Support\Facades\Response',
|
||||||
'Route' => 'Illuminate\Support\Facades\Route',
|
'Route' => 'Illuminate\Support\Facades\Route',
|
||||||
'Schema' => 'Illuminate\Support\Facades\Schema',
|
'Schema' => 'Illuminate\Support\Facades\Schema',
|
||||||
'Session' => 'Illuminate\Support\Facades\Session',
|
'Session' => 'Illuminate\Support\Facades\Session',
|
||||||
'Storage' => 'Illuminate\Support\Facades\Storage',
|
'Storage' => 'Illuminate\Support\Facades\Storage',
|
||||||
'URL' => 'Illuminate\Support\Facades\URL',
|
'URL' => 'Illuminate\Support\Facades\URL',
|
||||||
'Validator' => 'Illuminate\Support\Facades\Validator',
|
'Validator' => 'Illuminate\Support\Facades\Validator',
|
||||||
'View' => 'Illuminate\Support\Facades\View',
|
'View' => 'Illuminate\Support\Facades\View',
|
||||||
|
|
||||||
'Setting' => 'CachetHQ\Cachet\Facades\Setting',
|
'Setting' => 'CachetHQ\Cachet\Facades\Setting',
|
||||||
'Str' => 'Illuminate\Support\Str',
|
'Str' => 'Illuminate\Support\Str',
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
108
config/auth.php
108
config/auth.php
@@ -2,66 +2,66 @@
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Default Authentication Driver
|
| Default Authentication Driver
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| This option controls the authentication driver that will be utilized.
|
| This option controls the authentication driver that will be utilized.
|
||||||
| This driver manages the retrieval and authentication of the users
|
| This driver manages the retrieval and authentication of the users
|
||||||
| attempting to get access to protected areas of your application.
|
| attempting to get access to protected areas of your application.
|
||||||
|
|
|
|
||||||
| Supported: "database", "eloquent"
|
| Supported: "database", "eloquent"
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'driver' => 'eloquent',
|
'driver' => 'eloquent',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Authentication Model
|
| Authentication Model
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| When using the "Eloquent" authentication driver, we need to know which
|
| When using the "Eloquent" authentication driver, we need to know which
|
||||||
| Eloquent model should be used to retrieve your users. Of course, it
|
| Eloquent model should be used to retrieve your users. Of course, it
|
||||||
| is often just the "User" model but you may use whatever you like.
|
| is often just the "User" model but you may use whatever you like.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'model' => 'CachetHQ\Cachet\Models\User',
|
'model' => 'CachetHQ\Cachet\Models\User',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Authentication Table
|
| Authentication Table
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| When using the "Database" authentication driver, we need to know which
|
| When using the "Database" authentication driver, we need to know which
|
||||||
| table should be used to retrieve your users. We have chosen a basic
|
| table should be used to retrieve your users. We have chosen a basic
|
||||||
| default value but you may easily change it to any table you like.
|
| default value but you may easily change it to any table you like.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'table' => 'users',
|
'table' => 'users',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Password Reset Settings
|
| Password Reset Settings
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Here you may set the options for resetting passwords including the view
|
| Here you may set the options for resetting passwords including the view
|
||||||
| that is your password reset e-mail. You can also set the name of the
|
| that is your password reset e-mail. You can also set the name of the
|
||||||
| table that maintains all of the reset tokens for your application.
|
| table that maintains all of the reset tokens for your application.
|
||||||
|
|
|
|
||||||
| The expire time is the number of minutes that the reset token should be
|
| The expire time is the number of minutes that the reset token should be
|
||||||
| considered valid. This security feature keeps tokens short-lived so
|
| considered valid. This security feature keeps tokens short-lived so
|
||||||
| they have less time to be guessed. You may change this as needed.
|
| they have less time to be guessed. You may change this as needed.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'password' => [
|
'password' => [
|
||||||
'email' => 'emails.password',
|
'email' => 'emails.password',
|
||||||
'table' => 'password_resets',
|
'table' => 'password_resets',
|
||||||
'expire' => 60,
|
'expire' => 60,
|
||||||
],
|
],
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
122
config/cache.php
122
config/cache.php
@@ -2,78 +2,78 @@
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Default Cache Store
|
| Default Cache Store
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| This option controls the default cache connection that gets used while
|
| This option controls the default cache connection that gets used while
|
||||||
| using this caching library. This connection is used when another is
|
| using this caching library. This connection is used when another is
|
||||||
| not explicitly specified when executing a given caching function.
|
| not explicitly specified when executing a given caching function.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'default' => env('CACHE_DRIVER', 'file'),
|
'default' => env('CACHE_DRIVER', 'file'),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Cache Stores
|
| Cache Stores
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Here you may define all of the cache "stores" for your application as
|
| 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
|
| well as their drivers. You may even define multiple stores for the
|
||||||
| same cache driver to group types of items stored in your caches.
|
| same cache driver to group types of items stored in your caches.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'stores' => [
|
'stores' => [
|
||||||
|
|
||||||
'apc' => [
|
'apc' => [
|
||||||
'driver' => 'apc'
|
'driver' => 'apc',
|
||||||
],
|
],
|
||||||
|
|
||||||
'array' => [
|
'array' => [
|
||||||
'driver' => 'array'
|
'driver' => 'array',
|
||||||
],
|
],
|
||||||
|
|
||||||
'database' => [
|
'database' => [
|
||||||
'driver' => 'database',
|
'driver' => 'database',
|
||||||
'table' => 'cache',
|
'table' => 'cache',
|
||||||
'connection' => null,
|
'connection' => null,
|
||||||
],
|
],
|
||||||
|
|
||||||
'file' => [
|
'file' => [
|
||||||
'driver' => 'file',
|
'driver' => 'file',
|
||||||
'path' => storage_path().'/framework/cache',
|
'path' => storage_path().'/framework/cache',
|
||||||
],
|
],
|
||||||
|
|
||||||
'memcached' => [
|
'memcached' => [
|
||||||
'driver' => 'memcached',
|
'driver' => 'memcached',
|
||||||
'servers' => [
|
'servers' => [
|
||||||
[
|
[
|
||||||
'host' => '127.0.0.1', 'port' => 11211, 'weight' => 100
|
'host' => '127.0.0.1', 'port' => 11211, 'weight' => 100,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
'redis' => [
|
'redis' => [
|
||||||
'driver' => 'redis',
|
'driver' => 'redis',
|
||||||
'connection' => 'default',
|
'connection' => 'default',
|
||||||
],
|
],
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Cache Key Prefix
|
| Cache Key Prefix
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| When utilizing a RAM based store such as APC or Memcached, there might
|
| When utilizing a RAM based store such as APC or Memcached, there might
|
||||||
| be other applications utilizing the same cache. So, we'll specify a
|
| be other applications utilizing the same cache. So, we'll specify a
|
||||||
| value to get prefixed to all our keys so we can avoid collisions.
|
| value to get prefixed to all our keys so we can avoid collisions.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'prefix' => 'laravel',
|
'prefix' => 'laravel',
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -2,40 +2,40 @@
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Additional Compiled Classes
|
| Additional Compiled Classes
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Here you may specify additional classes to include in the compiled file
|
| Here you may specify additional classes to include in the compiled file
|
||||||
| generated by the `artisan optimize` command. These should be classes
|
| generated by the `artisan optimize` command. These should be classes
|
||||||
| that are included on basically every request into the application.
|
| that are included on basically every request into the application.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'files' => [
|
'files' => [
|
||||||
|
|
||||||
realpath(__DIR__.'/../app/Providers/AppServiceProvider.php'),
|
realpath(__DIR__.'/../app/Providers/AppServiceProvider.php'),
|
||||||
realpath(__DIR__.'/../app/Providers/BusServiceProvider.php'),
|
realpath(__DIR__.'/../app/Providers/BusServiceProvider.php'),
|
||||||
realpath(__DIR__.'/../app/Providers/ConfigServiceProvider.php'),
|
realpath(__DIR__.'/../app/Providers/ConfigServiceProvider.php'),
|
||||||
realpath(__DIR__.'/../app/Providers/EventServiceProvider.php'),
|
realpath(__DIR__.'/../app/Providers/EventServiceProvider.php'),
|
||||||
realpath(__DIR__.'/../app/Providers/RouteServiceProvider.php'),
|
realpath(__DIR__.'/../app/Providers/RouteServiceProvider.php'),
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Compiled File Providers
|
| Compiled File Providers
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Here you may list service providers which define a "compiles" function
|
| Here you may list service providers which define a "compiles" function
|
||||||
| that returns additional files that should be compiled, providing an
|
| that returns additional files that should be compiled, providing an
|
||||||
| easy way to get common files from any packages you are utilizing.
|
| easy way to get common files from any packages you are utilizing.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'providers' => [
|
'providers' => [
|
||||||
//
|
//
|
||||||
],
|
],
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -2,124 +2,124 @@
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| PDO Fetch Style
|
| PDO Fetch Style
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| By default, database results will be returned as instances of the PHP
|
| By default, database results will be returned as instances of the PHP
|
||||||
| stdClass object; however, you may desire to retrieve records in an
|
| stdClass object; however, you may desire to retrieve records in an
|
||||||
| array format for simplicity. Here you can tweak the fetch style.
|
| array format for simplicity. Here you can tweak the fetch style.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'fetch' => PDO::FETCH_CLASS,
|
'fetch' => PDO::FETCH_CLASS,
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Default Database Connection Name
|
| Default Database Connection Name
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Here you may specify which of the database connections below you wish
|
| Here you may specify which of the database connections below you wish
|
||||||
| to use as your default connection for all database work. Of course
|
| to use as your default connection for all database work. Of course
|
||||||
| you may use many connections at once using the Database library.
|
| you may use many connections at once using the Database library.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'default' => 'mysql',
|
'default' => 'mysql',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Database Connections
|
| Database Connections
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Here are each of the database connections setup for your application.
|
| Here are each of the database connections setup for your application.
|
||||||
| Of course, examples of configuring each database platform that is
|
| Of course, examples of configuring each database platform that is
|
||||||
| supported by Laravel is shown below to make development simple.
|
| supported by Laravel is shown below to make development simple.
|
||||||
|
|
|
|
||||||
|
|
|
|
||||||
| All database work in Laravel is done through the PHP PDO facilities
|
| All database work in Laravel is done through the PHP PDO facilities
|
||||||
| so make sure you have the driver for your particular database of
|
| so make sure you have the driver for your particular database of
|
||||||
| choice installed on your machine before you begin development.
|
| choice installed on your machine before you begin development.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'connections' => [
|
'connections' => [
|
||||||
|
|
||||||
'sqlite' => [
|
'sqlite' => [
|
||||||
'driver' => 'sqlite',
|
'driver' => 'sqlite',
|
||||||
'database' => storage_path().'/database.sqlite',
|
'database' => storage_path().'/database.sqlite',
|
||||||
'prefix' => '',
|
'prefix' => '',
|
||||||
],
|
],
|
||||||
|
|
||||||
'mysql' => [
|
'mysql' => [
|
||||||
'driver' => 'mysql',
|
'driver' => 'mysql',
|
||||||
'host' => env('DB_HOST', 'localhost'),
|
'host' => env('DB_HOST', 'localhost'),
|
||||||
'database' => env('DB_DATABASE', 'forge'),
|
'database' => env('DB_DATABASE', 'forge'),
|
||||||
'username' => env('DB_USERNAME', 'forge'),
|
'username' => env('DB_USERNAME', 'forge'),
|
||||||
'password' => env('DB_PASSWORD', ''),
|
'password' => env('DB_PASSWORD', ''),
|
||||||
'charset' => 'utf8',
|
'charset' => 'utf8',
|
||||||
'collation' => 'utf8_unicode_ci',
|
'collation' => 'utf8_unicode_ci',
|
||||||
'prefix' => '',
|
'prefix' => '',
|
||||||
'strict' => false,
|
'strict' => false,
|
||||||
],
|
],
|
||||||
|
|
||||||
'pgsql' => [
|
'pgsql' => [
|
||||||
'driver' => 'pgsql',
|
'driver' => 'pgsql',
|
||||||
'host' => env('DB_HOST', 'localhost'),
|
'host' => env('DB_HOST', 'localhost'),
|
||||||
'database' => env('DB_DATABASE', 'forge'),
|
'database' => env('DB_DATABASE', 'forge'),
|
||||||
'username' => env('DB_USERNAME', 'forge'),
|
'username' => env('DB_USERNAME', 'forge'),
|
||||||
'password' => env('DB_PASSWORD', ''),
|
'password' => env('DB_PASSWORD', ''),
|
||||||
'charset' => 'utf8',
|
'charset' => 'utf8',
|
||||||
'prefix' => '',
|
'prefix' => '',
|
||||||
'schema' => 'public',
|
'schema' => 'public',
|
||||||
],
|
],
|
||||||
|
|
||||||
'sqlsrv' => [
|
'sqlsrv' => [
|
||||||
'driver' => 'sqlsrv',
|
'driver' => 'sqlsrv',
|
||||||
'host' => env('DB_HOST', 'localhost'),
|
'host' => env('DB_HOST', 'localhost'),
|
||||||
'database' => env('DB_DATABASE', 'forge'),
|
'database' => env('DB_DATABASE', 'forge'),
|
||||||
'username' => env('DB_USERNAME', 'forge'),
|
'username' => env('DB_USERNAME', 'forge'),
|
||||||
'password' => env('DB_PASSWORD', ''),
|
'password' => env('DB_PASSWORD', ''),
|
||||||
'prefix' => '',
|
'prefix' => '',
|
||||||
],
|
],
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Migration Repository Table
|
| Migration Repository Table
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| This table keeps track of all the migrations that have already run for
|
| This table keeps track of all the migrations that have already run for
|
||||||
| your application. Using this information, we can determine which of
|
| your application. Using this information, we can determine which of
|
||||||
| the migrations on disk haven't actually been run in the database.
|
| the migrations on disk haven't actually been run in the database.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'migrations' => 'migrations',
|
'migrations' => 'migrations',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Redis Databases
|
| Redis Databases
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Redis is an open source, fast, and advanced key-value store that also
|
| Redis is an open source, fast, and advanced key-value store that also
|
||||||
| provides a richer set of commands than a typical key-value systems
|
| provides a richer set of commands than a typical key-value systems
|
||||||
| such as APC or Memcached. Laravel makes it easy to dig right in.
|
| such as APC or Memcached. Laravel makes it easy to dig right in.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'redis' => [
|
'redis' => [
|
||||||
|
|
||||||
'cluster' => false,
|
'cluster' => false,
|
||||||
|
|
||||||
'default' => [
|
'default' => [
|
||||||
'host' => '127.0.0.1',
|
'host' => '127.0.0.1',
|
||||||
'port' => 6379,
|
'port' => 6379,
|
||||||
'database' => 0,
|
'database' => 0,
|
||||||
],
|
],
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -2,70 +2,70 @@
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Default Filesystem Disk
|
| Default Filesystem Disk
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Here you may specify the default filesystem disk that should be used
|
| Here you may specify the default filesystem disk that should be used
|
||||||
| by the framework. A "local" driver, as well as a variety of cloud
|
| by the framework. A "local" driver, as well as a variety of cloud
|
||||||
| based drivers are available for your choosing. Just store away!
|
| based drivers are available for your choosing. Just store away!
|
||||||
|
|
|
|
||||||
| Supported: "local", "s3", "rackspace"
|
| Supported: "local", "s3", "rackspace"
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'default' => 'local',
|
'default' => 'local',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Default Cloud Filesystem Disk
|
| Default Cloud Filesystem Disk
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Many applications store files both locally and in the cloud. For this
|
| Many applications store files both locally and in the cloud. For this
|
||||||
| reason, you may specify a default "cloud" driver here. This driver
|
| reason, you may specify a default "cloud" driver here. This driver
|
||||||
| will be bound as the Cloud disk implementation in the container.
|
| will be bound as the Cloud disk implementation in the container.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'cloud' => 's3',
|
'cloud' => 's3',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Filesystem Disks
|
| Filesystem Disks
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Here you may configure as many filesystem "disks" as you wish, and you
|
| Here you may configure as many filesystem "disks" as you wish, and you
|
||||||
| may even configure multiple disks of the same driver. Defaults have
|
| may even configure multiple disks of the same driver. Defaults have
|
||||||
| been setup for each driver as an example of the required options.
|
| been setup for each driver as an example of the required options.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'disks' => [
|
'disks' => [
|
||||||
|
|
||||||
'local' => [
|
'local' => [
|
||||||
'driver' => 'local',
|
'driver' => 'local',
|
||||||
'root' => storage_path().'/app',
|
'root' => storage_path().'/app',
|
||||||
],
|
],
|
||||||
|
|
||||||
's3' => [
|
's3' => [
|
||||||
'driver' => 's3',
|
'driver' => 's3',
|
||||||
'key' => 'your-key',
|
'key' => 'your-key',
|
||||||
'secret' => 'your-secret',
|
'secret' => 'your-secret',
|
||||||
'region' => 'your-region',
|
'region' => 'your-region',
|
||||||
'bucket' => 'your-bucket',
|
'bucket' => 'your-bucket',
|
||||||
],
|
],
|
||||||
|
|
||||||
'rackspace' => [
|
'rackspace' => [
|
||||||
'driver' => 'rackspace',
|
'driver' => 'rackspace',
|
||||||
'username' => 'your-username',
|
'username' => 'your-username',
|
||||||
'key' => 'your-key',
|
'key' => 'your-key',
|
||||||
'container' => 'your-container',
|
'container' => 'your-container',
|
||||||
'endpoint' => 'https://identity.api.rackspacecloud.com/v2.0/',
|
'endpoint' => 'https://identity.api.rackspacecloud.com/v2.0/',
|
||||||
'region' => 'IAD',
|
'region' => 'IAD',
|
||||||
'url_type' => 'publicURL'
|
'url_type' => 'publicURL',
|
||||||
],
|
],
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
202
config/mail.php
202
config/mail.php
@@ -2,123 +2,123 @@
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Mail Driver
|
| Mail Driver
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Laravel supports both SMTP and PHP's "mail" function as drivers for the
|
| Laravel supports both SMTP and PHP's "mail" function as drivers for the
|
||||||
| sending of e-mail. You may specify which one you're using throughout
|
| sending of e-mail. You may specify which one you're using throughout
|
||||||
| your application here. By default, Laravel is setup for SMTP mail.
|
| your application here. By default, Laravel is setup for SMTP mail.
|
||||||
|
|
|
|
||||||
| Supported: "smtp", "mail", "sendmail", "mailgun", "mandrill", "log"
|
| Supported: "smtp", "mail", "sendmail", "mailgun", "mandrill", "log"
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'driver' => env('MAIL_DRIVER', 'smtp'),
|
'driver' => env('MAIL_DRIVER', 'smtp'),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| SMTP Host Address
|
| SMTP Host Address
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Here you may provide the host address of the SMTP server used by your
|
| Here you may provide the host address of the SMTP server used by your
|
||||||
| applications. A default option is provided that is compatible with
|
| applications. A default option is provided that is compatible with
|
||||||
| the Mailgun mail service which will provide reliable deliveries.
|
| the Mailgun mail service which will provide reliable deliveries.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
|
'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| SMTP Host Port
|
| SMTP Host Port
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| This is the SMTP port used by your application to deliver e-mails to
|
| This is the SMTP port used by your application to deliver e-mails to
|
||||||
| users of the application. Like the host we have set this value to
|
| users of the application. Like the host we have set this value to
|
||||||
| stay compatible with the Mailgun e-mail application by default.
|
| stay compatible with the Mailgun e-mail application by default.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'port' => env('MAIL_PORT', 587),
|
'port' => env('MAIL_PORT', 587),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Global "From" Address
|
| Global "From" Address
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| You may wish for all e-mails sent by your application to be sent from
|
| You may wish for all e-mails sent by your application to be sent from
|
||||||
| the same address. Here, you may specify a name and address that is
|
| the same address. Here, you may specify a name and address that is
|
||||||
| used globally for all e-mails that are sent by your application.
|
| used globally for all e-mails that are sent by your application.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'from' => ['address' => null, 'name' => null],
|
'from' => ['address' => null, 'name' => null],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| E-Mail Encryption Protocol
|
| E-Mail Encryption Protocol
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Here you may specify the encryption protocol that should be used when
|
| Here you may specify the encryption protocol that should be used when
|
||||||
| the application send e-mail messages. A sensible default using the
|
| the application send e-mail messages. A sensible default using the
|
||||||
| transport layer security protocol should provide great security.
|
| transport layer security protocol should provide great security.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'encryption' => 'tls',
|
'encryption' => 'tls',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| SMTP Server Username
|
| SMTP Server Username
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| If your SMTP server requires a username for authentication, you should
|
| If your SMTP server requires a username for authentication, you should
|
||||||
| set it here. This will get used to authenticate with your server on
|
| set it here. This will get used to authenticate with your server on
|
||||||
| connection. You may also set the "password" value below this one.
|
| connection. You may also set the "password" value below this one.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'username' => env('MAIL_USERNAME'),
|
'username' => env('MAIL_USERNAME'),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| SMTP Server Password
|
| SMTP Server Password
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Here you may set the password required by your SMTP server to send out
|
| Here you may set the password required by your SMTP server to send out
|
||||||
| messages from your application. This will be given to the server on
|
| messages from your application. This will be given to the server on
|
||||||
| connection so that the application will be able to send messages.
|
| connection so that the application will be able to send messages.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'password' => env('MAIL_PASSWORD'),
|
'password' => env('MAIL_PASSWORD'),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Sendmail System Path
|
| Sendmail System Path
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| When using the "sendmail" driver to send e-mails, we will need to know
|
| When using the "sendmail" driver to send e-mails, we will need to know
|
||||||
| the path to where Sendmail lives on this server. A default path has
|
| the path to where Sendmail lives on this server. A default path has
|
||||||
| been provided here, which will work well on most of your systems.
|
| been provided here, which will work well on most of your systems.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'sendmail' => '/usr/sbin/sendmail -bs',
|
'sendmail' => '/usr/sbin/sendmail -bs',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Mail "Pretend"
|
| Mail "Pretend"
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| When this option is enabled, e-mail will not actually be sent over the
|
| When this option is enabled, e-mail will not actually be sent over the
|
||||||
| web and will instead be written to your application's logs files so
|
| web and will instead be written to your application's logs files so
|
||||||
| you may inspect the message. This is great for local development.
|
| you may inspect the message. This is great for local development.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'pretend' => false,
|
'pretend' => false,
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
148
config/queue.php
148
config/queue.php
@@ -2,91 +2,91 @@
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Default Queue Driver
|
| Default Queue Driver
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| The Laravel queue API supports a variety of back-ends via an unified
|
| The Laravel queue API supports a variety of back-ends via an unified
|
||||||
| API, giving you convenient access to each back-end using the same
|
| API, giving you convenient access to each back-end using the same
|
||||||
| syntax for each one. Here you may set the default queue driver.
|
| syntax for each one. Here you may set the default queue driver.
|
||||||
|
|
|
|
||||||
| Supported: "null", "sync", "database", "beanstalkd",
|
| Supported: "null", "sync", "database", "beanstalkd",
|
||||||
| "sqs", "iron", "redis"
|
| "sqs", "iron", "redis"
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'default' => env('QUEUE_DRIVER', 'sync'),
|
'default' => env('QUEUE_DRIVER', 'sync'),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Queue Connections
|
| Queue Connections
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Here you may configure the connection information for each server that
|
| Here you may configure the connection information for each server that
|
||||||
| is used by your application. A default configuration has been added
|
| is used by your application. A default configuration has been added
|
||||||
| for each back-end shipped with Laravel. You are free to add more.
|
| for each back-end shipped with Laravel. You are free to add more.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'connections' => [
|
'connections' => [
|
||||||
|
|
||||||
'sync' => [
|
'sync' => [
|
||||||
'driver' => 'sync',
|
'driver' => 'sync',
|
||||||
],
|
],
|
||||||
|
|
||||||
'database' => [
|
'database' => [
|
||||||
'driver' => 'database',
|
'driver' => 'database',
|
||||||
'table' => 'jobs',
|
'table' => 'jobs',
|
||||||
'queue' => 'default',
|
'queue' => 'default',
|
||||||
'expire' => 60,
|
'expire' => 60,
|
||||||
],
|
],
|
||||||
|
|
||||||
'beanstalkd' => [
|
'beanstalkd' => [
|
||||||
'driver' => 'beanstalkd',
|
'driver' => 'beanstalkd',
|
||||||
'host' => 'localhost',
|
'host' => 'localhost',
|
||||||
'queue' => 'default',
|
'queue' => 'default',
|
||||||
'ttr' => 60,
|
'ttr' => 60,
|
||||||
],
|
],
|
||||||
|
|
||||||
'sqs' => [
|
'sqs' => [
|
||||||
'driver' => 'sqs',
|
'driver' => 'sqs',
|
||||||
'key' => 'your-public-key',
|
'key' => 'your-public-key',
|
||||||
'secret' => 'your-secret-key',
|
'secret' => 'your-secret-key',
|
||||||
'queue' => 'your-queue-url',
|
'queue' => 'your-queue-url',
|
||||||
'region' => 'us-east-1',
|
'region' => 'us-east-1',
|
||||||
],
|
],
|
||||||
|
|
||||||
'iron' => [
|
'iron' => [
|
||||||
'driver' => 'iron',
|
'driver' => 'iron',
|
||||||
'host' => 'mq-aws-us-east-1.iron.io',
|
'host' => 'mq-aws-us-east-1.iron.io',
|
||||||
'token' => 'your-token',
|
'token' => 'your-token',
|
||||||
'project' => 'your-project-id',
|
'project' => 'your-project-id',
|
||||||
'queue' => 'your-queue-name',
|
'queue' => 'your-queue-name',
|
||||||
'encrypt' => true,
|
'encrypt' => true,
|
||||||
],
|
],
|
||||||
|
|
||||||
'redis' => [
|
'redis' => [
|
||||||
'driver' => 'redis',
|
'driver' => 'redis',
|
||||||
'queue' => 'default',
|
'queue' => 'default',
|
||||||
'expire' => 60,
|
'expire' => 60,
|
||||||
],
|
],
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Failed Queue Jobs
|
| Failed Queue Jobs
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| These options configure the behavior of failed queue job logging so you
|
| These options configure the behavior of failed queue job logging so you
|
||||||
| can control which database and table are used to store the jobs that
|
| can control which database and table are used to store the jobs that
|
||||||
| have failed. You may change them to any database / table you wish.
|
| have failed. You may change them to any database / table you wish.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'failed' => [
|
'failed' => [
|
||||||
'database' => 'mysql', 'table' => 'failed_jobs',
|
'database' => 'mysql', 'table' => 'failed_jobs',
|
||||||
],
|
],
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -2,36 +2,36 @@
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Third Party Services
|
| Third Party Services
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| This file is for storing the credentials for third party services such
|
| This file is for storing the credentials for third party services such
|
||||||
| as Stripe, Mailgun, Mandrill, and others. This file provides a sane
|
| as Stripe, Mailgun, Mandrill, and others. This file provides a sane
|
||||||
| default location for this type of information, allowing packages
|
| default location for this type of information, allowing packages
|
||||||
| to have a conventional place to find your various credentials.
|
| to have a conventional place to find your various credentials.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'mailgun' => [
|
'mailgun' => [
|
||||||
'domain' => '',
|
'domain' => '',
|
||||||
'secret' => '',
|
'secret' => '',
|
||||||
],
|
],
|
||||||
|
|
||||||
'mandrill' => [
|
'mandrill' => [
|
||||||
'secret' => '',
|
'secret' => '',
|
||||||
],
|
],
|
||||||
|
|
||||||
'ses' => [
|
'ses' => [
|
||||||
'key' => '',
|
'key' => '',
|
||||||
'secret' => '',
|
'secret' => '',
|
||||||
'region' => 'us-east-1',
|
'region' => 'us-east-1',
|
||||||
],
|
],
|
||||||
|
|
||||||
'stripe' => [
|
'stripe' => [
|
||||||
'model' => 'User',
|
'model' => 'User',
|
||||||
'secret' => '',
|
'secret' => '',
|
||||||
],
|
],
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -2,152 +2,152 @@
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Default Session Driver
|
| Default Session Driver
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| This option controls the default session "driver" that will be used on
|
| This option controls the default session "driver" that will be used on
|
||||||
| requests. By default, we will use the lightweight native driver but
|
| requests. By default, we will use the lightweight native driver but
|
||||||
| you may specify any of the other wonderful drivers provided here.
|
| you may specify any of the other wonderful drivers provided here.
|
||||||
|
|
|
|
||||||
| Supported: "file", "cookie", "database", "apc",
|
| Supported: "file", "cookie", "database", "apc",
|
||||||
| "memcached", "redis", "array"
|
| "memcached", "redis", "array"
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'driver' => env('SESSION_DRIVER', 'file'),
|
'driver' => env('SESSION_DRIVER', 'file'),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Session Lifetime
|
| Session Lifetime
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Here you may specify the number of minutes that you wish the session
|
| 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 be allowed to remain idle before it expires. If you want them
|
||||||
| to immediately expire on the browser closing, set that option.
|
| to immediately expire on the browser closing, set that option.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'lifetime' => 120,
|
'lifetime' => 120,
|
||||||
|
|
||||||
'expire_on_close' => false,
|
'expire_on_close' => false,
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Session Encryption
|
| Session Encryption
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| This option allows you to easily specify that all of your session data
|
| This option allows you to easily specify that all of your session data
|
||||||
| should be encrypted before it is stored. All encryption will be run
|
| should be encrypted before it is stored. All encryption will be run
|
||||||
| automatically by Laravel and you can use the Session like normal.
|
| automatically by Laravel and you can use the Session like normal.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'encrypt' => false,
|
'encrypt' => false,
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Session File Location
|
| Session File Location
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| When using the native session driver, we need a location where session
|
| When using the native session driver, we need a location where session
|
||||||
| files may be stored. A default has been set for you but a different
|
| files may be stored. A default has been set for you but a different
|
||||||
| location may be specified. This is only needed for file sessions.
|
| location may be specified. This is only needed for file sessions.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'files' => storage_path().'/framework/sessions',
|
'files' => storage_path().'/framework/sessions',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Session Database Connection
|
| Session Database Connection
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| When using the "database" or "redis" session drivers, you may specify a
|
| When using the "database" or "redis" session drivers, you may specify a
|
||||||
| connection that should be used to manage these sessions. This should
|
| connection that should be used to manage these sessions. This should
|
||||||
| correspond to a connection in your database configuration options.
|
| correspond to a connection in your database configuration options.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'connection' => null,
|
'connection' => null,
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Session Database Table
|
| Session Database Table
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| When using the "database" session driver, you may specify the table we
|
| When using the "database" session driver, you may specify the table we
|
||||||
| should use to manage the sessions. Of course, a sensible default is
|
| should use to manage the sessions. Of course, a sensible default is
|
||||||
| provided for you; however, you are free to change this as needed.
|
| provided for you; however, you are free to change this as needed.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'table' => 'sessions',
|
'table' => 'sessions',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Session Sweeping Lottery
|
| Session Sweeping Lottery
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Some session drivers must manually sweep their storage location to get
|
| Some session drivers must manually sweep their storage location to get
|
||||||
| rid of old sessions from storage. Here are the chances that it will
|
| 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.
|
| happen on a given request. By default, the odds are 2 out of 100.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'lottery' => [2, 100],
|
'lottery' => [2, 100],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Session Cookie Name
|
| Session Cookie Name
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Here you may change the name of the cookie used to identify a session
|
| Here you may change the name of the cookie used to identify a session
|
||||||
| instance by ID. The name specified here will get used every time a
|
| instance by ID. The name specified here will get used every time a
|
||||||
| new session cookie is created by the framework for every driver.
|
| new session cookie is created by the framework for every driver.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'cookie' => 'laravel_session',
|
'cookie' => 'laravel_session',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Session Cookie Path
|
| Session Cookie Path
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| The session cookie path determines the path for which the cookie will
|
| The session cookie path determines the path for which the cookie will
|
||||||
| be regarded as available. Typically, this will be the root path of
|
| be regarded as available. Typically, this will be the root path of
|
||||||
| your application but you are free to change this when necessary.
|
| your application but you are free to change this when necessary.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'path' => '/',
|
'path' => '/',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Session Cookie Domain
|
| Session Cookie Domain
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Here you may change the domain of the cookie used to identify a session
|
| Here you may change the domain of the cookie used to identify a session
|
||||||
| in your application. This will determine which domains the cookie is
|
| in your application. This will determine which domains the cookie is
|
||||||
| available to in your application. A sensible default has been set.
|
| available to in your application. A sensible default has been set.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'domain' => null,
|
'domain' => null,
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| HTTPS Only Cookies
|
| HTTPS Only Cookies
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| By setting this option to true, session cookies will only be sent back
|
| 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
|
| to the server if the browser has a HTTPS connection. This will keep
|
||||||
| the cookie from being sent to you if it can not be done securely.
|
| the cookie from being sent to you if it can not be done securely.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'secure' => false,
|
'secure' => false,
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -57,5 +57,5 @@ return [
|
|||||||
\Illuminate\Http\Request::HEADER_CLIENT_HOST => 'X_FORWARDED_HOST',
|
\Illuminate\Http\Request::HEADER_CLIENT_HOST => 'X_FORWARDED_HOST',
|
||||||
\Illuminate\Http\Request::HEADER_CLIENT_PROTO => 'X_FORWARDED_PROTO',
|
\Illuminate\Http\Request::HEADER_CLIENT_PROTO => 'X_FORWARDED_PROTO',
|
||||||
\Illuminate\Http\Request::HEADER_CLIENT_PORT => 'X_FORWARDED_PORT',
|
\Illuminate\Http\Request::HEADER_CLIENT_PORT => 'X_FORWARDED_PORT',
|
||||||
]
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -2,32 +2,32 @@
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| View Storage Paths
|
| View Storage Paths
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Most templating systems load templates from disk. Here you may specify
|
| Most templating systems load templates from disk. Here you may specify
|
||||||
| an array of paths that should be checked for your views. Of course
|
| an array of paths that should be checked for your views. Of course
|
||||||
| the usual Laravel view path has already been registered for you.
|
| the usual Laravel view path has already been registered for you.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'paths' => [
|
'paths' => [
|
||||||
realpath(base_path('resources/views'))
|
realpath(base_path('resources/views')),
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Compiled View Path
|
| Compiled View Path
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| This option determines where all the compiled Blade templates will be
|
| This option determines where all the compiled Blade templates will be
|
||||||
| stored for your application. Typically, this is within the storage
|
| stored for your application. Typically, this is within the storage
|
||||||
| directory. However, as usual, you are free to change this value.
|
| directory. However, as usual, you are free to change this value.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'compiled' => realpath(storage_path().'/framework/views'),
|
'compiled' => realpath(storage_path().'/framework/views'),
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Laravel - A PHP Framework For Web Artisans
|
* Laravel - A PHP Framework For Web Artisans.
|
||||||
*
|
*
|
||||||
* @package Laravel
|
|
||||||
* @author Taylor Otwell <taylorotwell@gmail.com>
|
* @author Taylor Otwell <taylorotwell@gmail.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -49,7 +48,7 @@ $app = require_once __DIR__.'/../bootstrap/app.php';
|
|||||||
$kernel = $app->make('Illuminate\Contracts\Http\Kernel');
|
$kernel = $app->make('Illuminate\Contracts\Http\Kernel');
|
||||||
|
|
||||||
$response = $kernel->handle(
|
$response = $kernel->handle(
|
||||||
$request = Illuminate\Http\Request::capture()
|
$request = Illuminate\Http\Request::capture()
|
||||||
);
|
);
|
||||||
|
|
||||||
$response->send();
|
$response->send();
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ return [
|
|||||||
'too-big' => 'The file you uploaded is too big. Upload an image smaller than :size',
|
'too-big' => 'The file you uploaded is too big. Upload an image smaller than :size',
|
||||||
],
|
],
|
||||||
'security' => [
|
'security' => [
|
||||||
'security' => 'Security',
|
'security' => 'Security',
|
||||||
'two-factor' => 'Users without two-factor authentication',
|
'two-factor' => 'Users without two-factor authentication',
|
||||||
],
|
],
|
||||||
'stylesheet' => [
|
'stylesheet' => [
|
||||||
|
|||||||
11
server.php
11
server.php
@@ -1,21 +1,18 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Laravel - A PHP Framework For Web Artisans
|
* Laravel - A PHP Framework For Web Artisans.
|
||||||
*
|
*
|
||||||
* @package Laravel
|
|
||||||
* @author Taylor Otwell <taylorotwell@gmail.com>
|
* @author Taylor Otwell <taylorotwell@gmail.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$uri = urldecode(
|
$uri = urldecode(
|
||||||
parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
|
parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
|
||||||
);
|
);
|
||||||
|
|
||||||
// This file allows us to emulate Apache's "mod_rewrite" functionality from the
|
// This file allows us to emulate Apache's "mod_rewrite" functionality from the
|
||||||
// built-in PHP web server. This provides a convenient way to test a Laravel
|
// built-in PHP web server. This provides a convenient way to test a Laravel
|
||||||
// application without having installed a "real" web server software here.
|
// application without having installed a "real" web server software here.
|
||||||
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri))
|
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
|
||||||
{
|
return false;
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once __DIR__.'/public/index.php';
|
require_once __DIR__.'/public/index.php';
|
||||||
|
|||||||
@@ -1,17 +1,16 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
class ExampleTest extends TestCase {
|
class ExampleTest extends TestCase
|
||||||
|
{
|
||||||
/**
|
/**
|
||||||
* A basic functional test example.
|
* A basic functional test example.
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function testBasicExample()
|
public function testBasicExample()
|
||||||
{
|
{
|
||||||
$response = $this->call('GET', '/');
|
$response = $this->call('GET', '/');
|
||||||
|
|
||||||
$this->assertEquals(200, $response->getStatusCode());
|
|
||||||
}
|
|
||||||
|
|
||||||
|
$this->assertEquals(200, $response->getStatusCode());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,19 +1,18 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
class TestCase extends Illuminate\Foundation\Testing\TestCase {
|
class TestCase extends Illuminate\Foundation\Testing\TestCase
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Creates the application.
|
||||||
|
*
|
||||||
|
* @return \Illuminate\Foundation\Application
|
||||||
|
*/
|
||||||
|
public function createApplication()
|
||||||
|
{
|
||||||
|
$app = require __DIR__.'/../bootstrap/app.php';
|
||||||
|
|
||||||
/**
|
$app->make('Illuminate\Contracts\Console\Kernel')->bootstrap();
|
||||||
* Creates the application.
|
|
||||||
*
|
|
||||||
* @return \Illuminate\Foundation\Application
|
|
||||||
*/
|
|
||||||
public function createApplication()
|
|
||||||
{
|
|
||||||
$app = require __DIR__.'/../bootstrap/app.php';
|
|
||||||
|
|
||||||
$app->make('Illuminate\Contracts\Console\Kernel')->bootstrap();
|
|
||||||
|
|
||||||
return $app;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
return $app;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user