Browse Source

Initial commit

Les De Ridder 2 years ago
commit
617b9a9bf0
61 changed files with 5141 additions and 0 deletions
  1. 3
    0
      .gitattributes
  2. 7
    0
      .gitignore
  3. 28
    0
      Vagrantfile
  4. 30
    0
      app/Console/Kernel.php
  5. 10
    0
      app/Deletion.php
  6. 8
    0
      app/Events/Event.php
  7. 50
    0
      app/Exceptions/Handler.php
  8. 14
    0
      app/Http/Controllers/Controller.php
  9. 42
    0
      app/Http/Kernel.php
  10. 10
    0
      app/Http/Requests/Request.php
  11. 16
    0
      app/Http/routes.php
  12. 21
    0
      app/Jobs/Job.php
  13. 1
    0
      app/Listeners/.gitkeep
  14. 10
    0
      app/Paste.php
  15. 1
    0
      app/Policies/.gitkeep
  16. 28
    0
      app/Providers/AppServiceProvider.php
  17. 31
    0
      app/Providers/AuthServiceProvider.php
  18. 33
    0
      app/Providers/EventServiceProvider.php
  19. 61
    0
      app/Providers/RouteServiceProvider.php
  20. 51
    0
      artisan
  21. 55
    0
      bootstrap/app.php
  22. 34
    0
      bootstrap/autoload.php
  23. 2
    0
      bootstrap/cache/.gitignore
  24. 52
    0
      composer.json
  25. 3105
    0
      composer.lock
  26. 207
    0
      config/app.php
  27. 107
    0
      config/auth.php
  28. 52
    0
      config/broadcasting.php
  29. 81
    0
      config/cache.php
  30. 35
    0
      config/compile.php
  31. 76
    0
      config/database.php
  32. 67
    0
      config/filesystems.php
  33. 112
    0
      config/mail.php
  34. 85
    0
      config/queue.php
  35. 38
    0
      config/services.php
  36. 166
    0
      config/session.php
  37. 33
    0
      config/view.php
  38. 1
    0
      database/.gitignore
  39. 13
    0
      database/factories/ModelFactory.php
  40. 1
    0
      database/migrations/.gitkeep
  41. 34
    0
      database/migrations/2016_05_27_230057_create_pastes_table.php
  42. 35
    0
      database/migrations/2016_05_28_000118_create_deletions_table.php
  43. 1
    0
      database/seeds/.gitkeep
  44. 16
    0
      database/seeds/DatabaseSeeder.php
  45. 16
    0
      gulpfile.js
  46. 12
    0
      package.json
  47. 30
    0
      phpunit.xml
  48. 58
    0
      public/index.php
  49. 2
    0
      resources/assets/sass/app.scss
  50. 47
    0
      resources/views/errors/503.blade.php
  51. 1
    0
      resources/views/vendor/.gitkeep
  52. 45
    0
      resources/views/welcome.blade.php
  53. 21
    0
      server.php
  54. 3
    0
      storage/app/.gitignore
  55. 2
    0
      storage/app/public/.gitignore
  56. 8
    0
      storage/framework/.gitignore
  57. 2
    0
      storage/framework/cache/.gitignore
  58. 2
    0
      storage/framework/sessions/.gitignore
  59. 2
    0
      storage/framework/views/.gitignore
  60. 2
    0
      storage/logs/.gitignore
  61. 25
    0
      tests/TestCase.php

+ 3
- 0
.gitattributes View File

@@ -0,0 +1,3 @@
1
+* text=auto
2
+*.css linguist-vendored
3
+*.scss linguist-vendored

+ 7
- 0
.gitignore View File

@@ -0,0 +1,7 @@
1
+/vendor
2
+/node_modules
3
+/public/storage
4
+Homestead.yaml
5
+Homestead.json
6
+.env
7
+.vagrant

+ 28
- 0
Vagrantfile View File

@@ -0,0 +1,28 @@
1
+require 'json'
2
+require 'yaml'
3
+
4
+VAGRANTFILE_API_VERSION ||= "2"
5
+confDir = $confDir ||= File.expand_path("vendor/laravel/homestead", File.dirname(__FILE__))
6
+
7
+homesteadYamlPath = "Homestead.yaml"
8
+homesteadJsonPath = "Homestead.json"
9
+afterScriptPath = "after.sh"
10
+aliasesPath = "aliases"
11
+
12
+require File.expand_path(confDir + '/scripts/homestead.rb')
13
+
14
+Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
15
+    if File.exists? aliasesPath then
16
+        config.vm.provision "file", source: aliasesPath, destination: "~/.bash_aliases"
17
+    end
18
+
19
+    if File.exists? homesteadYamlPath then
20
+        Homestead.configure(config, YAML::load(File.read(homesteadYamlPath)))
21
+    elsif File.exists? homesteadJsonPath then
22
+        Homestead.configure(config, JSON.parse(File.read(homesteadJsonPath)))
23
+    end
24
+
25
+    if File.exists? afterScriptPath then
26
+        config.vm.provision "shell", path: afterScriptPath
27
+    end
28
+end

+ 30
- 0
app/Console/Kernel.php View File

@@ -0,0 +1,30 @@
1
+<?php
2
+
3
+namespace App\Console;
4
+
5
+use Illuminate\Console\Scheduling\Schedule;
6
+use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
7
+
8
+class Kernel extends ConsoleKernel
9
+{
10
+    /**
11
+     * The Artisan commands provided by your application.
12
+     *
13
+     * @var array
14
+     */
15
+    protected $commands = [
16
+        // Commands\Inspire::class,
17
+    ];
18
+
19
+    /**
20
+     * Define the application's command schedule.
21
+     *
22
+     * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
23
+     * @return void
24
+     */
25
+    protected function schedule(Schedule $schedule)
26
+    {
27
+        // $schedule->command('inspire')
28
+        //          ->hourly();
29
+    }
30
+}

+ 10
- 0
app/Deletion.php View File

@@ -0,0 +1,10 @@
1
+<?php
2
+
3
+namespace App;
4
+
5
+use Illuminate\Database\Eloquent\Model;
6
+
7
+class Deletion extends Model
8
+{
9
+    //
10
+}

+ 8
- 0
app/Events/Event.php View File

@@ -0,0 +1,8 @@
1
+<?php
2
+
3
+namespace App\Events;
4
+
5
+abstract class Event
6
+{
7
+    //
8
+}

+ 50
- 0
app/Exceptions/Handler.php View File

@@ -0,0 +1,50 @@
1
+<?php
2
+
3
+namespace App\Exceptions;
4
+
5
+use Exception;
6
+use Illuminate\Validation\ValidationException;
7
+use Illuminate\Auth\Access\AuthorizationException;
8
+use Illuminate\Database\Eloquent\ModelNotFoundException;
9
+use Symfony\Component\HttpKernel\Exception\HttpException;
10
+use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
11
+
12
+class Handler extends ExceptionHandler
13
+{
14
+    /**
15
+     * A list of the exception types that should not be reported.
16
+     *
17
+     * @var array
18
+     */
19
+    protected $dontReport = [
20
+        AuthorizationException::class,
21
+        HttpException::class,
22
+        ModelNotFoundException::class,
23
+        ValidationException::class,
24
+    ];
25
+
26
+    /**
27
+     * Report or log an exception.
28
+     *
29
+     * This is a great spot to send exceptions to Sentry, Bugsnag, etc.
30
+     *
31
+     * @param  \Exception  $e
32
+     * @return void
33
+     */
34
+    public function report(Exception $e)
35
+    {
36
+        parent::report($e);
37
+    }
38
+
39
+    /**
40
+     * Render an exception into an HTTP response.
41
+     *
42
+     * @param  \Illuminate\Http\Request  $request
43
+     * @param  \Exception  $e
44
+     * @return \Illuminate\Http\Response
45
+     */
46
+    public function render($request, Exception $e)
47
+    {
48
+        return parent::render($request, $e);
49
+    }
50
+}

+ 14
- 0
app/Http/Controllers/Controller.php View File

@@ -0,0 +1,14 @@
1
+<?php
2
+
3
+namespace App\Http\Controllers;
4
+
5
+use Illuminate\Foundation\Bus\DispatchesJobs;
6
+use Illuminate\Routing\Controller as BaseController;
7
+use Illuminate\Foundation\Validation\ValidatesRequests;
8
+use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
9
+use Illuminate\Foundation\Auth\Access\AuthorizesResources;
10
+
11
+class Controller extends BaseController
12
+{
13
+    use AuthorizesRequests, AuthorizesResources, DispatchesJobs, ValidatesRequests;
14
+}

+ 42
- 0
app/Http/Kernel.php View File

