commit
617b9a9bf0
61 changed files with 5141 additions and 0 deletions
-
3.gitattributes
-
7.gitignore
-
28Vagrantfile
-
30app/Console/Kernel.php
-
10app/Deletion.php
-
8app/Events/Event.php
-
50app/Exceptions/Handler.php
-
14app/Http/Controllers/Controller.php
-
42app/Http/Kernel.php
-
10app/Http/Requests/Request.php
-
16app/Http/routes.php
-
21app/Jobs/Job.php
-
1app/Listeners/.gitkeep
-
10app/Paste.php
-
1app/Policies/.gitkeep
-
28app/Providers/AppServiceProvider.php
-
31app/Providers/AuthServiceProvider.php
-
33app/Providers/EventServiceProvider.php
-
61app/Providers/RouteServiceProvider.php
-
51artisan
-
55bootstrap/app.php
-
34bootstrap/autoload.php
-
2bootstrap/cache/.gitignore
-
52composer.json
-
3105composer.lock
-
207config/app.php
-
107config/auth.php
-
52config/broadcasting.php
-
81config/cache.php
-
35config/compile.php
-
76config/database.php
-
67config/filesystems.php
-
112config/mail.php
-
85config/queue.php
-
38config/services.php
-
166config/session.php
-
33config/view.php
-
1database/.gitignore
-
13database/factories/ModelFactory.php
-
1database/migrations/.gitkeep
-
34database/migrations/2016_05_27_230057_create_pastes_table.php
-
35database/migrations/2016_05_28_000118_create_deletions_table.php
-
1database/seeds/.gitkeep
-
16database/seeds/DatabaseSeeder.php
-
16gulpfile.js
-
12package.json
-
30phpunit.xml
-
58public/index.php
-
2resources/assets/sass/app.scss
-
47resources/views/errors/503.blade.php
-
1resources/views/vendor/.gitkeep
-
45resources/views/welcome.blade.php
-
21server.php
-
3storage/app/.gitignore
-
2storage/app/public/.gitignore
-
8storage/framework/.gitignore
-
2storage/framework/cache/.gitignore
-
2storage/framework/sessions/.gitignore
-
2storage/framework/views/.gitignore
-
2storage/logs/.gitignore
-
25tests/TestCase.php
@ -0,0 +1,3 @@ |
|||
* text=auto |
|||
*.css linguist-vendored |
|||
*.scss linguist-vendored |
@ -0,0 +1,7 @@ |
|||
/vendor |
|||
/node_modules |
|||
/public/storage |
|||
Homestead.yaml |
|||
Homestead.json |
|||
.env |
|||
.vagrant |
@ -0,0 +1,28 @@ |
|||
require 'json' |
|||
require 'yaml' |
|||
|
|||
VAGRANTFILE_API_VERSION ||= "2" |
|||
confDir = $confDir ||= File.expand_path("vendor/laravel/homestead", File.dirname(__FILE__)) |
|||
|
|||
homesteadYamlPath = "Homestead.yaml" |
|||
homesteadJsonPath = "Homestead.json" |
|||
afterScriptPath = "after.sh" |
|||
aliasesPath = "aliases" |
|||
|
|||
require File.expand_path(confDir + '/scripts/homestead.rb') |
|||
|
|||
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| |
|||
if File.exists? aliasesPath then |
|||
config.vm.provision "file", source: aliasesPath, destination: "~/.bash_aliases" |
|||
end |
|||
|
|||
if File.exists? homesteadYamlPath then |
|||
Homestead.configure(config, YAML::load(File.read(homesteadYamlPath))) |
|||
elsif File.exists? homesteadJsonPath then |
|||
Homestead.configure(config, JSON.parse(File.read(homesteadJsonPath))) |
|||
end |
|||
|
|||
if File.exists? afterScriptPath then |
|||
config.vm.provision "shell", path: afterScriptPath |
|||
end |
|||
end |
@ -0,0 +1,30 @@ |
|||
<?php |
|||
|
|||
namespace App\Console; |
|||
|
|||
use Illuminate\Console\Scheduling\Schedule; |
|||
use Illuminate\Foundation\Console\Kernel as ConsoleKernel; |
|||
|
|||
class Kernel extends ConsoleKernel |
|||
{ |
|||
/** |
|||
* The Artisan commands provided by your application. |
|||
* |
|||
* @var array |
|||
*/ |
|||
protected $commands = [ |
|||
// Commands\Inspire::class,
|
|||
]; |
|||
|
|||
/** |
|||
* Define the application's command schedule. |
|||
* |
|||
* @param \Illuminate\Console\Scheduling\Schedule $schedule |
|||
* @return void |
|||
*/ |
|||
protected function schedule(Schedule $schedule) |
|||
{ |
|||
// $schedule->command('inspire')
|
|||
// ->hourly();
|
|||
} |
|||
} |
@ -0,0 +1,10 @@ |
|||
<?php |
|||
|
|||
namespace App; |
|||
|
|||
use Illuminate\Database\Eloquent\Model; |
|||
|
|||
class Deletion extends Model |
|||
{ |
|||
//
|
|||
} |
@ -0,0 +1,8 @@ |
|||
<?php |
|||
|
|||
namespace App\Events; |
|||
|
|||
abstract class Event |
|||
{ |
|||
//
|
|||
} |
@ -0,0 +1,50 @@ |
|||
<?php |
|||
|
|||
namespace App\Exceptions; |
|||
|
|||
use Exception; |
|||
use Illuminate\Validation\ValidationException; |
|||
use Illuminate\Auth\Access\AuthorizationException; |
|||
use Illuminate\Database\Eloquent\ModelNotFoundException; |
|||
use Symfony\Component\HttpKernel\Exception\HttpException; |
|||
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; |
|||
|
|||
class Handler extends ExceptionHandler |
|||
{ |
|||
/** |
|||
* A list of the exception types that should not be reported. |
|||
* |
|||
* @var array |
|||
*/ |
|||
protected $dontReport = [ |
|||
AuthorizationException::class, |
|||
HttpException::class, |
|||
ModelNotFoundException::class, |
|||
ValidationException::class, |
|||
]; |
|||
|
|||
/** |
|||
* Report or log an exception. |
|||
* |
|||
* This is a great spot to send exceptions to Sentry, Bugsnag, etc. |
|||
* |
|||
* @param \Exception $e |
|||
* @return void |
|||
*/ |
|||
public function report(Exception $e) |
|||
{ |
|||
parent::report($e); |
|||
} |
|||
|
|||
/** |
|||
* Render an exception into an HTTP response. |
|||
* |
|||
* @param \Illuminate\Http\Request $request |
|||
* @param \Exception $e |
|||
* @return \Illuminate\Http\Response |
|||
*/ |
|||
public function render($request, Exception $e) |
|||
{ |
|||
return parent::render($request, $e); |
|||
} |
|||
} |
@ -0,0 +1,14 @@ |
|||
<?php |
|||
|
|||
namespace App\Http\Controllers; |
|||
|
|||
use Illuminate\Foundation\Bus\DispatchesJobs; |
|||
use Illuminate\Routing\Controller as BaseController; |
|||
use Illuminate\Foundation\Validation\ValidatesRequests; |
|||
use Illuminate\Foundation\Auth\Access\AuthorizesRequests; |
|||
use Illuminate\Foundation\Auth\Access\AuthorizesResources; |
|||
|
|||
class Controller extends BaseController |
|||
{ |
|||
use AuthorizesRequests, AuthorizesResources, DispatchesJobs, ValidatesRequests; |
|||
} |
@ -0,0 +1,42 @@ |
|||
<?php |
|||
|
|||
namespace App\Http; |
|||
|
|||
use Illuminate\Foundation\Http\Kernel as HttpKernel; |
|||
|
|||
class Kernel extends HttpKernel |
|||
{ |
|||
/** |
|||
* The application's global HTTP middleware stack. |
|||
* |
|||
* These middleware are run during every request to your application. |
|||
* |
|||
* @var array |
|||
*/ |
|||
protected $middleware = [ |
|||
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class, |
|||
]; |
|||
|
|||
/** |
|||
* The application's route middleware groups. |
|||
* |
|||
* @var array |
|||
*/ |
|||
protected $middlewareGroups = [ |
|||
'web' => [ |
|||
], |
|||
|
|||
'api' => [ |
|||
], |
|||
]; |
|||
|
|||
/** |
|||
* The application's route middleware. |
|||
* |
|||
* These middleware may be assigned to groups or used individually. |
|||
* |
|||
* @var array |
|||
*/ |
|||
protected $routeMiddleware = [ |
|||
]; |
|||
} |
@ -0,0 +1,10 @@ |
|||
<?php |
|||
|
|||
namespace App\Http\Requests; |
|||
|
|||
use Illuminate\Foundation\Http\FormRequest; |
|||
|
|||
abstract class Request extends FormRequest |
|||
{ |
|||
//
|
|||
} |
@ -0,0 +1,16 @@ |
|||
<?php |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Application Routes |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| Here is where you can register all of the routes for an application. |
|||
| It's a breeze. Simply tell Laravel the URIs it should respond to |
|||
| and give it the controller to call when that URI is requested. |
|||
| |
|||
*/ |
|||
|
|||
Route::get('/', function () { |
|||
return view('welcome'); |
|||
}); |
@ -0,0 +1,21 @@ |
|||
<?php |
|||
|
|||
namespace App\Jobs; |
|||
|
|||
use Illuminate\Bus\Queueable; |
|||
|
|||
abstract class Job |
|||
{ |
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Queueable Jobs |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| This job base class provides a central location to place any logic that |
|||
| is shared across all of your jobs. The trait included with the class |
|||
| provides access to the "onQueue" and "delay" queue helper methods. |
|||
| |
|||
*/ |
|||
|
|||
use Queueable; |
|||
} |
@ -0,0 +1 @@ |
|||
|
@ -0,0 +1,10 @@ |
|||
<?php |
|||
|
|||
namespace App; |
|||
|
|||
use Illuminate\Database\Eloquent\Model; |
|||
|
|||
class Paste extends Model |
|||
{ |
|||
//
|
|||
} |
@ -0,0 +1 @@ |
|||
|
@ -0,0 +1,28 @@ |
|||
<?php |
|||
|
|||
namespace App\Providers; |
|||
|
|||
use Illuminate\Support\ServiceProvider; |
|||
|
|||
class AppServiceProvider extends ServiceProvider |
|||
{ |
|||
/** |
|||
* Bootstrap any application services. |
|||
* |
|||
* @return void |
|||
*/ |
|||
public function boot() |
|||
{ |
|||
//
|
|||
} |
|||
|
|||
/** |
|||
* Register any application services. |
|||
* |
|||
* @return void |
|||
*/ |
|||
public function register() |
|||
{ |
|||
//
|
|||
} |
|||
} |
@ -0,0 +1,31 @@ |
|||
<?php |
|||
|
|||
namespace App\Providers; |
|||
|
|||
use Illuminate\Contracts\Auth\Access\Gate as GateContract; |
|||
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider; |
|||
|
|||
class AuthServiceProvider extends ServiceProvider |
|||
{ |
|||
/** |
|||
* The policy mappings for the application. |
|||
* |
|||
* @var array |
|||
*/ |
|||
protected $policies = [ |
|||
'App\Model' => 'App\Policies\ModelPolicy', |
|||
]; |
|||
|
|||
/** |
|||
* Register any application authentication / authorization services. |
|||
* |
|||
* @param \Illuminate\Contracts\Auth\Access\Gate $gate |
|||
* @return void |
|||
*/ |
|||
public function boot(GateContract $gate) |
|||
{ |
|||
$this->registerPolicies($gate); |
|||
|
|||
//
|
|||
} |
|||
} |
@ -0,0 +1,33 @@ |
|||
<?php |
|||
|
|||
namespace App\Providers; |
|||
|
|||
use Illuminate\Contracts\Events\Dispatcher as DispatcherContract; |
|||
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider; |
|||
|
|||
class EventServiceProvider extends ServiceProvider |
|||
{ |
|||
/** |
|||
* The event listener mappings for the application. |
|||
* |
|||
* @var array |
|||
*/ |
|||
protected $listen = [ |
|||
'App\Events\SomeEvent' => [ |
|||
'App\Listeners\EventListener', |
|||
], |
|||
]; |
|||
|
|||
/** |
|||
* Register any other events for your application. |
|||
* |
|||
* @param \Illuminate\Contracts\Events\Dispatcher $events |
|||
* @return void |
|||
*/ |
|||
public function boot(DispatcherContract $events) |
|||
{ |
|||
parent::boot($events); |
|||
|
|||
//
|
|||
} |
|||
} |
@ -0,0 +1,61 @@ |
|||
<?php |
|||
|
|||
namespace App\Providers; |
|||
|
|||
use Illuminate\Routing\Router; |
|||
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; |
|||
|
|||
class RouteServiceProvider extends ServiceProvider |
|||
{ |
|||
/** |
|||
* This namespace is applied to your controller routes. |
|||
* |
|||
* In addition, it is set as the URL generator's root namespace. |
|||
* |
|||
* @var string |
|||
*/ |
|||
protected $namespace = 'App\Http\Controllers'; |
|||
|
|||
/** |
|||
* Define your route model bindings, pattern filters, etc. |
|||
* |
|||
* @param \Illuminate\Routing\Router $router |
|||
* @return void |
|||
*/ |
|||
public function boot(Router $router) |
|||
{ |
|||
//
|
|||
|
|||
parent::boot($router); |
|||
} |
|||
|
|||
/** |
|||
* Define the routes for the application. |
|||
* |
|||
* @param \Illuminate\Routing\Router $router |
|||
* @return void |
|||
*/ |
|||
public function map(Router $router) |
|||
{ |
|||
$this->mapWebRoutes($router); |
|||
|
|||
//
|
|||
} |
|||
|
|||
/** |
|||
* Define the "web" routes for the application. |
|||
* |
|||
* These routes all receive session state, CSRF protection, etc. |
|||
* |
|||
* @param \Illuminate\Routing\Router $router |
|||
* @return void |
|||
*/ |
|||
protected function mapWebRoutes(Router $router) |
|||
{ |
|||
$router->group([ |
|||
'namespace' => $this->namespace, 'middleware' => 'web', |
|||
], function ($router) { |
|||
require app_path('Http/routes.php'); |
|||
}); |
|||
} |
|||
} |
@ -0,0 +1,51 @@ |
|||
#!/usr/bin/env php |
|||
<?php |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Register The Auto Loader |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| Composer provides a convenient, automatically generated class loader |
|||
| for our application. We just need to utilize it! We'll require it |
|||
| into the script here so that we do not have to worry about the |
|||
| loading of any our classes "manually". Feels great to relax. |
|||
| |
|||
*/ |
|||
|
|||
require __DIR__.'/bootstrap/autoload.php'; |
|||
|
|||
$app = require_once __DIR__.'/bootstrap/app.php'; |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Run The Artisan Application |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| When we run the console application, the current CLI command will be |
|||
| executed in this console and the response sent back to a terminal |
|||
| or another output device for the developers. Here goes nothing! |
|||
| |
|||
*/ |
|||
|
|||
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class); |
|||
|
|||
$status = $kernel->handle( |
|||
$input = new Symfony\Component\Console\Input\ArgvInput, |
|||
new Symfony\Component\Console\Output\ConsoleOutput |
|||
); |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Shutdown The Application |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| Once Artisan has finished running. We will fire off the shutdown events |
|||
| so that any final work may be done by the application before we shut |
|||
| down the process. This is the last thing to happen to the request. |
|||
| |
|||
*/ |
|||
|
|||
$kernel->terminate($input, $status); |
|||
|
|||
exit($status); |
@ -0,0 +1,55 @@ |
|||
<?php |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Create The Application |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| The first thing we will do is create a new Laravel application instance |
|||
| which serves as the "glue" for all the components of Laravel, and is |
|||
| the IoC container for the system binding all of the various parts. |
|||
| |
|||
*/ |
|||
|
|||
$app = new Illuminate\Foundation\Application( |
|||
realpath(__DIR__.'/../') |
|||
); |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Bind Important Interfaces |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| Next, we need to bind some important interfaces into the container so |
|||
| we will be able to resolve them when needed. The kernels serve the |
|||
| incoming requests to this application from both the web and CLI. |
|||
| |
|||
*/ |
|||
|
|||
$app->singleton( |
|||
Illuminate\Contracts\Http\Kernel::class, |
|||
App\Http\Kernel::class |
|||
); |
|||
|
|||
$app->singleton( |
|||
Illuminate\Contracts\Console\Kernel::class, |
|||
App\Console\Kernel::class |
|||
); |
|||
|
|||
$app->singleton( |
|||
Illuminate\Contracts\Debug\ExceptionHandler::class, |
|||
App\Exceptions\Handler::class |
|||
); |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Return The Application |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| This script returns the application instance. The instance is given to |
|||
| the calling script so we can separate the building of the instances |
|||
| from the actual running of the application and sending responses. |
|||
| |
|||
*/ |
|||
|
|||
return $app; |
@ -0,0 +1,34 @@ |
|||
<?php |
|||
|
|||
define('LARAVEL_START', microtime(true)); |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Register The Composer Auto Loader |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| Composer provides a convenient, automatically generated class loader |
|||
| for our application. We just need to utilize it! We'll require it |
|||
| into the script here so that we do not have to worry about the |
|||
| loading of any our classes "manually". Feels great to relax. |
|||
| |
|||
*/ |
|||
|
|||
require __DIR__.'/../vendor/autoload.php'; |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Include The Compiled Class File |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| To dramatically increase your application's performance, you may use a |
|||
| compiled class file which contains all of the classes commonly used |
|||
| by a request. The Artisan "optimize" is used to create this file. |
|||
| |
|||
*/ |
|||
|
|||
$compiledPath = __DIR__.'/cache/compiled.php'; |
|||
|
|||
if (file_exists($compiledPath)) { |
|||
require $compiledPath; |
|||
} |
@ -0,0 +1,2 @@ |
|||
* |
|||
!.gitignore |
@ -0,0 +1,52 @@ |
|||
{ |
|||
"name": "laravel/laravel", |
|||
"description": "The Laravel Framework.", |
|||
"keywords": ["framework", "laravel"], |
|||
"license": "MIT", |
|||
"type": "project", |
|||
"require": { |
|||
"php": ">=5.5.9", |
|||
"laravel/framework": "5.2.*" |
|||
}, |
|||
"require-dev": { |
|||
"fzaninotto/faker": "~1.4", |
|||
"mockery/mockery": "0.9.*", |
|||
"phpunit/phpunit": "~4.0", |
|||
"symfony/css-selector": "2.8.*|3.0.*", |
|||
"symfony/dom-crawler": "2.8.*|3.0.*", |
|||
"3f/pygmentize": "^1.1", |
|||
"laravel/homestead": "^3.0" |
|||
}, |
|||
"autoload": { |
|||
"classmap": [ |
|||
"database" |
|||
], |
|||
"psr-4": { |
|||
"App\\": "app/" |
|||
} |
|||
}, |
|||
"autoload-dev": { |
|||
"classmap": [ |
|||
"tests/TestCase.php" |
|||
] |
|||
}, |
|||
"scripts": { |
|||
"post-root-package-install": [ |
|||
"php -r \"copy('.env.example', '.env');\"" |
|||
], |
|||
"post-create-project-cmd": [ |
|||
"php artisan key:generate" |
|||
], |
|||
"post-install-cmd": [ |
|||
"Illuminate\\Foundation\\ComposerScripts::postInstall", |
|||
"php artisan optimize" |
|||
], |
|||
"post-update-cmd": [ |
|||
"Illuminate\\Foundation\\ComposerScripts::postUpdate", |
|||
"php artisan optimize" |
|||
] |
|||
}, |
|||
"config": { |
|||
"preferred-install": "dist" |
|||
} |
|||
} |
3105
composer.lock
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,207 @@ |
|||
<?php |
|||
|
|||
return [ |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Application Environment |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| This value determines the "environment" your application is currently |
|||
| running in. This may determine how you prefer to configure various |
|||
| services your application utilizes. Set this in your ".env" file. |
|||
| |
|||
*/ |
|||
|
|||
'env' => env('APP_ENV', 'development'), |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| 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' => env('APP_DEBUG', true), |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| 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 |
|||
| your application so that it is used when running Artisan tasks. |
|||
| |
|||
*/ |
|||
|
|||
'url' => env('APP_URL', 'http://pastethingy.app'), |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Application Timezone |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| 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 |
|||
| ahead and set this to a sensible default for you out of the box. |
|||
| |
|||
*/ |
|||
|
|||
'timezone' => 'UTC', |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Application Locale Configuration |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| The application locale determines the default locale that will be used |
|||
| by the translation service provider. You are free to set this value |
|||
| to any of the locales which will be supported by the application. |
|||
| |
|||
*/ |
|||
|
|||
'locale' => 'en', |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Application Fallback Locale |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| 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 |
|||
| the language folders that are provided through your application. |
|||
| |
|||
*/ |
|||
|
|||
'fallback_locale' => 'en', |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Encryption Key |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| This key is used by the Illuminate encrypter service and should be set |
|||
| to a random, 32 character string, otherwise these encrypted strings |
|||
| will not be safe. Please do this before deploying an application! |
|||
| |
|||
*/ |
|||
|
|||
'key' => env('APP_KEY'), |
|||
|
|||
'cipher' => 'AES-256-CBC', |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Logging Configuration |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| Here you may configure the log settings for your application. Out of |
|||
| the box, Laravel uses the Monolog PHP logging library. This gives |
|||
| you a variety of powerful log handlers / formatters to utilize. |
|||
| |
|||
| Available Settings: "single", "daily", "syslog", "errorlog" |
|||
| |
|||
*/ |
|||
|
|||
'log' => env('APP_LOG', 'single'), |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Autoloaded Service Providers |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| The service providers listed here will be automatically loaded on the |
|||
| request to your application. Feel free to add your own services to |
|||
| this array to grant expanded functionality to your applications. |
|||
| |
|||
*/ |
|||
|
|||
'providers' => [ |
|||
|
|||
/* |
|||
* Laravel Framework Service Providers... |
|||
*/ |
|||
Illuminate\Auth\AuthServiceProvider::class, |
|||
Illuminate\Broadcasting\BroadcastServiceProvider::class, |
|||
Illuminate\Bus\BusServiceProvider::class, |
|||
Illuminate\Cache\CacheServiceProvider::class, |
|||
Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class, |
|||
Illuminate\Cookie\CookieServiceProvider::class, |
|||
Illuminate\Database\DatabaseServiceProvider::class, |
|||
Illuminate\Encryption\EncryptionServiceProvider::class, |
|||
Illuminate\Filesystem\FilesystemServiceProvider::class, |
|||
Illuminate\Foundation\Providers\FoundationServiceProvider::class, |
|||
Illuminate\Hashing\HashServiceProvider::class, |
|||
Illuminate\Mail\MailServiceProvider::class, |
|||
Illuminate\Pagination\PaginationServiceProvider::class, |
|||
Illuminate\Pipeline\PipelineServiceProvider::class, |
|||
Illuminate\Queue\QueueServiceProvider::class, |
|||
Illuminate\Redis\RedisServiceProvider::class, |
|||
Illuminate\Auth\Passwords\PasswordResetServiceProvider::class, |
|||
Illuminate\Session\SessionServiceProvider::class, |
|||
Illuminate\Translation\TranslationServiceProvider::class, |
|||
Illuminate\Validation\ValidationServiceProvider::class, |
|||
Illuminate\View\ViewServiceProvider::class, |
|||
|
|||
/* |
|||
* Application Service Providers... |
|||
*/ |
|||
App\Providers\AppServiceProvider::class, |
|||
App\Providers\AuthServiceProvider::class, |
|||
App\Providers\EventServiceProvider::class, |
|||
App\Providers\RouteServiceProvider::class, |
|||
|
|||
], |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Class Aliases |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| This array of class aliases will be registered when this application |
|||
| is started. However, feel free to register as many as you wish as |
|||
| the aliases are "lazy" loaded so they don't hinder performance. |
|||
| |
|||
*/ |
|||
|
|||
'aliases' => [ |
|||
|
|||
'App' => Illuminate\Support\Facades\App::class, |
|||
'Artisan' => Illuminate\Support\Facades\Artisan::class, |
|||
'Auth' => Illuminate\Support\Facades\Auth::class, |
|||
'Blade' => Illuminate\Support\Facades\Blade::class, |
|||
'Cache' => Illuminate\Support\Facades\Cache::class, |
|||
'Config' => Illuminate\Support\Facades\Config::class, |
|||
'Cookie' => Illuminate\Support\Facades\Cookie::class, |
|||
'Crypt' => Illuminate\Support\Facades\Crypt::class, |
|||
'DB' => Illuminate\Support\Facades\DB::class, |
|||
'Eloquent' => Illuminate\Database\Eloquent\Model::class, |
|||
'Event' => Illuminate\Support\Facades\Event::class, |
|||
'File' => Illuminate\Support\Facades\File::class, |
|||
'Gate' => Illuminate\Support\Facades\Gate::class, |
|||
'Hash' => Illuminate\Support\Facades\Hash::class, |
|||
'Lang' => Illuminate\Support\Facades\Lang::class, |
|||
'Log' => Illuminate\Support\Facades\Log::class, |
|||
'Mail' => Illuminate\Support\Facades\Mail::class, |
|||
'Password' => Illuminate\Support\Facades\Password::class, |
|||
'Queue' => Illuminate\Support\Facades\Queue::class, |
|||
'Redirect' => Illuminate\Support\Facades\Redirect::class, |
|||
'Redis' => Illuminate\Support\Facades\Redis::class, |
|||
'Request' => Illuminate\Support\Facades\Request::class, |
|||
'Response' => Illuminate\Support\Facades\Response::class, |
|||
'Route' => Illuminate\Support\Facades\Route::class, |
|||
'Schema' => Illuminate\Support\Facades\Schema::class, |
|||
'Session' => Illuminate\Support\Facades\Session::class, |
|||
'Storage' => Illuminate\Support\Facades\Storage::class, |
|||
'URL' => Illuminate\Support\Facades\URL::class, |
|||
'Validator' => Illuminate\Support\Facades\Validator::class, |
|||
'View' => Illuminate\Support\Facades\View::class, |
|||
|
|||
], |
|||
|
|||
]; |
@ -0,0 +1,107 @@ |
|||
<?php |
|||
|
|||
return [ |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Authentication Defaults |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| This option controls the default authentication "guard" and password |
|||
| reset options for your application. You may change these defaults |
|||
| as required, but they're a perfect start for most applications. |
|||
| |
|||
*/ |
|||
|
|||
'defaults' => [ |
|||
'guard' => 'web', |
|||
'passwords' => 'users', |
|||
], |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Authentication Guards |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| Next, you may define every authentication guard for your application. |
|||
| Of course, a great default configuration has been defined for you |
|||
| here which uses session storage and the Eloquent user provider. |
|||
| |
|||
| All authentication drivers have a user provider. This defines how the |
|||
| users are actually retrieved out of your database or other storage |
|||
| mechanisms used by this application to persist your user's data. |
|||
| |
|||
| Supported: "session", "token" |
|||
| |
|||
*/ |
|||
|
|||
'guards' => [ |
|||
'web' => [ |
|||
'driver' => 'session', |
|||
'provider' => 'users', |
|||
], |
|||
|
|||
'api' => [ |
|||
'driver' => 'token', |
|||
'provider' => 'users', |
|||
], |
|||
], |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| User Providers |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| All authentication drivers have a user provider. This defines how the |
|||
| users are actually retrieved out of your database or other storage |
|||
| mechanisms used by this application to persist your user's data. |
|||
| |
|||
| If you have multiple user tables or models you may configure multiple |
|||
| sources which represent each model / table. These sources may then |
|||
| be assigned to any extra authentication guards you have defined. |
|||
| |
|||
| Supported: "database", "eloquent" |
|||
| |
|||
*/ |
|||
|
|||
'providers' => [ |
|||
'users' => [ |
|||
'driver' => 'eloquent', |
|||
'model' => App\User::class, |
|||
], |
|||
|
|||
// 'users' => [
|
|||
// 'driver' => 'database',
|
|||
// 'table' => 'users',
|
|||
// ],
|
|||
], |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Resetting Passwords |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| Here you may set the options for resetting passwords including the view |
|||
| that is your password reset e-mail. You may also set the name of the |
|||
| table that maintains all of the reset tokens for your application. |
|||
| |
|||
| You may specify multiple password reset configurations if you have more |
|||
| than one user table or model in the application and you want to have |
|||
| separate password reset settings based on the specific user types. |
|||
| |
|||
| The expire time is the number of minutes that the reset token should be |
|||
| considered valid. This security feature keeps tokens short-lived so |
|||
| they have less time to be guessed. You may change this as needed. |
|||
| |
|||
*/ |
|||
|
|||
'passwords' => [ |
|||
'users' => [ |
|||
'provider' => 'users', |
|||
'email' => 'auth.emails.password', |
|||
'table' => 'password_resets', |
|||
'expire' => 60, |
|||
], |
|||
], |
|||
|
|||
]; |
@ -0,0 +1,52 @@ |
|||
<?php |
|||
|
|||
return [ |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Default Broadcaster |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| This option controls the default broadcaster that will be used by the |
|||
| framework when an event needs to be broadcast. You may set this to |
|||
| any of the connections defined in the "connections" array below. |
|||
| |
|||
*/ |
|||
|
|||
'default' => env('BROADCAST_DRIVER', 'pusher'), |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Broadcast Connections |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| Here you may define all of the broadcast connections that will be used |
|||
| to broadcast events to other systems or over websockets. Samples of |
|||
| each available type of connection are provided inside this array. |
|||
| |
|||
*/ |
|||
|
|||
'connections' => [ |
|||
|
|||
'pusher' => [ |
|||
'driver' => 'pusher', |
|||
'key' => env('PUSHER_KEY'), |
|||
'secret' => env('PUSHER_SECRET'), |
|||
'app_id' => env('PUSHER_APP_ID'), |
|||
'options' => [ |
|||
//
|
|||
], |
|||
], |
|||
|
|||
'redis' => [ |
|||
'driver' => 'redis', |
|||
'connection' => 'default', |
|||
], |
|||
|
|||
'log' => [ |
|||
'driver' => 'log', |
|||
], |
|||
|
|||
], |
|||
|
|||
]; |
@ -0,0 +1,81 @@ |
|||
<?php |
|||
|
|||
return [ |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Default Cache Store |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| This option controls the default cache connection that gets used while |
|||
| using this caching library. This connection is used when another is |
|||
| not explicitly specified when executing a given caching function. |
|||
| |
|||
*/ |
|||
|
|||
'default' => env('CACHE_DRIVER', 'file'), |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| 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. |
|||
| |
|||
*/ |
|||
|
|||
'stores' => [ |
|||
|
|||
'apc' => [ |
|||
'driver' => 'apc', |
|||
], |
|||
|
|||
'array' => [ |
|||
'driver' => 'array', |
|||
], |
|||
|
|||
'database' => [ |
|||
'driver' => 'database', |
|||
'table' => 'cache', |
|||
'connection' => null, |
|||
], |
|||
|
|||
'file' => [ |
|||
'driver' => 'file', |
|||
'path' => storage_path('framework/cache'), |
|||
], |
|||
|
|||
'memcached' => [ |
|||
'driver' => 'memcached', |
|||
'servers' => [ |
|||
[ |
|||
'host' => env('MEMCACHED_HOST', '127.0.0.1'), |
|||
'port' => env('MEMCACHED_PORT', 11211), |
|||
'weight' => 100, |
|||
], |
|||
], |
|||
], |
|||
|
|||
'redis' => [ |
|||
'driver' => 'redis', |
|||
'connection' => 'default', |
|||
], |
|||
|
|||
], |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Cache Key Prefix |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| 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 |
|||
| value to get prefixed to all our keys so we can avoid collisions. |
|||
| |
|||
*/ |
|||
|
|||
'prefix' => 'laravel', |
|||
|
|||
]; |
@ -0,0 +1,35 @@ |
|||
<?php |
|||
|
|||
return [ |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Additional Compiled Classes |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| Here you may specify additional classes to include in the compiled file |
|||
| generated by the `artisan optimize` command. These should be classes |
|||
| that are included on basically every request into the application. |
|||
| |
|||
*/ |
|||
|
|||
'files' => [ |
|||
//
|
|||
], |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Compiled File Providers |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| Here you may list service providers which define a "compiles" function
|
|||
| that returns additional files that should be compiled, providing an |
|||
| easy way to get common files from any packages you are utilizing. |
|||
| |
|||
*/ |
|||
|
|||
'providers' => [ |
|||
//
|
|||
], |
|||
|
|||
]; |
@ -0,0 +1,76 @@ |
|||
<?php |
|||
|
|||
return [ |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| PDO Fetch Style |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| By default, database results will be returned as instances of the PHP |
|||
| stdClass object; however, you may desire to retrieve records in an |
|||
| array format for simplicity. Here you can tweak the fetch style. |
|||
| |
|||
*/ |
|||
|
|||
'fetch' => PDO::FETCH_CLASS, |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Default Database Connection Name |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| Here you may specify which of the database connections below you wish |
|||
| to use as your default connection for all database work. Of course |
|||
| you may use many connections at once using the Database library. |
|||
| |
|||
*/ |
|||
|
|||
'default' => env('DB_CONNECTION', 'postgres'), |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Database Connections |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| Here are each of the database connections setup for your application. |
|||
| Of course, examples of configuring each database platform that is |
|||
| supported by Laravel is shown below to make development simple. |
|||
| |
|||
| |
|||
| All database work in Laravel is done through the PHP PDO facilities |
|||
| so make sure you have the driver for your particular database of |
|||
| choice installed on your machine before you begin development. |
|||
| |
|||
*/ |
|||
|
|||
'connections' => [ |
|||
|
|||
'postgres' => [ |
|||
'driver' => 'pgsql', |
|||
'host' => env('DB_HOST', 'localhost'), |
|||
'port' => env('DB_PORT', '5432'), |
|||
'database' => env('DB_DATABASE', 'pastethingy'), |
|||
'username' => env('DB_USERNAME', 'homestead'), |
|||
'password' => env('DB_PASSWORD', 'secret'), |
|||
'charset' => 'utf8', |
|||
'prefix' => '', |
|||
'schema' => 'public', |
|||
], |
|||
|
|||
], |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| 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 in the database. |
|||
| |
|||
*/ |
|||
|
|||
'migrations' => 'migrations', |
|||
|
|||
]; |
@ -0,0 +1,67 @@ |
|||
<?php |
|||
|
|||
return [ |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Default Filesystem Disk |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| 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 |
|||
| based drivers are available for your choosing. Just store away! |
|||
| |
|||
| Supported: "local", "ftp", "s3", "rackspace" |
|||
| |
|||
*/ |
|||
|
|||
'default' => 'local', |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Default Cloud Filesystem Disk |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| Many applications store files both locally and in the cloud. For this |
|||
| reason, you may specify a default "cloud" driver here. This driver |
|||
| will be bound as the Cloud disk implementation in the container. |
|||
| |
|||
*/ |
|||
|
|||
'cloud' => 's3', |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Filesystem Disks |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| Here you may configure as many filesystem "disks" as you wish, and you |
|||
| may even configure multiple disks of the same driver. Defaults have |
|||
| been setup for each driver as an example of the required options. |
|||
| |
|||
*/ |
|||
|
|||
'disks' => [ |
|||
|
|||
'local' => [ |
|||
'driver' => 'local', |
|||
'root' => storage_path('app'), |
|||
], |
|||
|
|||
'public' => [ |
|||
'driver' => 'local', |
|||
'root' => storage_path('app/public'), |
|||
'visibility' => 'public', |
|||
], |
|||
|
|||
's3' => [ |
|||
'driver' => 's3', |
|||
'key' => 'your-key', |
|||
'secret' => 'your-secret', |
|||
'region' => 'your-region', |
|||
'bucket' => 'your-bucket', |
|||
], |
|||
|
|||
], |
|||
|
|||
]; |
@ -0,0 +1,112 @@ |
|||
<?php |
|||
|
|||
return [ |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Mail Driver |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| 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 |
|||
| your application here. By default, Laravel is setup for SMTP mail. |
|||
| |
|||
| Supported: "smtp", "mail", "sendmail", "mailgun", "mandrill", |
|||
| "ses", "sparkpost", "log" |
|||
| |
|||
*/ |
|||
|
|||
'driver' => env('MAIL_DRIVER', 'smtp'), |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| SMTP Host Address |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| Here you may provide the host address of the SMTP server used by your |
|||
| applications. A default option is provided that is compatible with |
|||
| the Mailgun mail service which will provide reliable deliveries. |
|||
| |
|||
*/ |
|||
|
|||
'host' => env('MAIL_HOST', 'smtp.mailgun.org'), |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| SMTP Host Port |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| 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 |
|||
| stay compatible with the Mailgun e-mail application by default. |
|||
| |
|||
*/ |
|||
|
|||
'port' => env('MAIL_PORT', 587), |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Global "From" Address |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| 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 |
|||
| used globally for all e-mails that are sent by your application. |
|||
| |
|||
*/ |
|||
|
|||
'from' => ['address' => null, 'name' => null], |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| E-Mail Encryption Protocol |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| Here you may specify the encryption protocol that should be used when |
|||
| the application send e-mail messages. A sensible default using the |
|||
| transport layer security protocol should provide great security. |
|||
| |
|||
*/ |
|||
|
|||
'encryption' => env('MAIL_ENCRYPTION', 'tls'), |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| SMTP Server Username |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| If your SMTP server requires a username for authentication, you should |
|||
| set it here. This will get used to authenticate with your server on |
|||
| connection. You may also set the "password" value below this one. |
|||
| |
|||
*/ |
|||
|
|||
'username' => env('MAIL_USERNAME'), |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| SMTP Server Password |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| 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 |
|||
| connection so that the application will be able to send messages. |
|||
| |
|||
*/ |
|||
|
|||
'password' => env('MAIL_PASSWORD'), |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Sendmail System Path |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| 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 |
|||
| been provided here, which will work well on most of your systems. |
|||
| |
|||
*/ |
|||
|
|||
'sendmail' => '/usr/sbin/sendmail -bs', |
|||
|
|||
]; |
@ -0,0 +1,85 @@ |
|||
<?php |
|||
|
|||
return [ |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Default Queue Driver |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| 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 |
|||
| syntax for each one. Here you may set the default queue driver. |
|||
| |
|||
| Supported: "null", "sync", "database", "beanstalkd", "sqs", "redis" |
|||
| |
|||
*/ |
|||
|
|||
'default' => env('QUEUE_DRIVER', 'sync'), |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Queue Connections |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| Here you may configure the connection information for each server that |
|||
| is used by your application. A default configuration has been added |
|||
| for each back-end shipped with Laravel. You are free to add more. |
|||
| |
|||
*/ |
|||
|
|||
'connections' => [ |
|||
|
|||
'sync' => [ |
|||
'driver' => 'sync', |
|||
], |
|||
|
|||
'database' => [ |
|||
'driver' => 'database', |
|||
'table' => 'jobs', |
|||
'queue' => 'default', |
|||
'expire' => 60, |
|||
], |
|||
|
|||
'beanstalkd' => [ |
|||
'driver' => 'beanstalkd', |
|||
'host' => 'localhost', |
|||
'queue' => 'default', |
|||
'ttr' => 60, |
|||
], |
|||
|
|||
'sqs' => [ |
|||
'driver' => 'sqs', |
|||
'key' => 'your-public-key', |
|||
'secret' => 'your-secret-key', |
|||
'prefix' => 'https://sqs.us-east-1.amazonaws.com/your-account-id', |
|||
'queue' => 'your-queue-name', |
|||
'region' => 'us-east-1', |
|||
], |
|||
|
|||
'redis' => [ |
|||
'driver' => 'redis', |
|||
'connection' => 'default', |
|||
'queue' => 'default', |
|||
'expire' => 60, |
|||
], |
|||
|
|||
], |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Failed Queue Jobs |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| 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 |
|||
| have failed. You may change them to any database / table you wish. |
|||
| |
|||
*/ |
|||
|
|||
'failed' => [ |
|||
'database' => env('DB_CONNECTION', 'mysql'), |
|||
'table' => 'failed_jobs', |
|||
], |
|||
|
|||
]; |
@ -0,0 +1,38 @@ |
|||
<?php |
|||
|
|||
return [ |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Third Party Services |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| This file is for storing the credentials for third party services such |
|||
| as Stripe, Mailgun, Mandrill, and others. This file provides a sane |
|||
| default location for this type of information, allowing packages |
|||
| to have a conventional place to find your various credentials. |
|||
| |
|||
*/ |
|||
|
|||
'mailgun' => [ |
|||
'domain' => env('MAILGUN_DOMAIN'), |
|||
'secret' => env('MAILGUN_SECRET'), |
|||
], |
|||
|
|||
'ses' => [ |
|||
'key' => env('SES_KEY'), |
|||
'secret' => env('SES_SECRET'), |
|||
'region' => 'us-east-1', |
|||
], |
|||
|
|||
'sparkpost' => [ |
|||
'secret' => env('SPARKPOST_SECRET'), |
|||
], |
|||
|
|||
'stripe' => [ |
|||
'model' => App\User::class, |
|||
'key' => env('STRIPE_KEY'), |
|||
'secret' => env('STRIPE_SECRET'), |
|||
], |
|||
|
|||
]; |
@ -0,0 +1,166 @@ |
|||
<?php |
|||
|
|||
return [ |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Default Session Driver |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| This option controls the default session "driver" that will be used on |
|||
| requests. By default, we will use the lightweight native driver but |
|||
| you may specify any of the other wonderful drivers provided here. |
|||
| |
|||
| Supported: "file", "cookie", "database", "apc", |
|||
| "memcached", "redis", "array" |
|||
| |
|||
*/ |
|||
|
|||
'driver' => env('SESSION_DRIVER', 'file'), |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| 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 immediately expire on the browser closing, set that option. |
|||
| |
|||
*/ |
|||
|
|||
'lifetime' => 120, |
|||
|
|||
'expire_on_close' => false, |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Session Encryption |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| 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 |
|||
| automatically by Laravel and you can use the Session like normal. |
|||
| |
|||
*/ |
|||
|
|||
'encrypt' => false, |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Session File Location |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| 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 |
|||
| location may be specified. This is only needed for file sessions. |
|||
| |
|||
*/ |
|||
|
|||
'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' => null, |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| Session Database Table |
|||
|-------------------------------------------------------------------------- |
|||
| |
|||
| When using the "database" session driver, you may specify the table we |
|||
| should use to manage the sessions. Of course, a sensible default is |
|||
| provided for you; however, you are free to change this as needed. |
|||
| |
|||
*/ |
|||
|
|||
'table' => 'sessions', |
|||
|
|||
/* |
|||
|-------------------------------------------------------------------------- |
|||
| 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 cookie used to identify a session |
|||
| instance by ID. The name specified here will get used every time a |
|||
| new session cookie is created by the framework for every driver. |
|||