@@ -0,0 +1,42 @@
1
+<?php
2
+
3
+namespace App\Http;
4
+
5
+use Illuminate\Foundation\Http\Kernel as HttpKernel;
6
+
7
+class Kernel extends HttpKernel
8
+{
9
+    /**
10
+     * The application's global HTTP middleware stack.
11
+     *
12
+     * These middleware are run during every request to your application.
13
+     *
14
+     * @var array
15
+     */
16
+    protected $middleware = [
17
+        \Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
18
+    ];
19
+
20
+    /**
21
+     * The application's route middleware groups.
22
+     *
23
+     * @var array
24
+     */
25
+    protected $middlewareGroups = [
26
+        'web' => [
27
+        ],
28
+
29
+        'api' => [
30
+        ],
31
+    ];
32
+
33
+    /**
34
+     * The application's route middleware.
35
+     *
36
+     * These middleware may be assigned to groups or used individually.
37
+     *
38
+     * @var array
39
+     */
40
+    protected $routeMiddleware = [
41
+    ];
42
+}

+ 10
- 0
app/Http/Requests/Request.php View File

@@ -0,0 +1,10 @@
1
+<?php
2
+
3
+namespace App\Http\Requests;
4
+
5
+use Illuminate\Foundation\Http\FormRequest;
6
+
7
+abstract class Request extends FormRequest
8
+{
9
+    //
10
+}

+ 16
- 0
app/Http/routes.php View File

@@ -0,0 +1,16 @@
1
+<?php
2
+
3
+/*
4
+|--------------------------------------------------------------------------
5
+| Application Routes
6
+|--------------------------------------------------------------------------
7
+|
8
+| Here is where you can register all of the routes for an application.
9
+| It's a breeze. Simply tell Laravel the URIs it should respond to
10
+| and give it the controller to call when that URI is requested.
11
+|
12
+*/
13
+
14
+Route::get('/', function () {
15
+    return view('welcome');
16
+});

+ 21
- 0
app/Jobs/Job.php View File

@@ -0,0 +1,21 @@
1
+<?php
2
+
3
+namespace App\Jobs;
4
+
5
+use Illuminate\Bus\Queueable;
6
+
7
+abstract class Job
8
+{
9
+    /*
10
+    |--------------------------------------------------------------------------
11
+    | Queueable Jobs
12
+    |--------------------------------------------------------------------------
13
+    |
14
+    | This job base class provides a central location to place any logic that
15
+    | is shared across all of your jobs. The trait included with the class
16
+    | provides access to the "onQueue" and "delay" queue helper methods.
17
+    |
18
+    */
19
+
20
+    use Queueable;
21
+}

+ 1
- 0
app/Listeners/.gitkeep View File

@@ -0,0 +1 @@
1
+

+ 10
- 0
app/Paste.php View File

@@ -0,0 +1,10 @@
1
+<?php
2
+
3
+namespace App;
4
+
5
+use Illuminate\Database\Eloquent\Model;
6
+
7
+class Paste extends Model
8
+{
9
+    //
10
+}

+ 1
- 0
app/Policies/.gitkeep View File

@@ -0,0 +1 @@
1
+

+ 28
- 0
app/Providers/AppServiceProvider.php View File

@@ -0,0 +1,28 @@
1
+<?php
2
+
3
+namespace App\Providers;
4
+
5
+use Illuminate\Support\ServiceProvider;
6
+
7
+class AppServiceProvider extends ServiceProvider
8
+{
9
+    /**
10
+     * Bootstrap any application services.
11
+     *
12
+     * @return void
13
+     */
14
+    public function boot()
15
+    {
16
+        //
17
+    }
18
+
19
+    /**
20
+     * Register any application services.
21
+     *
22
+     * @return void
23
+     */
24
+    public function register()
25
+    {
26
+        //
27
+    }
28
+}

+ 31
- 0
app/Providers/AuthServiceProvider.php View File

@@ -0,0 +1,31 @@
1
+<?php
2
+
3
+namespace App\Providers;
4
+
5
+use Illuminate\Contracts\Auth\Access\Gate as GateContract;
6
+use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
7
+
8
+class AuthServiceProvider extends ServiceProvider
9
+{
10
+    /**
11
+     * The policy mappings for the application.
12
+     *
13
+     * @var array
14
+     */
15
+    protected $policies = [
16
+        'App\Model' => 'App\Policies\ModelPolicy',
17
+    ];
18
+
19
+    /**
20
+     * Register any application authentication / authorization services.
21
+     *
22
+     * @param  \Illuminate\Contracts\Auth\Access\Gate  $gate
23
+     * @return void
24
+     */
25
+    public function boot(GateContract $gate)
26
+    {
27
+        $this->registerPolicies($gate);
28
+
29
+        //
30
+    }
31
+}

+ 33
- 0
app/Providers/EventServiceProvider.php View File

@@ -0,0 +1,33 @@
1
+<?php
2
+
3
+namespace App\Providers;
4
+
5
+use Illuminate\Contracts\Events\Dispatcher as DispatcherContract;
6
+use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
7
+
8
+class EventServiceProvider extends ServiceProvider
9
+{
10
+    /**
11
+     * The event listener mappings for the application.
12
+     *
13
+     * @var array
14
+     */
15
+    protected $listen = [
16
+        'App\Events\SomeEvent' => [
17
+            'App\Listeners\EventListener',
18
+        ],
19
+    ];
20
+
21
+    /**
22
+     * Register any other events for your application.
23
+     *
24
+     * @param  \Illuminate\Contracts\Events\Dispatcher  $events
25
+     * @return void
26
+     */
27
+    public function boot(DispatcherContract $events)
28
+    {
29
+        parent::boot($events);
30
+
31
+        //
32
+    }
33
+}

+ 61
- 0
app/Providers/RouteServiceProvider.php View File

@@ -0,0 +1,61 @@
1
+<?php
2
+
3
+namespace App\Providers;
4
+
5
+use Illuminate\Routing\Router;
6
+use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
7
+
8
+class RouteServiceProvider extends ServiceProvider
9
+{
10
+    /**
11
+     * This namespace is applied to your controller routes.
12
+     *
13
+     * In addition, it is set as the URL generator's root namespace.
14
+     *
15
+     * @var string
16
+     */
17
+    protected $namespace = 'App\Http\Controllers';
18
+
19
+    /**
20
+     * Define your route model bindings, pattern filters, etc.
21
+     *
22
+     * @param  \Illuminate\Routing\Router  $router
23
+     * @return void
24
+     */
25
+    public function boot(Router $router)
26
+    {
27
+        //
28
+
29
+        parent::boot($router);
30
+    }
31
+
32
+    /**
33
+     * Define the routes for the application.
34
+     *
35
+     * @param  \Illuminate\Routing\Router  $router
36
+     * @return void
37
+     */
38
+    public function map(Router $router)
39
+    {
40
+        $this->mapWebRoutes($router);
41
+
42
+        //
43
+    }
44
+
45
+    /**
46
+     * Define the "web" routes for the application.
47
+     *
48
+     * These routes all receive session state, CSRF protection, etc.
49
+     *
50
+     * @param  \Illuminate\Routing\Router  $router
51
+     * @return void
52
+     */
53
+    protected function mapWebRoutes(Router $router)
54
+    {
55
+        $router->group([
56
+            'namespace' => $this->namespace, 'middleware' => 'web',
57
+        ], function ($router) {
58
+            require app_path('Http/routes.php');
59
+        });
60
+    }
61
+}

+ 51
- 0
artisan View File

@@ -0,0 +1,51 @@
1
+#!/usr/bin/env php
2
+<?php
3
+
4
+/*
5
+|--------------------------------------------------------------------------
6
+| Register The Auto Loader
7
+|--------------------------------------------------------------------------
8
+|
9
+| Composer provides a convenient, automatically generated class loader
10
+| for our application. We just need to utilize it! We'll require it
11
+| into the script here so that we do not have to worry about the
12
+| loading of any our classes "manually". Feels great to relax.
13
+|
14
+*/
15
+
16
+require __DIR__.'/bootstrap/autoload.php';
17
+
18
+$app = require_once __DIR__.'/bootstrap/app.php';
19
+
20
+/*
21
+|--------------------------------------------------------------------------
22
+| Run The Artisan Application
23
+|--------------------------------------------------------------------------
24
+|
25
+| When we run the console application, the current CLI command will be
26
+| executed in this console and the response sent back to a terminal
27
+| or another output device for the developers. Here goes nothing!
28
+|
29
+*/
30
+
31
+$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
32
+
33
+$status = $kernel->handle(
34
+    $input = new Symfony\Component\Console\Input\ArgvInput,
35
+    new Symfony\Component\Console\Output\ConsoleOutput
36
+);
37
+
38
+/*
39
+|--------------------------------------------------------------------------
40
+| Shutdown The Application
41
+|--------------------------------------------------------------------------
42
+|
43
+| Once Artisan has finished running. We will fire off the shutdown events
44
+| so that any final work may be done by the application before we shut
45
+| down the process. This is the last thing to happen to the request.
46
+|
47
+*/
48
+
49
+$kernel->terminate($input, $status);
50
+
51
+exit($status);

+ 55
- 0
bootstrap/app.php View File

@@ -0,0 +1,55 @@
1
+<?php
2
+
3
+/*
4
+|--------------------------------------------------------------------------
5
+| Create The Application
6
+|--------------------------------------------------------------------------
7
+|
8
+| The first thing we will do is create a new Laravel application instance
9
+| which serves as the "glue" for all the components of Laravel, and is
10
+| the IoC container for the system binding all of the various parts.
11
+|
12
+*/
13
+
14
+$app = new Illuminate\Foundation\Application(
15
+    realpath(__DIR__.'/../')
16
+);
17
+
18
+/*
19
+|--------------------------------------------------------------------------
20
+| Bind Important Interfaces
21
+|--------------------------------------------------------------------------
22
+|
23
+| Next, we need to bind some important interfaces into the container so
24
+| we will be able to resolve them when needed. The kernels serve the
25
+| incoming requests to this application from both the web and CLI.
26
+|
27
+*/
28
+
29
+$app->singleton(
30
+    Illuminate\Contracts\Http\Kernel::class,
31
+    App\Http\Kernel::class
32
+);
33
+
34
+$app->singleton(
35
+    Illuminate\Contracts\Console\Kernel::class,
36
+    App\Console\Kernel::class
37
+);
38
+
39
+$app->singleton(
40
+    Illuminate\Contracts\Debug\ExceptionHandler::class,
41
+    App\Exceptions\Handler::class
42
+);
43
+
44
+/*
45
+|--------------------------------------------------------------------------
46
+| Return The Application
47
+|--------------------------------------------------------------------------
48
+|
49
+| This script returns the application instance. The instance is given to
50
+| the calling script so we can separate the building of the instances
51
+| from the actual running of the application and sending responses.
52
+|
53
+*/
54
+
55
+return $app;

+ 34
- 0
bootstrap/autoload.php View File

@@ -0,0 +1,34 @@
1
+<?php
2
+
3
+define('LARAVEL_START', microtime(true));
4
+
5
+/*
6
+|--------------------------------------------------------------------------
7
+| Register The Composer Auto Loader
8
+|--------------------------------------------------------------------------
9
+|
10
+| Composer provides a convenient, automatically generated class loader
11
+| for our application. We just need to utilize it! We'll require it
12
+| into the script here so that we do not have to worry about the
13
+| loading of any our classes "manually". Feels great to relax.
14
+|
15
+*/
16
+
17
+require __DIR__.'/../vendor/autoload.php';
18
+
19
+/*
20
+|--------------------------------------------------------------------------
21
+| Include The Compiled Class File
22
+|--------------------------------------------------------------------------
23
+|
24
+| To dramatically increase your application's performance, you may use a
25
+| compiled class file which contains all of the classes commonly used
26
+| by a request. The Artisan "optimize" is used to create this file.
27
+|
28
+*/
29
+
30
+$compiledPath = __DIR__.'/cache/compiled.php';
31
+
32
+if (file_exists($compiledPath)) {
33
+    require $compiledPath;
34
+}

+ 2
- 0
bootstrap/cache/.gitignore View File

@@ -0,0 +1,2 @@
1
+*
2
+!.gitignore

+ 52
- 0
composer.json View File

@@ -0,0 +1,52 @@
1
+{
2
+    "name": "laravel/laravel",
3
+    "description": "The Laravel Framework.",
4
+    "keywords": ["framework", "laravel"],
5
+    "license": "MIT",
6
+    "type": "project",
7
+    "require": {
8
+        "php": ">=5.5.9",
9
+        "laravel/framework": "5.2.*"
10
+    },
11
+    "require-dev": {
12
+        "fzaninotto/faker": "~1.4",
13
+        "mockery/mockery": "0.9.*",
14
+        "phpunit/phpunit": "~4.0",
15
+        "symfony/css-selector": "2.8.*|3.0.*",
16
+        "symfony/dom-crawler": "2.8.*|3.0.*",
17
+        "3f/pygmentize": "^1.1",
18
+        "laravel/homestead": "^3.0"
19
+    },
20
+    "autoload": {
21
+        "classmap": [
22
+            "database"
23
+        ],
24
+        "psr-4": {
25
+            "App\\": "app/"
26
+        }
27
+    },
28
+    "autoload-dev": {
29
+        "classmap": [
30
+            "tests/TestCase.php"
31
+        ]
32
+    },
33
+    "scripts": {
34
+        "post-root-package-install": [
35
+            "php -r \"copy('.env.example', '.env');\""
36
+        ],
37
+        "post-create-project-cmd": [
38
+            "php artisan key:generate"
39
+        ],
40
+        "post-install-cmd": [
41
+            "Illuminate\\Foundation\\ComposerScripts::postInstall",
42
+            "php artisan optimize"
43
+        ],
44
+        "post-update-cmd": [
45
+            "Illuminate\\Foundation\\ComposerScripts::postUpdate",
46
+            "php artisan optimize"
47
+        ]
48
+    },
49
+    "config": {
50
+        "preferred-install": "dist"
51
+    }
52
+}

+ 3105
- 0
composer.lock
File diff suppressed because it is too large
View File


+ 207
- 0
config/app.php View File

@@ -0,0 +1,207 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Application Environment
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | This value determines the "environment" your application is currently
11
+    | running in. This may determine how you prefer to configure various
12
+    | services your application utilizes. Set this in your ".env" file.
13
+    |
14
+    */
15
+
16
+    'env' => env('APP_ENV', 'development'),
17
+
18
+    /*
19
+    |--------------------------------------------------------------------------
20
+    | Application Debug Mode
21
+    |--------------------------------------------------------------------------
22
+    |
23
+    | When your application is in debug mode, detailed error messages with
24
+    | stack traces will be shown on every error that occurs within your
25
+    | application. If disabled, a simple generic error page is shown.
26
+    |
27
+    */
28
+
29
+    'debug' => env('APP_DEBUG', true),
30
+
31
+    /*
32
+    |--------------------------------------------------------------------------
33
+    | Application URL
34
+    |--------------------------------------------------------------------------
35
+    |
36
+    | This URL is used by the console to properly generate URLs when using
37
+    | the Artisan command line tool. You should set this to the root of
38
+    | your application so that it is used when running Artisan tasks.
39
+    |
40
+    */
41
+
42
+    'url' => env('APP_URL', 'http://pastethingy.app'),
43
+
44
+    /*
45
+    |--------------------------------------------------------------------------
46
+    | Application Timezone
47
+    |--------------------------------------------------------------------------
48
+    |
49
+    | Here you may specify the default timezone for your application, which
50
+    | will be used by the PHP date and date-time functions. We have gone
51
+    | ahead and set this to a sensible default for you out of the box.
52
+    |
53
+    */
54
+
55
+    'timezone' => 'UTC',
56
+
57
+    /*
58
+    |--------------------------------------------------------------------------
59
+    | Application Locale Configuration
60
+    |--------------------------------------------------------------------------
61
+    |
62
+    | The application locale determines the default locale that will be used
63
+    | by the translation service provider. You are free to set this value
64
+    | to any of the locales which will be supported by the application.
65
+    |
66
+    */
67
+
68
+    'locale' => 'en',
69
+
70
+    /*
71
+    |--------------------------------------------------------------------------
72
+    | Application Fallback Locale
73
+    |--------------------------------------------------------------------------
74
+    |
75
+    | The fallback locale determines the locale to use when the current one
76
+    | is not available. You may change the value to correspond to any of
77
+    | the language folders that are provided through your application.
78
+    |
79
+    */
80
+
81
+    'fallback_locale' => 'en',
82
+
83
+    /*
84
+    |--------------------------------------------------------------------------
85
+    | Encryption Key
86
+    |--------------------------------------------------------------------------
87
+    |
88
+    | This key is used by the Illuminate encrypter service and should be set
89
+    | to a random, 32 character string, otherwise these encrypted strings
90
+    | will not be safe. Please do this before deploying an application!
91
+    |
92
+    */
93
+
94
+    'key' => env('APP_KEY'),
95
+
96
+    'cipher' => 'AES-256-CBC',
97
+
98
+    /*
99
+    |--------------------------------------------------------------------------
100
+    | Logging Configuration
101
+    |--------------------------------------------------------------------------
102
+    |
103
+    | Here you may configure the log settings for your application. Out of
104
+    | the box, Laravel uses the Monolog PHP logging library. This gives
105
+    | you a variety of powerful log handlers / formatters to utilize.
106
+    |
107
+    | Available Settings: "single", "daily", "syslog", "errorlog"
108
+    |
109
+    */
110
+
111
+    'log' => env('APP_LOG', 'single'),
112
+
113
+    /*
114
+    |--------------------------------------------------------------------------
115
+    | Autoloaded Service Providers
116
+    |--------------------------------------------------------------------------
117
+    |
118
+    | The service providers listed here will be automatically loaded on the
119
+    | request to your application. Feel free to add your own services to
120
+    | this array to grant expanded functionality to your applications.
121
+    |
122
+    */
123
+
124
+    'providers' => [
125
+
126
+        /*
127
+         * Laravel Framework Service Providers...
128
+         */
129
+        Illuminate\Auth\AuthServiceProvider::class,
130
+        Illuminate\Broadcasting\BroadcastServiceProvider::class,
131
+        Illuminate\Bus\BusServiceProvider::class,
132
+        Illuminate\Cache\CacheServiceProvider::class,
133
+        Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
134
+        Illuminate\Cookie\CookieServiceProvider::class,
135
+        Illuminate\Database\DatabaseServiceProvider::class,
136
+        Illuminate\Encryption\EncryptionServiceProvider::class,
137
+        Illuminate\Filesystem\FilesystemServiceProvider::class,
138
+        Illuminate\Foundation\Providers\FoundationServiceProvider::class,
139
+        Illuminate\Hashing\HashServiceProvider::class,
140
+        Illuminate\Mail\MailServiceProvider::class,
141
+        Illuminate\Pagination\PaginationServiceProvider::class,
142
+        Illuminate\Pipeline\PipelineServiceProvider::class,
143
+        Illuminate\Queue\QueueServiceProvider::class,
144
+        Illuminate\Redis\RedisServiceProvider::class,
145
+        Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
146
+        Illuminate\Session\SessionServiceProvider::class,
147
+        Illuminate\Translation\TranslationServiceProvider::class,
148
+        Illuminate\Validation\ValidationServiceProvider::class,
149
+        Illuminate\View\ViewServiceProvider::class,
150
+
151
+        /*
152
+         * Application Service Providers...
153
+         */
154
+        App\Providers\AppServiceProvider::class,
155
+        App\Providers\AuthServiceProvider::class,
156
+        App\Providers\EventServiceProvider::class,
157
+        App\Providers\RouteServiceProvider::class,
158
+
159
+    ],
160
+
161
+    /*
162
+    |--------------------------------------------------------------------------
163
+    | Class Aliases
164
+    |--------------------------------------------------------------------------
165
+    |
166
+    | This array of class aliases will be registered when this application
167
+    | is started. However, feel free to register as many as you wish as
168
+    | the aliases are "lazy" loaded so they don't hinder performance.
169
+    |
170
+    */
171
+
172
+    'aliases' => [
173
+
174
+        'App' => Illuminate\Support\Facades\App::class,
175
+        'Artisan' => Illuminate\Support\Facades\Artisan::class,
176
+        'Auth' => Illuminate\Support\Facades\Auth::class,
177
+        'Blade' => Illuminate\Support\Facades\Blade::class,
178
+        'Cache' => Illuminate\Support\Facades\Cache::class,
179
+        'Config' => Illuminate\Support\Facades\Config::class,
180
+        'Cookie' => Illuminate\Support\Facades\Cookie::class,
181
+        'Crypt' => Illuminate\Support\Facades\Crypt::class,
182
+        'DB' => Illuminate\Support\Facades\DB::class,
183
+        'Eloquent' => Illuminate\Database\Eloquent\Model::class,
184
+        'Event' => Illuminate\Support\Facades\Event::class,
185
+        'File' => Illuminate\Support\Facades\File::class,
186
+        'Gate' => Illuminate\Support\Facades\Gate::class,
187
+        'Hash' => Illuminate\Support\Facades\Hash::class,
188
+        'Lang' => Illuminate\Support\Facades\Lang::class,
189
+        'Log' => Illuminate\Support\Facades\Log::class,
190
+        'Mail' => Illuminate\Support\Facades\Mail::class,
191
+        'Password' => Illuminate\Support\Facades\Password::class,
192
+        'Queue' => Illuminate\Support\Facades\Queue::class,
193
+        'Redirect' => Illuminate\Support\Facades\Redirect::class,
194
+        'Redis' => Illuminate\Support\Facades\Redis::class,
195
+        'Request' => Illuminate\Support\Facades\Request::class,
196
+        'Response' => Illuminate\Support\Facades\Response::class,
197
+        'Route' => Illuminate\Support\Facades\Route::class,
198
+        'Schema' => Illuminate\Support\Facades\Schema::class,
199
+        'Session' => Illuminate\Support\Facades\Session::class,
200
+        'Storage' => Illuminate\Support\Facades\Storage::class,
201
+        'URL' => Illuminate\Support\Facades\URL::class,
202
+        'Validator' => Illuminate\Support\Facades\Validator::class,
203
+        'View' => Illuminate\Support\Facades\View::class,
204
+
205
+    ],
206
+
207
+];

+ 107
- 0
config/auth.php View File

@@ -0,0 +1,107 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Authentication Defaults
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | This option controls the default authentication "guard" and password
11
+    | reset options for your application. You may change these defaults
12
+    | as required, but they're a perfect start for most applications.
13
+    |
14
+    */
15
+
16
+    'defaults' => [
17
+        'guard' => 'web',
18
+        'passwords' => 'users',
19
+    ],
20
+
21
+    /*
22
+    |--------------------------------------------------------------------------
23
+    | Authentication Guards
24
+    |--------------------------------------------------------------------------
25
+    |
26
+    | Next, you may define every authentication guard for your application.
27
+    | Of course, a great default configuration has been defined for you
28
+    | here which uses session storage and the Eloquent user provider.
29
+    |
30
+    | All authentication drivers have a user provider. This defines how the
31
+    | users are actually retrieved out of your database or other storage
32
+    | mechanisms used by this application to persist your user's data.
33
+    |
34
+    | Supported: "session", "token"
35
+    |
36
+    */
37
+
38
+    'guards' => [
39
+        'web' => [
40
+            'driver' => 'session',
41
+            'provider' => 'users',
42
+        ],
43
+
44
+        'api' => [
45
+            'driver' => 'token',
46
+            'provider' => 'users',
47
+        ],
48
+    ],
49
+
50
+    /*
51
+    |--------------------------------------------------------------------------
52
+    | User Providers
53
+    |--------------------------------------------------------------------------
54
+    |
55
+    | All authentication drivers have a user provider. This defines how the
56
+    | users are actually retrieved out of your database or other storage
57
+    | mechanisms used by this application to persist your user's data.
58
+    |
59
+    | If you have multiple user tables or models you may configure multiple
60
+    | sources which represent each model / table. These sources may then
61
+    | be assigned to any extra authentication guards you have defined.
62
+    |
63
+    | Supported: "database", "eloquent"
64
+    |
65
+    */
66
+
67
+    'providers' => [
68
+        'users' => [
69
+            'driver' => 'eloquent',
70
+            'model' => App\User::class,
71
+        ],
72
+
73
+        // 'users' => [
74
+        //     'driver' => 'database',
75
+        //     'table' => 'users',
76
+        // ],
77
+    ],
78
+
79
+    /*
80
+    |--------------------------------------------------------------------------
81
+    | Resetting Passwords
82
+    |--------------------------------------------------------------------------
83
+    |
84
+    | Here you may set the options for resetting passwords including the view
85
+    | that is your password reset e-mail. You may also set the name of the
86
+    | table that maintains all of the reset tokens for your application.
87
+    |
88
+    | You may specify multiple password reset configurations if you have more
89
+    | than one user table or model in the application and you want to have
90
+    | separate password reset settings based on the specific user types.
91
+    |
92
+    | The expire time is the number of minutes that the reset token should be
93
+    | considered valid. This security feature keeps tokens short-lived so
94
+    | they have less time to be guessed. You may change this as needed.
95
+    |
96
+    */
97
+
98
+    'passwords' => [
99
+        'users' => [
100
+            'provider' => 'users',
101
+            'email' => 'auth.emails.password',
102
+            'table' => 'password_resets',
103
+            'expire' => 60,
104
+        ],
105
+    ],
106
+
107
+];

+ 52
- 0
config/broadcasting.php View File

@@ -0,0 +1,52 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Default Broadcaster
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | This option controls the default broadcaster that will be used by the
11
+    | framework when an event needs to be broadcast. You may set this to
12
+    | any of the connections defined in the "connections" array below.
13
+    |
14
+    */
15
+
16
+    'default' => env('BROADCAST_DRIVER', 'pusher'),
17
+
18
+    /*
19
+    |--------------------------------------------------------------------------
20
+    | Broadcast Connections
21
+    |--------------------------------------------------------------------------
22
+    |
23
+    | Here you may define all of the broadcast connections that will be used
24
+    | to broadcast events to other systems or over websockets. Samples of
25
+    | each available type of connection are provided inside this array.
26
+    |
27
+    */
28
+
29
+    'connections' => [
30
+
31
+        'pusher' => [
32
+            'driver' => 'pusher',
33
+            'key' => env('PUSHER_KEY'),
34
+            'secret' => env('PUSHER_SECRET'),
35
+            'app_id' => env('PUSHER_APP_ID'),
36
+            'options' => [
37
+                //
38
+            ],
39
+        ],
40
+
41
+        'redis' => [
42
+            'driver' => 'redis',
43
+            'connection' => 'default',
44
+        ],
45
+
46
+        'log' => [
47
+            'driver' => 'log',
48
+        ],
49
+
50
+    ],
51
+
52
+];

+ 81
- 0
config/cache.php View File

@@ -0,0 +1,81 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Default Cache Store
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | This option controls the default cache connection that gets used while
11
+    | using this caching library. This connection is used when another is
12
+    | not explicitly specified when executing a given caching function.
13
+    |
14
+    */
15
+
16
+    'default' => env('CACHE_DRIVER', 'file'),
17
+
18
+    /*
19
+    |--------------------------------------------------------------------------
20
+    | Cache Stores
21
+    |--------------------------------------------------------------------------
22
+    |
23
+    | Here you may define all of the cache "stores" for your application as
24
+    | well as their drivers. You may even define multiple stores for the
25
+    | same cache driver to group types of items stored in your caches.
26
+    |
27
+    */
28
+
29
+    'stores' => [
30
+
31
+        'apc' => [
32
+            'driver' => 'apc',
33
+        ],
34
+
35
+        'array' => [
36
+            'driver' => 'array',
37
+        ],
38
+
39
+        'database' => [
40
+            'driver' => 'database',
41
+            'table' => 'cache',
42
+            'connection' => null,
43
+        ],
44
+
45
+        'file' => [
46
+            'driver' => 'file',
47
+            'path' => storage_path('framework/cache'),
48
+        ],
49
+
50
+        'memcached' => [
51
+            'driver' => 'memcached',
52
+            'servers' => [
53
+                [
54
+                    'host' => env('MEMCACHED_HOST', '127.0.0.1'),
55
+                    'port' => env('MEMCACHED_PORT', 11211),
56
+                    'weight' => 100,
57
+                ],
58
+            ],
59
+        ],
60
+
61
+        'redis' => [
62
+            'driver' => 'redis',
63
+            'connection' => 'default',
64
+        ],
65
+
66
+    ],
67
+
68
+    /*
69
+    |--------------------------------------------------------------------------
70
+    | Cache Key Prefix
71
+    |--------------------------------------------------------------------------
72
+    |
73
+    | When utilizing a RAM based store such as APC or Memcached, there might
74
+    | be other applications utilizing the same cache. So, we'll specify a
75
+    | value to get prefixed to all our keys so we can avoid collisions.
76
+    |
77
+    */
78
+
79
+    'prefix' => 'laravel',
80
+
81
+];

+ 35
- 0
config/compile.php View File

@@ -0,0 +1,35 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Additional Compiled Classes
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | Here you may specify additional classes to include in the compiled file
11
+    | generated by the `artisan optimize` command. These should be classes
12
+    | that are included on basically every request into the application.
13
+    |
14
+    */
15
+
16
+    'files' => [
17
+        //
18
+    ],
19
+
20
+    /*
21
+    |--------------------------------------------------------------------------
22
+    | Compiled File Providers
23
+    |--------------------------------------------------------------------------
24
+    |
25
+    | Here you may list service providers which define a "compiles" function
26
+    | that returns additional files that should be compiled, providing an
27
+    | easy way to get common files from any packages you are utilizing.
28
+    |
29
+    */
30
+
31
+    'providers' => [
32
+        //
33
+    ],
34
+
35
+];

+ 76
- 0
config/database.php View File

@@ -0,0 +1,76 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | PDO Fetch Style
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | By default, database results will be returned as instances of the PHP
11
+    | stdClass object; however, you may desire to retrieve records in an
12
+    | array format for simplicity. Here you can tweak the fetch style.
13
+    |
14
+    */
15
+
16
+    'fetch' => PDO::FETCH_CLASS,
17
+
18
+    /*
19
+    |--------------------------------------------------------------------------
20
+    | Default Database Connection Name
21
+    |--------------------------------------------------------------------------
22
+    |
23
+    | Here you may specify which of the database connections below you wish
24
+    | to use as your default connection for all database work. Of course
25
+    | you may use many connections at once using the Database library.
26
+    |
27
+    */
28
+
29
+    'default' => env('DB_CONNECTION', 'postgres'),
30
+
31
+    /*
32
+    |--------------------------------------------------------------------------
33
+    | Database Connections
34
+    |--------------------------------------------------------------------------
35
+    |
36
+    | Here are each of the database connections setup for your application.
37
+    | Of course, examples of configuring each database platform that is
38
+    | supported by Laravel is shown below to make development simple.
39
+    |
40
+    |
41
+    | All database work in Laravel is done through the PHP PDO facilities
42
+    | so make sure you have the driver for your particular database of
43
+    | choice installed on your machine before you begin development.
44
+    |
45
+    */
46
+
47
+    'connections' => [
48
+
49
+        'postgres' => [
50
+            'driver' => 'pgsql',
51
+            'host' => env('DB_HOST', 'localhost'),
52
+            'port' => env('DB_PORT', '5432'),
53
+            'database' => env('DB_DATABASE', 'pastethingy'),
54
+            'username' => env('DB_USERNAME', 'homestead'),
55
+            'password' => env('DB_PASSWORD', 'secret'),
56
+            'charset' => 'utf8',
57
+            'prefix' => '',
58
+            'schema' => 'public',
59
+        ],
60
+
61
+    ],
62
+
63
+    /*
64
+    |--------------------------------------------------------------------------
65
+    | Migration Repository Table
66
+    |--------------------------------------------------------------------------
67
+    |
68
+    | This table keeps track of all the migrations that have already run for
69
+    | your application. Using this information, we can determine which of
70
+    | the migrations on disk haven't actually been run in the database.
71
+    |
72
+    */
73
+
74
+    'migrations' => 'migrations',
75
+
76
+];

+ 67
- 0
config/filesystems.php View File

@@ -0,0 +1,67 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Default Filesystem Disk
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | Here you may specify the default filesystem disk that should be used
11
+    | by the framework. A "local" driver, as well as a variety of cloud
12
+    | based drivers are available for your choosing. Just store away!
13
+    |
14
+    | Supported: "local", "ftp", "s3", "rackspace"
15
+    |
16
+    */
17
+
18
+    'default' => 'local',
19
+
20
+    /*
21
+    |--------------------------------------------------------------------------
22
+    | Default Cloud Filesystem Disk
23
+    |--------------------------------------------------------------------------
24
+    |
25
+    | Many applications store files both locally and in the cloud. For this
26
+    | reason, you may specify a default "cloud" driver here. This driver
27
+    | will be bound as the Cloud disk implementation in the container.
28
+    |
29
+    */
30
+
31
+    'cloud' => 's3',
32
+
33
+    /*
34
+    |--------------------------------------------------------------------------
35
+    | Filesystem Disks
36
+    |--------------------------------------------------------------------------
37
+    |
38
+    | Here you may configure as many filesystem "disks" as you wish, and you
39
+    | may even configure multiple disks of the same driver. Defaults have
40
+    | been setup for each driver as an example of the required options.
41
+    |
42
+    */
43
+
44
+    'disks' => [
45
+
46
+        'local' => [
47
+            'driver' => 'local',
48
+            'root' => storage_path('app'),
49
+        ],
50
+
51
+        'public' => [
52
+            'driver' => 'local',
53
+            'root' => storage_path('app/public'),
54
+            'visibility' => 'public',
55
+        ],
56
+
57
+        's3' => [
58
+            'driver' => 's3',
59
+            'key' => 'your-key',
60
+            'secret' => 'your-secret',
61
+            'region' => 'your-region',
62
+            'bucket' => 'your-bucket',
63
+        ],
64
+
65
+    ],
66
+
67
+];

+ 112
- 0
config/mail.php View File

@@ -0,0 +1,112 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Mail Driver
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | Laravel supports both SMTP and PHP's "mail" function as drivers for the
11
+    | sending of e-mail. You may specify which one you're using throughout
12
+    | your application here. By default, Laravel is setup for SMTP mail.
13
+    |
14
+    | Supported: "smtp", "mail", "sendmail", "mailgun", "mandrill",
15
+    |            "ses", "sparkpost", "log"
16
+    |
17
+    */
18
+
19
+    'driver' => env('MAIL_DRIVER', 'smtp'),
20
+
21
+    /*
22
+    |--------------------------------------------------------------------------
23
+    | SMTP Host Address
24
+    |--------------------------------------------------------------------------
25
+    |
26
+    | Here you may provide the host address of the SMTP server used by your
27
+    | applications. A default option is provided that is compatible with
28
+    | the Mailgun mail service which will provide reliable deliveries.
29
+    |
30
+    */
31
+
32
+    'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
33
+
34
+    /*
35
+    |--------------------------------------------------------------------------
36
+    | SMTP Host Port
37
+    |--------------------------------------------------------------------------
38
+    |
39
+    | This is the SMTP port used by your application to deliver e-mails to
40
+    | users of the application. Like the host we have set this value to
41
+    | stay compatible with the Mailgun e-mail application by default.
42
+    |
43
+    */
44
+
45
+    'port' => env('MAIL_PORT', 587),
46
+
47
+    /*
48
+    |--------------------------------------------------------------------------
49
+    | Global "From" Address
50
+    |--------------------------------------------------------------------------
51
+    |
52
+    | You may wish for all e-mails sent by your application to be sent from
53
+    | the same address. Here, you may specify a name and address that is
54
+    | used globally for all e-mails that are sent by your application.
55
+    |
56
+    */
57
+
58
+    'from' => ['address' => null, 'name' => null],
59
+
60
+    /*
61
+    |--------------------------------------------------------------------------
62
+    | E-Mail Encryption Protocol
63
+    |--------------------------------------------------------------------------
64
+    |
65
+    | Here you may specify the encryption protocol that should be used when
66
+    | the application send e-mail messages. A sensible default using the
67
+    | transport layer security protocol should provide great security.
68
+    |
69
+    */
70
+
71
+    'encryption' => env('MAIL_ENCRYPTION', 'tls'),
72
+
73
+    /*
74
+    |--------------------------------------------------------------------------
75
+    | SMTP Server Username
76
+    |--------------------------------------------------------------------------
77
+    |
78
+    | If your SMTP server requires a username for authentication, you should
79
+    | set it here. This will get used to authenticate with your server on
80
+    | connection. You may also set the "password" value below this one.
81
+    |
82
+    */
83
+
84
+    'username' => env('MAIL_USERNAME'),
85
+
86
+    /*
87
+    |--------------------------------------------------------------------------
88
+    | SMTP Server Password
89
+    |--------------------------------------------------------------------------
90
+    |
91
+    | Here you may set the password required by your SMTP server to send out
92
+    | messages from your application. This will be given to the server on
93
+    | connection so that the application will be able to send messages.
94
+    |
95
+    */
96
+
97
+    'password' => env('MAIL_PASSWORD'),
98
+
99
+    /*
100
+    |--------------------------------------------------------------------------
101
+    | Sendmail System Path
102
+    |--------------------------------------------------------------------------
103
+    |
104
+    | When using the "sendmail" driver to send e-mails, we will need to know
105
+    | the path to where Sendmail lives on this server. A default path has
106
+    | been provided here, which will work well on most of your systems.
107
+    |
108
+    */
109
+
110
+    'sendmail' => '/usr/sbin/sendmail -bs',
111
+
112
+];

+ 85
- 0
config/queue.php View File

@@ -0,0 +1,85 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Default Queue Driver
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | The Laravel queue API supports a variety of back-ends via an unified
11
+    | API, giving you convenient access to each back-end using the same
12
+    | syntax for each one. Here you may set the default queue driver.
13
+    |
14
+    | Supported: "null", "sync", "database", "beanstalkd", "sqs", "redis"
15
+    |
16
+    */
17
+
18
+    'default' => env('QUEUE_DRIVER', 'sync'),
19
+
20
+    /*
21
+    |--------------------------------------------------------------------------
22
+    | Queue Connections
23
+    |--------------------------------------------------------------------------
24
+    |
25
+    | Here you may configure the connection information for each server that
26
+    | is used by your application. A default configuration has been added
27
+    | for each back-end shipped with Laravel. You are free to add more.
28
+    |
29
+    */
30
+
31
+    'connections' => [
32
+
33
+        'sync' => [
34
+            'driver' => 'sync',
35
+        ],
36
+
37
+        'database' => [
38
+            'driver' => 'database',
39
+            'table' => 'jobs',
40
+            'queue' => 'default',
41
+            'expire' => 60,
42
+        ],
43
+
44
+        'beanstalkd' => [
45
+            'driver' => 'beanstalkd',
46
+            'host' => 'localhost',
47
+            'queue' => 'default',
48
+            'ttr' => 60,
49
+        ],
50
+
51
+        'sqs' => [
52
+            'driver' => 'sqs',
53
+            'key' => 'your-public-key',
54
+            'secret' => 'your-secret-key',
55
+            'prefix' => 'https://sqs.us-east-1.amazonaws.com/your-account-id',
56
+            'queue' => 'your-queue-name',
57
+            'region' => 'us-east-1',
58
+        ],
59
+
60
+        'redis' => [
61
+            'driver' => 'redis',
62
+            'connection' => 'default',
63
+            'queue' => 'default',
64
+            'expire' => 60,
65
+        ],
66
+
67
+    ],
68
+
69
+    /*
70
+    |--------------------------------------------------------------------------
71
+    | Failed Queue Jobs
72
+    |--------------------------------------------------------------------------
73
+    |
74
+    | These options configure the behavior of failed queue job logging so you
75
+    | can control which database and table are used to store the jobs that
76
+    | have failed. You may change them to any database / table you wish.
77
+    |
78
+    */
79
+
80
+    'failed' => [
81
+        'database' => env('DB_CONNECTION', 'mysql'),
82
+        'table' => 'failed_jobs',
83
+    ],
84
+
85
+];

+ 38
- 0
config/services.php View File

@@ -0,0 +1,38 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Third Party Services
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | This file is for storing the credentials for third party services such
11
+    | as Stripe, Mailgun, Mandrill, and others. This file provides a sane
12
+    | default location for this type of information, allowing packages
13
+    | to have a conventional place to find your various credentials.
14
+    |
15
+    */
16
+
17
+    'mailgun' => [
18
+        'domain' => env('MAILGUN_DOMAIN'),
19
+        'secret' => env('MAILGUN_SECRET'),
20
+    ],
21
+
22
+    'ses' => [
23
+        'key' => env('SES_KEY'),
24
+        'secret' => env('SES_SECRET'),
25
+        'region' => 'us-east-1',
26
+    ],
27
+
28
+    'sparkpost' => [
29
+        'secret' => env('SPARKPOST_SECRET'),
30
+    ],
31
+
32
+    'stripe' => [
33
+        'model' => App\User::class,
34
+        'key' => env('STRIPE_KEY'),
35
+        'secret' => env('STRIPE_SECRET'),
36
+    ],
37
+
38
+];

+ 166
- 0
config/session.php View File

@@ -0,0 +1,166 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Default Session Driver
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | This option controls the default session "driver" that will be used on
11
+    | requests. By default, we will use the lightweight native driver but
12
+    | you may specify any of the other wonderful drivers provided here.
13
+    |
14
+    | Supported: "file", "cookie", "database", "apc",
15
+    |            "memcached", "redis", "array"
16
+    |
17
+    */
18
+
19
+    'driver' => env('SESSION_DRIVER', 'file'),
20
+
21
+    /*
22
+    |--------------------------------------------------------------------------
23
+    | Session Lifetime
24
+    |--------------------------------------------------------------------------
25
+    |
26
+    | Here you may specify the number of minutes that you wish the session
27
+    | to be allowed to remain idle before it expires. If you want them
28
+    | to immediately expire on the browser closing, set that option.
29
+    |
30
+    */
31
+
32
+    'lifetime' => 120,
33
+
34
+    'expire_on_close' => false,
35
+
36
+    /*
37
+    |--------------------------------------------------------------------------
38
+    | Session Encryption
39
+    |--------------------------------------------------------------------------
40
+    |
41
+    | This option allows you to easily specify that all of your session data
42
+    | should be encrypted before it is stored. All encryption will be run
43
+    | automatically by Laravel and you can use the Session like normal.
44
+    |
45
+    */
46
+
47
+    'encrypt' => false,
48
+
49
+    /*
50
+    |--------------------------------------------------------------------------
51
+    | Session File Location
52
+    |--------------------------------------------------------------------------
53
+    |
54
+    | When using the native session driver, we need a location where session
55
+    | files may be stored. A default has been set for you but a different
56
+    | location may be specified. This is only needed for file sessions.
57
+    |
58
+    */
59
+
60
+    'files' => storage_path('framework/sessions'),
61
+
62
+    /*
63
+    |--------------------------------------------------------------------------
64
+    | Session Database Connection
65
+    |--------------------------------------------------------------------------
66
+    |
67
+    | When using the "database" or "redis" session drivers, you may specify a
68
+    | connection that should be used to manage these sessions. This should
69
+    | correspond to a connection in your database configuration options.
70
+    |
71
+    */
72
+
73
+    'connection' => null,
74
+
75
+    /*
76
+    |--------------------------------------------------------------------------
77
+    | Session Database Table
78
+    |--------------------------------------------------------------------------
79
+    |
80
+    | When using the "database" session driver, you may specify the table we
81
+    | should use to manage the sessions. Of course, a sensible default is
82
+    | provided for you; however, you are free to change this as needed.
83
+    |
84
+    */
85
+
86
+    'table' => 'sessions',
87
+
88
+    /*
89
+    |--------------------------------------------------------------------------
90
+    | Session Sweeping Lottery
91
+    |--------------------------------------------------------------------------
92
+    |
93
+    | Some session drivers must manually sweep their storage location to get
94
+    | rid of old sessions from storage. Here are the chances that it will
95
+    | happen on a given request. By default, the odds are 2 out of 100.
96
+    |
97
+    */
98
+
99
+    'lottery' => [2, 100],
100
+
101
+    /*
102
+    |--------------------------------------------------------------------------
103
+    | Session Cookie Name
104
+    |--------------------------------------------------------------------------
105
+    |
106
+    | Here you may change the name of the cookie used to identify a session
107
+    | instance by ID. The name specified here will get used every time a
108
+    | new session cookie is created by the framework for every driver.
109
+    |
110
+    */
111
+
112
+    'cookie' => 'laravel_session',
113
+
114
+    /*
115
+    |--------------------------------------------------------------------------
116
+    | Session Cookie Path
117
+    |--------------------------------------------------------------------------
118
+    |
119
+    | The session cookie path determines the path for which the cookie will
120
+    | be regarded as available. Typically, this will be the root path of
121
+    | your application but you are free to change this when necessary.
122
+    |
123
+    */
124
+
125
+    'path' => '/',
126
+
127
+    /*
128
+    |--------------------------------------------------------------------------
129
+    | Session Cookie Domain
130
+    |--------------------------------------------------------------------------
131
+    |
132
+    | Here you may change the domain of the cookie used to identify a session
133
+    | in your application. This will determine which domains the cookie is
134
+    | available to in your application. A sensible default has been set.
135
+    |
136
+    */
137
+
138
+    'domain' => null,
139
+
140
+    /*
141
+    |--------------------------------------------------------------------------
142
+    | HTTPS Only Cookies
143
+    |--------------------------------------------------------------------------
144
+    |
145
+    | By setting this option to true, session cookies will only be sent back
146
+    | to the server if the browser has a HTTPS connection. This will keep
147
+    | the cookie from being sent to you if it can not be done securely.
148
+    |
149
+    */
150
+
151
+    'secure' => false,
152
+
153
+    /*
154
+    |--------------------------------------------------------------------------
155
+    | HTTP Access Only
156
+    |--------------------------------------------------------------------------
157
+    |
158
+    | Setting this value to true will prevent JavaScript from accessing the
159
+    | value of the cookie and the cookie will only be accessible through
160
+    | the HTTP protocol. You are free to modify this option if needed.
161
+    |
162
+    */
163
+
164
+    'http_only' => true,
165
+
166
+];

+ 33
- 0
config/view.php View File

@@ -0,0 +1,33 @@
1
+<?php
2
+
3
+return [
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | View Storage Paths
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | Most templating systems load templates from disk. Here you may specify
11
+    | an array of paths that should be checked for your views. Of course
12
+    | the usual Laravel view path has already been registered for you.
13
+    |
14
+    */
15
+
16
+    'paths' => [
17
+        realpath(base_path('resources/views')),
18
+    ],
19
+
20
+    /*
21
+    |--------------------------------------------------------------------------
22
+    | Compiled View Path
23
+    |--------------------------------------------------------------------------
24
+    |
25
+    | This option determines where all the compiled Blade templates will be
26
+    | stored for your application. Typically, this is within the storage
27
+    | directory. However, as usual, you are free to change this value.
28
+    |
29
+    */
30
+
31
+    'compiled' => realpath(storage_path('framework/views')),
32
+
33
+];

+ 1
- 0
database/.gitignore View File

@@ -0,0 +1 @@
1
+*.sqlite

+ 13
- 0
database/factories/ModelFactory.php View File

@@ -0,0 +1,13 @@
1
+<?php
2
+
3
+/*
4
+|--------------------------------------------------------------------------
5
+| Model Factories
6
+|--------------------------------------------------------------------------
7
+|
8
+| Here you may define all of your model factories. Model factories give
9
+| you a convenient way to create models for testing and seeding your
10
+| database. Just tell the factory how a default model should look.
11
+|
12
+*/
13
+

+ 1
- 0
database/migrations/.gitkeep View File

@@ -0,0 +1 @@
1
+

+ 34
- 0
database/migrations/2016_05_27_230057_create_pastes_table.php View File

@@ -0,0 +1,34 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreatePastesTable extends Migration
7
+{
8
+    /**
9
+     * Run the migrations.
10
+     *
11
+     * @return void
12
+     */
13
+    public function up()
14
+    {
15
+		Schema::create('pastes', function (Blueprint $table) {
16
+			$table->char('id', 6);
17
+			$table->string('language');
18
+			$table->timestamp('created_at');
19
+			$table->timestamp('expires_at');
20
+
21
+			$table->primary('id');
22
+        });
23
+    }
24
+
25
+    /**
26
+     * Reverse the migrations.
27
+     *
28
+     * @return void
29
+     */
30
+    public function down()
31
+    {
32
+        Schema::drop('pastes');
33
+    }
34
+}

+ 35
- 0
database/migrations/2016_05_28_000118_create_deletions_table.php View File

@@ -0,0 +1,35 @@
1
+<?php
2
+
3
+use Illuminate\Database\Schema\Blueprint;
4
+use Illuminate\Database\Migrations\Migration;
5
+
6
+class CreateDeletionsTable extends Migration
7
+{
8
+    /**
9
+     * Run the migrations.
10
+     *
11
+     * @return void
12
+     */
13
+    public function up()
14
+    {
15
+        Schema::create('deletions', function (Blueprint $table) {
16
+			$table->increments('id');
17
+			$table->char('paste_id', 6)->unique();
18
+			$table->text('reason');
19
+			$table->string('deleted_by');
20
+			$table->timestamp('deleted_at');
21
+
22
+			$table->foreign('paste_id')->references('id')->on('pastes');
23
+        });
24
+    }
25
+
26
+    /**
27
+     * Reverse the migrations.
28
+     *
29
+     * @return void
30
+     */
31
+    public function down()
32
+    {
33
+        Schema::drop('deletions');
34
+    }
35
+}

+ 1
- 0
database/seeds/.gitkeep View File

@@ -0,0 +1 @@
1
+

+ 16
- 0
database/seeds/DatabaseSeeder.php View File

@@ -0,0 +1,16 @@
1
+<?php
2
+
3
+use Illuminate\Database\Seeder;
4
+
5
+class DatabaseSeeder extends Seeder
6
+{
7
+    /**
8
+     * Run the database seeds.
9
+     *
10
+     * @return void
11
+     */
12
+    public function run()
13
+    {
14
+        // $this->call(UsersTableSeeder::class);
15
+    }
16
+}

+ 16
- 0
gulpfile.js View File

@@ -0,0 +1,16 @@
1
+var elixir = require('laravel-elixir');
2
+
3
+/*
4
+ |--------------------------------------------------------------------------
5
+ | Elixir Asset Management
6
+ |--------------------------------------------------------------------------
7
+ |
8
+ | Elixir provides a clean, fluent API for defining some basic Gulp tasks
9
+ | for your Laravel application. By default, we are compiling the Sass
10
+ | file for our application, as well as publishing vendor resources.
11
+ |
12
+ */
13
+
14
+elixir(function(mix) {
15
+    mix.sass('app.scss');
16
+});

+ 12
- 0
package.json View File

@@ -0,0 +1,12 @@
1
+{
2
+  "private": true,
3
+  "scripts": {
4
+    "prod": "gulp --production",
5
+    "dev": "gulp watch"
6
+  },
7
+  "devDependencies": {
8
+    "gulp": "^3.9.1",
9
+    "laravel-elixir": "^5.0.0",
10
+    "bootstrap-sass": "^3.3.0"
11
+  }
12
+}

+ 30
- 0
phpunit.xml View File

@@ -0,0 +1,30 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<phpunit backupGlobals="false"
3
+         backupStaticAttributes="false"
4
+         bootstrap="bootstrap/autoload.php"
5
+         colors="true"
6
+         convertErrorsToExceptions="true"
7
+         convertNoticesToExceptions="true"
8
+         convertWarningsToExceptions="true"
9
+         processIsolation="false"
10
+         stopOnFailure="false">
11
+    <testsuites>
12
+        <testsuite name="Application Test Suite">
13
+            <directory suffix="Test.php">./tests</directory>
14
+        </testsuite>
15
+    </testsuites>
16
+    <filter>
17
+        <whitelist processUncoveredFilesFromWhitelist="true">
18
+            <directory suffix=".php">./app</directory>
19
+            <exclude>
20
+                <file>./app/Http/routes.php</file>
21
+            </exclude>
22
+        </whitelist>
23
+    </filter>
24
+    <php>
25
+        <env name="APP_ENV" value="testing"/>
26
+        <env name="CACHE_DRIVER" value="array"/>
27
+        <env name="SESSION_DRIVER" value="array"/>
28
+        <env name="QUEUE_DRIVER" value="sync"/>
29
+    </php>
30
+</phpunit>

+ 58
- 0
public/index.php View File

@@ -0,0 +1,58 @@
1
+<?php
2
+
3
+/**
4
+ * Laravel - A PHP Framework For Web Artisans
5
+ *
6
+ * @package  Laravel
7
+ * @author   Taylor Otwell <taylorotwell@gmail.com>
8
+ */
9
+
10
+/*
11
+|--------------------------------------------------------------------------
12
+| Register The Auto Loader
13
+|--------------------------------------------------------------------------
14
+|
15
+| Composer provides a convenient, automatically generated class loader for
16
+| our application. We just need to utilize it! We'll simply require it
17
+| into the script here so that we don't have to worry about manual
18
+| loading any of our classes later on. It feels nice to relax.
19
+|
20
+*/
21
+
22
+require __DIR__.'/../bootstrap/autoload.php';
23
+
24
+/*
25
+|--------------------------------------------------------------------------
26
+| Turn On The Lights
27
+|--------------------------------------------------------------------------
28
+|
29
+| We need to illuminate PHP development, so let us turn on the lights.
30
+| This bootstraps the framework and gets it ready for use, then it
31
+| will load up this application so that we can run it and send
32
+| the responses back to the browser and delight our users.
33
+|
34
+*/
35
+
36
+$app = require_once __DIR__.'/../bootstrap/app.php';
37
+
38
+/*
39
+|--------------------------------------------------------------------------
40
+| Run The Application
41
+|--------------------------------------------------------------------------
42
+|
43
+| Once we have the application, we can handle the incoming request
44
+| through the kernel, and send the associated response back to
45
+| the client's browser allowing them to enjoy the creative
46
+| and wonderful application we have prepared for them.
47
+|
48
+*/
49
+
50
+$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
51
+
52
+$response = $kernel->handle(
53
+    $request = Illuminate\Http\Request::capture()
54
+);
55
+
56
+$response->send();
57
+
58
+$kernel->terminate($request, $response);

+ 2
- 0
resources/assets/sass/app.scss View File

@@ -0,0 +1,2 @@
1
+// @import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap";
2
+

+ 47
- 0
resources/views/errors/503.blade.php View File

@@ -0,0 +1,47 @@
1
+<!DOCTYPE html>
2
+<html>
3
+    <head>
4
+        <title>Be right back.</title>
5
+
6
+        <link href="https://fonts.googleapis.com/css?family=Lato:100" rel="stylesheet" type="text/css">
7
+
8
+        <style>
9
+            html, body {
10
+                height: 100%;
11
+            }
12
+
13
+            body {
14
+                margin: 0;
15
+                padding: 0;
16
+                width: 100%;
17
+                color: #B0BEC5;
18
+                display: table;
19
+                font-weight: 100;
20
+                font-family: 'Lato';
21
+            }
22
+
23
+            .container {
24
+                text-align: center;
25
+                display: table-cell;
26
+                vertical-align: middle;
27
+            }
28
+
29
+            .content {
30
+                text-align: center;
31
+                display: inline-block;
32
+            }
33
+
34
+            .title {
35
+                font-size: 72px;
36
+                margin-bottom: 40px;
37
+            }
38
+        </style>
39
+    </head>
40
+    <body>
41
+        <div class="container">
42
+            <div class="content">
43
+                <div class="title">Be right back.</div>
44
+            </div>
45
+        </div>
46
+    </body>
47
+</html>

+ 1
- 0
resources/views/vendor/.gitkeep View File

@@ -0,0 +1 @@
1
+

+ 45
- 0
resources/views/welcome.blade.php View File

@@ -0,0 +1,45 @@
1
+<!DOCTYPE html>
2
+<html>
3
+    <head>
4
+        <title>pastethingy</title>
5
+
6
+        <link href="https://fonts.googleapis.com/css?family=Lato:100" rel="stylesheet" type="text/css">
7
+
8
+        <style>
9
+            html, body {
10
+                height: 100%;
11
+            }
12
+
13
+            body {
14
+                margin: 0;
15
+                padding: 0;
16
+                width: 100%;
17
+                display: table;
18
+                font-weight: 100;
19
+                font-family: 'Lato';
20
+            }
21
+
22
+            .container {
23
+                text-align: center;
24
+                display: table-cell;
25
+                vertical-align: middle;
26
+            }
27
+
28
+            .content {
29
+                text-align: center;
30
+                display: inline-block;
31
+            }
32
+
33
+            .title {
34
+                font-size: 96px;
35
+            }
36
+        </style>
37
+    </head>
38
+    <body>
39
+        <div class="container">
40
+            <div class="content">
41
+                <div class="title">pastethingy</div>
42
+            </div>
43
+        </div>
44
+    </body>
45
+</html>

+ 21
- 0
server.php View File

@@ -0,0 +1,21 @@
1
+<?php
2
+
3
+/**
4
+ * Laravel - A PHP Framework For Web Artisans
5
+ *
6
+ * @package  Laravel
7
+ * @author   Taylor Otwell <taylorotwell@gmail.com>
8
+ */
9
+
10
+$uri = urldecode(
11
+    parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
12
+);
13
+
14
+// This file allows us to emulate Apache's "mod_rewrite" functionality from the
15
+// built-in PHP web server. This provides a convenient way to test a Laravel
16
+// application without having installed a "real" web server software here.
17
+if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
18
+    return false;
19
+}
20
+
21
+require_once __DIR__.'/public/index.php';

+ 3
- 0
storage/app/.gitignore View File

@@ -0,0 +1,3 @@
1
+*
2
+!public/
3
+!.gitignore

+ 2
- 0
storage/app/public/.gitignore View File

@@ -0,0 +1,2 @@
1
+*
2
+!.gitignore

+ 8
- 0
storage/framework/.gitignore View File

@@ -0,0 +1,8 @@
1
+config.php
2
+routes.php
3
+schedule-*
4
+compiled.php
5
+services.json
6
+events.scanned.php
7
+routes.scanned.php
8
+down

+ 2
- 0
storage/framework/cache/.gitignore View File

@@ -0,0 +1,2 @@
1
+*
2
+!.gitignore

+ 2
- 0
storage/framework/sessions/.gitignore View File

@@ -0,0 +1,2 @@
1
+*
2
+!.gitignore

+ 2
- 0
storage/framework/views/.gitignore View File

@@ -0,0 +1,2 @@
1
+*
2
+!.gitignore

+ 2
- 0
storage/logs/.gitignore View File

@@ -0,0 +1,2 @@
1
+*
2
+!.gitignore

+ 25
- 0
tests/TestCase.php View File

@@ -0,0 +1,25 @@
1
+<?php
2
+
3
+class TestCase extends Illuminate\Foundation\Testing\TestCase
4
+{
5
+    /**
6
+     * The base URL to use while testing the application.
7
+     *
8
+     * @var string
9
+     */
10
+    protected $baseUrl = 'http://pastethingy.app';
11
+
12
+    /**
13
+     * Creates the application.
14
+     *
15
+     * @return \Illuminate\Foundation\Application
16
+     */
17
+    public function createApplication()
18
+    {
19
+        $app = require __DIR__.'/../bootstrap/app.php';
20
+
21
+        $app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();
22
+
23
+        return $app;
24
+    }
25
+}

Loading…
Cancel
Save