Bladeren bron

init

tags/0.1.0
Robin Thoni 9 jaren geleden
commit
bf11ab7691
77 gewijzigde bestanden met toevoegingen van 17491 en 0 verwijderingen
  1. 3
    0
      .gitattributes
  2. 4
    0
      .gitignore
  3. 11554
    0
      _ide_helper.php
  4. 19
    0
      apache2/camotion-v2.local.conf
  5. 7
    0
      apache2/camotion-v2.local.include
  6. 7
    0
      app/Commands/Command.php
  7. 32
    0
      app/Console/Commands/Inspire.php
  8. 29
    0
      app/Console/Kernel.php
  9. 7
    0
      app/Events/Event.php
  10. 52
    0
      app/Exceptions/Handler.php
  11. 0
    0
      app/Handlers/Commands/.gitkeep
  12. 0
    0
      app/Handlers/Events/.gitkeep
  13. 57
    0
      app/Http/Business/AbstractBusiness.php
  14. 26
    0
      app/Http/Business/UserBusiness.php
  15. 46
    0
      app/Http/Controllers/AbstractController.php
  16. 11
    0
      app/Http/Controllers/Controller.php
  17. 24
    0
      app/Http/Controllers/UserController.php
  18. 23
    0
      app/Http/DAL/Models/AbstractModel.php
  19. 36
    0
      app/Http/DAL/Models/User.php
  20. 31
    0
      app/Http/DAL/UserDAL.php
  21. 22
    0
      app/Http/DBO/AbstractModel.php
  22. 72
    0
      app/Http/DBO/UserDBO.php
  23. 31
    0
      app/Http/Kernel.php
  24. 9
    0
      app/Http/Requests/Request.php
  25. 19
    0
      app/Http/routes.php
  26. 27
    0
      app/Providers/AppServiceProvider.php
  27. 34
    0
      app/Providers/BusServiceProvider.php
  28. 23
    0
      app/Providers/ConfigServiceProvider.php
  29. 32
    0
      app/Providers/EventServiceProvider.php
  30. 44
    0
      app/Providers/RouteServiceProvider.php
  31. 51
    0
      artisan
  32. 55
    0
      bootstrap/app.php
  33. 35
    0
      bootstrap/autoload.php
  34. 50
    0
      composer.json
  35. 3440
    0
      composer.lock
  36. 203
    0
      config/app.php
  37. 67
    0
      config/auth.php
  38. 79
    0
      config/cache.php
  39. 41
    0
      config/compile.php
  40. 125
    0
      config/database.php
  41. 71
    0
      config/filesystems.php
  42. 89
    0
      config/ide-helper.php
  43. 7
    0
      config/laravel-storedprocedures.php
  44. 124
    0
      config/mail.php
  45. 92
    0
      config/queue.php
  46. 37
    0
      config/services.php
  47. 153
    0
      config/session.php
  48. 33
    0
      config/view.php
  49. 1
    0
      database/.gitignore
  50. 0
    0
      database/migrations/.gitkeep
  51. 0
    0
      database/seeds/.gitkeep
  52. 20
    0
      database/seeds/DatabaseSeeder.php
  53. 16
    0
      gulpfile.js
  54. 7
    0
      package.json
  55. 5
    0
      phpspec.yml
  56. 23
    0
      phpunit.xml
  57. 15
    0
      public/.htaccess
  58. 0
    0
      public/favicon.ico
  59. 57
    0
      public/index.php
  60. 2
    0
      public/robots.txt
  61. 1
    0
      resources/assets/less/app.less
  62. 19
    0
      resources/lang/en/pagination.php
  63. 22
    0
      resources/lang/en/passwords.php
  64. 107
    0
      resources/lang/en/validation.php
  65. 41
    0
      resources/views/errors/503.blade.php
  66. 0
    0
      resources/views/vendor/.gitkeep
  67. 48
    0
      resources/views/welcome.blade.php
  68. 21
    0
      server.php
  69. 1
    0
      storage/.gitignore
  70. 2
    0
      storage/app/.gitignore
  71. 6
    0
      storage/framework/.gitignore
  72. 2
    0
      storage/framework/cache/.gitignore
  73. 2
    0
      storage/framework/sessions/.gitignore
  74. 2
    0
      storage/framework/views/.gitignore
  75. 2
    0
      storage/logs/.gitignore
  76. 17
    0
      tests/ExampleTest.php
  77. 19
    0
      tests/TestCase.php

+ 3
- 0
.gitattributes Bestand weergeven

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

+ 4
- 0
.gitignore Bestand weergeven

@@ -0,0 +1,4 @@
1
+/vendor
2
+/node_modules
3
+.env
4
+.idea

+ 11554
- 0
_ide_helper.php
Diff onderdrukt omdat het te groot bestand
Bestand weergeven


+ 19
- 0
apache2/camotion-v2.local.conf Bestand weergeven

@@ -0,0 +1,19 @@
1
+<IfModule mod_ssl.c>
2
+    <VirtualHost *:80>
3
+        ServerName camotion-v2.local
4
+        Redirect permanent / https://camotion-v2.local/
5
+    </VirtualHost>
6
+    <VirtualHost *:443>
7
+        Include sites-available/camotion-v2.local.include
8
+
9
+        SSLEngine on
10
+        SSLCertificateFile /etc/ssl/private/camotion-v2.local.crt
11
+        SSLCertificateKeyFile /etc/ssl/private/camotion-v2.local.key
12
+        SSLCertificateChainFile /etc/ssl/certs/sub.class1.server.ca.pem
13
+    </VirtualHost>
14
+</IfModule>
15
+<IfModule !mod_ssl.c>
16
+    <VirtualHost *:80>
17
+        Include sites-available/camotion-v2.local.include
18
+    </VirtualHost>
19
+</IfModule>

+ 7
- 0
apache2/camotion-v2.local.include Bestand weergeven

@@ -0,0 +1,7 @@
1
+ServerName camotion-v2.local
2
+DocumentRoot /var/camotion-v2.local/public
3
+ServerAlias camotion-v2.local
4
+<Directory /var/camotion-v2.local/public>
5
+  Options Indexes FollowSymLinks MultiViews
6
+  AllowOverride All
7
+</Directory>

+ 7
- 0
app/Commands/Command.php Bestand weergeven

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

+ 32
- 0
app/Console/Commands/Inspire.php Bestand weergeven

@@ -0,0 +1,32 @@
1
+<?php namespace App\Console\Commands;
2
+
3
+use Illuminate\Console\Command;
4
+use Illuminate\Foundation\Inspiring;
5
+
6
+class Inspire extends Command {
7
+
8
+	/**
9
+	 * The console command name.
10
+	 *
11
+	 * @var string
12
+	 */
13
+	protected $name = 'inspire';
14
+
15
+	/**
16
+	 * The console command description.
17
+	 *
18
+	 * @var string
19
+	 */
20
+	protected $description = 'Display an inspiring quote';
21
+
22
+	/**
23
+	 * Execute the console command.
24
+	 *
25
+	 * @return mixed
26
+	 */
27
+	public function handle()
28
+	{
29
+		$this->comment(PHP_EOL.Inspiring::quote().PHP_EOL);
30
+	}
31
+
32
+}

+ 29
- 0
app/Console/Kernel.php Bestand weergeven

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

+ 7
- 0
app/Events/Event.php Bestand weergeven

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

+ 52
- 0
app/Exceptions/Handler.php Bestand weergeven

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

+ 0
- 0
app/Handlers/Commands/.gitkeep Bestand weergeven


+ 0
- 0
app/Handlers/Events/.gitkeep Bestand weergeven


+ 57
- 0
app/Http/Business/AbstractBusiness.php Bestand weergeven

@@ -0,0 +1,57 @@
1
+<?php
2
+/**
3
+ * Created by PhpStorm.
4
+ * User: adrien.gandarias
5
+ * Date: 08/04/2015
6
+ * Time: 10:01
7
+ */
8
+
9
+namespace App\Http\Business;
10
+
11
+class AbstractBusiness {
12
+    /**
13
+     * @var array
14
+     */
15
+    private $parameters = [];
16
+
17
+    /**
18
+     * @param array $parametersSource
19
+     */
20
+    public function __construct(array $parametersSource)
21
+    {
22
+        $this->parameters = $parametersSource;
23
+    }
24
+
25
+    /**
26
+     * @param string $name
27
+     * @param mixed  $default
28
+     * @return mixed
29
+     */
30
+    protected function getParam($name, $default = null)
31
+    {
32
+        return array_key_exists($name, $this->parameters) ? $this->parameters[$name] : $default;
33
+    }
34
+
35
+    /**
36
+     * @param string $name
37
+     * @param mixed  $value
38
+     */
39
+    public function setParam($name, $value)
40
+    {
41
+        $this->parameters[$name] = $value;
42
+    }
43
+
44
+    /**
45
+     * @param string[] $params
46
+     * @return bool
47
+     */
48
+    public function hasParam(array $params)
49
+    {
50
+        foreach ($params as $p)
51
+        {
52
+            if (!array_key_exists($p, $this->parameters))
53
+                return false;
54
+        }
55
+        return true;
56
+    }
57
+}

+ 26
- 0
app/Http/Business/UserBusiness.php Bestand weergeven

@@ -0,0 +1,26 @@
1
+<?php
2
+/**
3
+ * Created by PhpStorm.
4
+ * User: adrien.gandarias
5
+ * Date: 08/04/2015
6
+ * Time: 10:14
7
+ */
8
+
9
+namespace App\Http\Business;
10
+
11
+
12
+use App\Http\DAL\UserDAL;
13
+
14
+class UserBusiness extends AbstractBusiness
15
+{
16
+
17
+    public function getAll()
18
+    {
19
+        $business = UserDAL::getAll();
20
+        if (is_null($business))
21
+            abort(404, 'Not FOUND');
22
+
23
+        return $business;
24
+    }
25
+
26
+}

+ 46
- 0
app/Http/Controllers/AbstractController.php Bestand weergeven

@@ -0,0 +1,46 @@
1
+<?php
2
+/**
3
+ * Created by PhpStorm.
4
+ * User: adrien.gandarias
5
+ * Date: 08/04/2015
6
+ * Time: 10:09
7
+ */
8
+
9
+namespace App\Http\Controllers;
10
+
11
+
12
+abstract class AbstractController extends Controller
13
+{
14
+
15
+    public function __construct()
16
+    {
17
+        header('Content-type: application/json; charset=UTF-8');
18
+    }
19
+
20
+    /**
21
+     * Check javascript token provided to authenticate user
22
+     * Either returns a User model or aborts application
23
+     */
24
+    public function authenticate()
25
+    {
26
+        //Code to check if user is authenticated or not
27
+
28
+//        if ($user instanceof User)
29
+//            return $user;
30
+//        else
31
+        \App::abort(401, 'AUTHENTICATION_REQUIRED');
32
+    }
33
+
34
+    public function admin()
35
+    {
36
+        //Code to check if authenticated as an admin or not
37
+
38
+//        $user = $this->authenticate();
39
+//
40
+//        if (UserService::isAdmin($user))
41
+//            return $user;
42
+//        else
43
+        \App::abort(401, 'UNAUTHORIZED');
44
+    }
45
+
46
+}

+ 11
- 0
app/Http/Controllers/Controller.php Bestand weergeven

@@ -0,0 +1,11 @@
1
+<?php namespace App\Http\Controllers;
2
+
3
+use Illuminate\Foundation\Bus\DispatchesCommands;
4
+use Illuminate\Routing\Controller as BaseController;
5
+use Illuminate\Foundation\Validation\ValidatesRequests;
6
+
7
+abstract class Controller extends BaseController {
8
+
9
+	use DispatchesCommands, ValidatesRequests;
10
+
11
+}

+ 24
- 0
app/Http/Controllers/UserController.php Bestand weergeven

@@ -0,0 +1,24 @@
1
+<?php
2
+/**
3
+ * Created by PhpStorm.
4
+ * User: adrien.gandarias
5
+ * Date: 08/04/2015
6
+ * Time: 10:16
7
+ */
8
+
9
+namespace App\Http\Controllers;
10
+
11
+
12
+use App\Http\Business\UserBusiness;
13
+use Illuminate\Http\Request;
14
+
15
+class UserController extends AbstractController
16
+{
17
+
18
+    public function getAll(Request $request)
19
+    {
20
+        $business = new UserBusiness($request->all());
21
+        return $business->getAll();
22
+    }
23
+
24
+}

+ 23
- 0
app/Http/DAL/Models/AbstractModel.php Bestand weergeven

@@ -0,0 +1,23 @@
1
+<?php
2
+/**
3
+ * Created by JetBrains PhpStorm.
4
+ * User: cedric.schneider
5
+ * Date: 16/04/15
6
+ * Time: 12:00
7
+ * To change this template use File | Settings | File Templates.
8
+ */
9
+
10
+namespace App\Http\DAL\Models;
11
+
12
+use Illuminate\Database\Eloquent\Model;
13
+
14
+abstract class AbstractModel extends Model
15
+{
16
+    /**
17
+     * Mapping from DBO model to business model.
18
+     * If this model has no DBO equivalent, do nothing in this function
19
+     * @param Model $eloquentModel
20
+     * @return \App\Http\DBO\AbstractModel
21
+     */
22
+    public abstract function toBusinessModel();
23
+}

+ 36
- 0
app/Http/DAL/Models/User.php Bestand weergeven

@@ -0,0 +1,36 @@
1
+<?php
2
+/**
3
+ * Created by PhpStorm.
4
+ * User: adrien.gandarias
5
+ * Date: 08/04/2015
6
+ * Time: 10:10
7
+ */
8
+
9
+namespace App\Http\DAL\Models;
10
+
11
+use App\Http\DBO\UserDBO;
12
+use Illuminate\Database\Eloquent\Model;
13
+
14
+/**
15
+ * App\Http\DAL\Models\User
16
+ *
17
+ * @property integer $id 
18
+ * @property string $name 
19
+ * @property \Carbon\Carbon $created_at 
20
+ * @property \Carbon\Carbon $updated_at 
21
+ * @method static \Illuminate\Database\Query\Builder|\App\Http\DAL\Models\User whereId($value)
22
+ * @method static \Illuminate\Database\Query\Builder|\App\Http\DAL\Models\User whereName($value)
23
+ * @method static \Illuminate\Database\Query\Builder|\App\Http\DAL\Models\User whereCreatedAt($value)
24
+ * @method static \Illuminate\Database\Query\Builder|\App\Http\DAL\Models\User whereUpdatedAt($value)
25
+ */
26
+class User extends AbstractModel
27
+{
28
+    public function toBusinessModel()
29
+    {
30
+        $user = new UserDBO();
31
+        $user->setId($this->id);
32
+        $user->setName($this->name);
33
+
34
+        return $user;
35
+    }
36
+}

+ 31
- 0
app/Http/DAL/UserDAL.php Bestand weergeven

@@ -0,0 +1,31 @@
1
+<?php
2
+/**
3
+ * Created by PhpStorm.
4
+ * User: adrien.gandarias
5
+ * Date: 08/04/2015
6
+ * Time: 10:12
7
+ */
8
+
9
+namespace App\Http\DAL;
10
+
11
+
12
+use App\Http\DAL\Models\User;
13
+
14
+class UserDAL
15
+{
16
+    public static function getAll()
17
+    {
18
+        $user = User::all();
19
+        if (is_null($user))
20
+            return null;
21
+
22
+        $tab = [];
23
+
24
+        /* @var $user User[] */
25
+        foreach ($user as $q) {
26
+            $tab[] = $q->toBusinessModel();
27
+        }
28
+        return $tab;
29
+    }
30
+
31
+}

+ 22
- 0
app/Http/DBO/AbstractModel.php Bestand weergeven

@@ -0,0 +1,22 @@
1
+<?php
2
+/**
3
+ * Created by PhpStorm.
4
+ * User: adrien.gandarias
5
+ * Date: 08/04/2015
6
+ * Time: 10:00
7
+ */
8
+
9
+namespace App\Http\DBO;
10
+
11
+
12
+use Illuminate\Database\Eloquent\Model;
13
+
14
+abstract class AbstractModel implements \JsonSerializable {
15
+    /**
16
+     * @return string
17
+     */
18
+    public function __toString()
19
+    {
20
+        return json_encode($this);
21
+    }
22
+}

+ 72
- 0
app/Http/DBO/UserDBO.php Bestand weergeven

@@ -0,0 +1,72 @@
1
+<?php
2
+/**
3
+ * Created by PhpStorm.
4
+ * User: adrien.gandarias
5
+ * Date: 08/04/2015
6
+ * Time: 10:10
7
+ */
8
+
9
+namespace App\Http\DBO;
10
+
11
+
12
+use Illuminate\Database\Eloquent\Model;
13
+
14
+class UserDBO extends AbstractModel
15
+{
16
+    /**
17
+     * @var int
18
+     */
19
+    private $id;
20
+
21
+    /**
22
+     * @var string
23
+     */
24
+    private $name;
25
+
26
+    /**
27
+     * (PHP 5 &gt;= 5.4.0)<br/>
28
+     * Specify data which should be serialized to JSON
29
+     * @link http://php.net/manual/en/jsonserializable.jsonserialize.php
30
+     * @return mixed data which can be serialized by <b>json_encode</b>,
31
+     * which is a value of any type other than a resource.
32
+     */
33
+    function jsonSerialize()
34
+    {
35
+        return [
36
+            'id' => $this->id,
37
+            'name' => $this->name
38
+        ];
39
+    }
40
+
41
+    /**
42
+     * @param int $id
43
+     */
44
+    public function setId($id)
45
+    {
46
+        $this->id = $id;
47
+    }
48
+
49
+    /**
50
+     * @return int
51
+     */
52
+    public function getId()
53
+    {
54
+        return $this->id;
55
+    }
56
+
57
+    /**
58
+     * @param string $name
59
+     */
60
+    public function setName($name)
61
+    {
62
+        $this->name = $name;
63
+    }
64
+
65
+    /**
66
+     * @return string
67
+     */
68
+    public function getName()
69
+    {
70
+        return $this->name;
71
+    }
72
+}

+ 31
- 0
app/Http/Kernel.php Bestand weergeven

@@ -0,0 +1,31 @@
1
+<?php namespace App\Http;
2
+
3
+use Illuminate\Foundation\Http\Kernel as HttpKernel;
4
+
5
+class Kernel extends HttpKernel {
6
+
7
+	/**
8
+	 * The application's global HTTP middleware stack.
9
+	 *
10
+	 * @var array
11
+	 */
12
+	protected $middleware = [
13
+		'Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode',
14
+		'Illuminate\Cookie\Middleware\EncryptCookies',
15
+		'Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse',
16
+		'Illuminate\Session\Middleware\StartSession',
17
+		'Illuminate\View\Middleware\ShareErrorsFromSession'
18
+	];
19
+
20
+	/**
21
+	 * The application's route middleware.
22
+	 *
23
+	 * @var array
24
+	 */
25
+	protected $routeMiddleware = [
26
+		'auth' => 'App\Http\Middleware\Authenticate',
27
+		'auth.basic' => 'Illuminate\Auth\Middleware\AuthenticateWithBasicAuth',
28
+		'guest' => 'App\Http\Middleware\RedirectIfAuthenticated',
29
+	];
30
+
31
+}

+ 9
- 0
app/Http/Requests/Request.php Bestand weergeven

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

+ 19
- 0
app/Http/routes.php Bestand weergeven

@@ -0,0 +1,19 @@
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
+    echo 'Hello World';
16
+});
17
+
18
+
19
+Route::get('/user', 'UserController@getAll');

+ 27
- 0
app/Providers/AppServiceProvider.php Bestand weergeven

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

+ 34
- 0
app/Providers/BusServiceProvider.php Bestand weergeven

@@ -0,0 +1,34 @@
1
+<?php namespace App\Providers;
2
+
3
+use Illuminate\Bus\Dispatcher;
4
+use Illuminate\Support\ServiceProvider;
5
+
6
+class BusServiceProvider extends ServiceProvider {
7
+
8
+	/**
9
+	 * Bootstrap any application services.
10
+	 *
11
+	 * @param  \Illuminate\Bus\Dispatcher  $dispatcher
12
+	 * @return void
13
+	 */
14
+	public function boot(Dispatcher $dispatcher)
15
+	{
16
+		$dispatcher->mapUsing(function($command)
17
+		{
18
+			return Dispatcher::simpleMapping(
19
+				$command, 'App\Commands', 'App\Handlers\Commands'
20
+			);
21
+		});
22
+	}
23
+
24
+	/**
25
+	 * Register any application services.
26
+	 *
27
+	 * @return void
28
+	 */
29
+	public function register()
30
+	{
31
+		//
32
+	}
33
+
34
+}

+ 23
- 0
app/Providers/ConfigServiceProvider.php Bestand weergeven

@@ -0,0 +1,23 @@
1
+<?php namespace App\Providers;
2
+
3
+use Illuminate\Support\ServiceProvider;
4
+
5
+class ConfigServiceProvider extends ServiceProvider {
6
+
7
+	/**
8
+	 * Overwrite any vendor / package configuration.
9
+	 *
10
+	 * This service provider is intended to provide a convenient location for you
11
+	 * to overwrite any "vendor" or package configuration that you may want to
12
+	 * modify before the application handles the incoming request / command.
13
+	 *
14
+	 * @return void
15
+	 */
16
+	public function register()
17
+	{
18
+		config([
19
+			//
20
+		]);
21
+	}
22
+
23
+}

+ 32
- 0
app/Providers/EventServiceProvider.php Bestand weergeven

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

+ 44
- 0
app/Providers/RouteServiceProvider.php Bestand weergeven

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

+ 51
- 0
artisan Bestand weergeven

@@ -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');
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 Bestand weergeven

@@ -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',
31
+	'App\Http\Kernel'
32
+);
33
+
34
+$app->singleton(
35
+	'Illuminate\Contracts\Console\Kernel',
36
+	'App\Console\Kernel'
37
+);
38
+
39
+$app->singleton(
40
+	'Illuminate\Contracts\Debug\ExceptionHandler',
41
+	'App\Exceptions\Handler'
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;

+ 35
- 0
bootstrap/autoload.php Bestand weergeven

@@ -0,0 +1,35 @@
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__.'/../vendor/compiled.php';
31
+
32
+if (file_exists($compiledPath))
33
+{
34
+	require $compiledPath;
35
+}

+ 50
- 0
composer.json Bestand weergeven

@@ -0,0 +1,50 @@
1
+{
2
+  "name": "laravel/laravel",
3
+  "description": "The Laravel Framework.",
4
+  "keywords": [
5
+    "framework",
6
+    "laravel"
7
+  ],
8
+  "license": "MIT",
9
+  "type": "project",
10
+  "require": {
11
+    "laravel/framework": "5.0.*",
12
+    "barryvdh/laravel-ide-helper": "~2.0",
13
+    "doctrine/dbal": "~2.3",
14
+    "3ie/laravel-storedprocedures": "0.1.*"
15
+  },
16
+  "require-dev": {
17
+    "phpunit/phpunit": "~4.0",
18
+    "phpspec/phpspec": "~2.1"
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-install-cmd": [
35
+      "php artisan clear-compiled",
36
+      "php artisan optimize"
37
+    ],
38
+    "post-update-cmd": [
39
+      "php artisan clear-compiled",
40
+      "php artisan optimize"
41
+    ],
42
+    "post-create-project-cmd": [
43
+      "php -r \"copy('.env.example', '.env');\"",
44
+      "php artisan key:generate"
45
+    ]
46
+  },
47
+  "config": {
48
+    "preferred-install": "dist"
49
+  }
50
+}

+ 3440
- 0
composer.lock
Diff onderdrukt omdat het te groot bestand
Bestand weergeven


+ 203
- 0
config/app.php Bestand weergeven

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

+ 67
- 0
config/auth.php Bestand weergeven

@@ -0,0 +1,67 @@
1
+<?php
2
+
3
+return [
4
+
5
+	/*
6
+	|--------------------------------------------------------------------------
7
+	| Default Authentication Driver
8
+	|--------------------------------------------------------------------------
9
+	|
10
+	| This option controls the authentication driver that will be utilized.
11
+	| This driver manages the retrieval and authentication of the users
12
+	| attempting to get access to protected areas of your application.
13
+	|
14
+	| Supported: "database", "eloquent"
15
+	|
16
+	*/
17
+
18
+	'driver' => 'eloquent',
19
+
20
+	/*
21
+	|--------------------------------------------------------------------------
22
+	| Authentication Model
23
+	|--------------------------------------------------------------------------
24
+	|
25
+	| When using the "Eloquent" authentication driver, we need to know which
26
+	| Eloquent model should be used to retrieve your users. Of course, it
27
+	| is often just the "User" model but you may use whatever you like.
28
+	|
29
+	*/
30
+
31
+	'model' => 'App\User',
32
+
33
+	/*
34
+	|--------------------------------------------------------------------------
35
+	| Authentication Table
36
+	|--------------------------------------------------------------------------
37
+	|
38
+	| When using the "Database" authentication driver, we need to know which
39
+	| table should be used to retrieve your users. We have chosen a basic
40
+	| default value but you may easily change it to any table you like.
41
+	|
42
+	*/
43
+
44
+	'table' => 'users',
45
+
46
+	/*
47
+	|--------------------------------------------------------------------------
48
+	| Password Reset Settings
49
+	|--------------------------------------------------------------------------
50
+	|
51
+	| Here you may set the options for resetting passwords including the view
52
+	| that is your password reset e-mail. You can also set the name of the
53
+	| table that maintains all of the reset tokens for your application.
54
+	|
55
+	| The expire time is the number of minutes that the reset token should be
56
+	| considered valid. This security feature keeps tokens short-lived so
57
+	| they have less time to be guessed. You may change this as needed.
58
+	|
59
+	*/
60
+
61
+	'password' => [
62
+		'email' => 'emails.password',
63
+		'table' => 'password_resets',
64
+		'expire' => 60,
65
+	],
66
+
67
+];

+ 79
- 0
config/cache.php Bestand weergeven

@@ -0,0 +1,79 @@
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' => '127.0.0.1', 'port' => 11211, 'weight' => 100
55
+				],
56
+			],
57
+		],
58
+
59
+		'redis' => [
60
+			'driver' => 'redis',
61
+			'connection' => 'default',
62
+		],
63
+
64
+	],
65
+
66
+	/*
67
+	|--------------------------------------------------------------------------
68
+	| Cache Key Prefix
69
+	|--------------------------------------------------------------------------
70
+	|
71
+	| When utilizing a RAM based store such as APC or Memcached, there might
72
+	| be other applications utilizing the same cache. So, we'll specify a
73
+	| value to get prefixed to all our keys so we can avoid collisions.
74
+	|
75
+	*/
76
+
77
+	'prefix' => 'laravel',
78
+
79
+];

+ 41
- 0
config/compile.php Bestand weergeven

@@ -0,0 +1,41 @@
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
+		realpath(__DIR__.'/../app/Providers/AppServiceProvider.php'),
19
+		realpath(__DIR__.'/../app/Providers/BusServiceProvider.php'),
20
+		realpath(__DIR__.'/../app/Providers/ConfigServiceProvider.php'),
21
+		realpath(__DIR__.'/../app/Providers/EventServiceProvider.php'),
22
+		realpath(__DIR__.'/../app/Providers/RouteServiceProvider.php'),
23
+
24
+	],
25
+
26
+	/*
27
+	|--------------------------------------------------------------------------
28
+	| Compiled File Providers
29
+	|--------------------------------------------------------------------------
30
+	|
31
+	| Here you may list service providers which define a "compiles" function
32
+	| that returns additional files that should be compiled, providing an
33
+	| easy way to get common files from any packages you are utilizing.
34
+	|
35
+	*/
36
+
37
+	'providers' => [
38
+		//
39
+	],
40
+
41
+];

+ 125
- 0
config/database.php Bestand weergeven

@@ -0,0 +1,125 @@
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' => 'pgsql',
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
+		'sqlite' => [
50
+			'driver'   => 'sqlite',
51
+			'database' => storage_path().'/database.sqlite',
52
+			'prefix'   => '',
53
+		],
54
+
55
+		'mysql' => [
56
+			'driver'    => 'mysql',
57
+			'host'      => env('DB_HOST', 'localhost'),
58
+			'database'  => env('DB_DATABASE', 'forge'),
59
+			'username'  => env('DB_USERNAME', 'forge'),
60
+			'password'  => env('DB_PASSWORD', ''),
61
+			'charset'   => 'utf8',
62
+			'collation' => 'utf8_unicode_ci',
63
+			'prefix'    => '',
64
+			'strict'    => false,
65
+		],
66
+
67
+		'pgsql' => [
68
+			'driver'   => 'pgsql',
69
+			'host'     => env('DB_HOST', 'localhost'),
70
+			'database' => env('DB_DATABASE', 'test'),
71
+			'username' => env('DB_USERNAME', 'postgres'),
72
+			'password' => env('DB_PASSWORD', 'root'),
73
+			'charset'  => 'utf8',
74
+			'prefix'   => '',
75
+			'schema'   => 'public',
76
+		],
77
+
78
+		'sqlsrv' => [
79
+			'driver'   => 'sqlsrv',
80
+			'host'     => env('DB_HOST', 'localhost'),
81
+			'database' => env('DB_DATABASE', 'forge'),
82
+			'username' => env('DB_USERNAME', 'forge'),
83
+			'password' => env('DB_PASSWORD', ''),
84
+			'prefix'   => '',
85
+		],
86
+
87
+	],
88
+
89
+	/*
90
+	|--------------------------------------------------------------------------
91
+	| Migration Repository Table
92
+	|--------------------------------------------------------------------------
93
+	|
94
+	| This table keeps track of all the migrations that have already run for
95
+	| your application. Using this information, we can determine which of
96
+	| the migrations on disk haven't actually been run in the database.
97
+	|
98
+	*/
99
+
100
+	'migrations' => 'migrations',
101
+
102
+	/*
103
+	|--------------------------------------------------------------------------
104
+	| Redis Databases
105
+	|--------------------------------------------------------------------------
106
+	|
107
+	| Redis is an open source, fast, and advanced key-value store that also
108
+	| provides a richer set of commands than a typical key-value systems
109
+	| such as APC or Memcached. Laravel makes it easy to dig right in.
110
+	|
111
+	*/
112
+
113
+	'redis' => [
114
+
115
+		'cluster' => false,
116
+
117
+		'default' => [
118
+			'host'     => '127.0.0.1',
119
+			'port'     => 6379,
120
+			'database' => 0,
121
+		],
122
+
123
+	],
124
+
125
+];

+ 71
- 0
config/filesystems.php Bestand weergeven

@@ -0,0 +1,71 @@
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", "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
+		's3' => [
52
+			'driver' => 's3',
53
+			'key'    => 'your-key',
54
+			'secret' => 'your-secret',
55
+			'region' => 'your-region',
56
+			'bucket' => 'your-bucket',
57
+		],
58
+
59
+		'rackspace' => [
60
+			'driver'    => 'rackspace',
61
+			'username'  => 'your-username',
62
+			'key'       => 'your-key',
63
+			'container' => 'your-container',
64
+			'endpoint'  => 'https://identity.api.rackspacecloud.com/v2.0/',
65
+			'region'    => 'IAD',
66
+			'url_type'  => 'publicURL'
67
+		],
68
+
69
+	],
70
+
71
+];

+ 89
- 0
config/ide-helper.php Bestand weergeven

@@ -0,0 +1,89 @@
1
+<?php 
2
+
3
+return array(
4
+
5
+    /*
6
+    |--------------------------------------------------------------------------
7
+    | Filename & Format
8
+    |--------------------------------------------------------------------------
9
+    |
10
+    | The default filename (without extension) and the format (php or json)
11
+    |
12
+    */
13
+
14
+    'filename'  => '_ide_helper',
15
+    'format'    => 'php',
16
+
17
+    /*
18
+    |--------------------------------------------------------------------------
19
+    | Helper files to include
20
+    |--------------------------------------------------------------------------
21
+    |
22
+    | Include helper files. By default not included, but can be toggled with the
23
+    | -- helpers (-H) option. Extra helper files can be included.
24
+    |
25
+    */
26
+
27
+    'include_helpers' => false,
28
+
29
+    'helper_files' => array(
30
+        base_path().'/vendor/laravel/framework/src/Illuminate/Support/helpers.php',
31
+    ),
32
+
33
+    /*
34
+    |--------------------------------------------------------------------------
35
+    | Model locations to include
36
+    |--------------------------------------------------------------------------
37
+    |
38
+    | Define in which directories the ide-helper:models command should look
39
+    | for models.
40
+    |
41
+    */
42
+
43
+    'model_locations' => array(
44
+        'app',
45
+    ),
46
+
47
+
48
+    /*
49
+    |--------------------------------------------------------------------------
50
+    | Extra classes
51
+    |--------------------------------------------------------------------------
52
+    |
53
+    | These implementations are not really extended, but called with magic functions
54
+    |
55
+    */
56
+
57
+    'extra' => array(
58
+        'Eloquent' => array('Illuminate\Database\Eloquent\Builder', 'Illuminate\Database\Query\Builder'),
59
+        'Session' => array('Illuminate\Session\Store'),
60
+    ),
61
+
62
+    'magic' => array(
63
+        'Log' => array(
64
+            'debug'     => 'Monolog\Logger::addDebug',
65
+            'info'      => 'Monolog\Logger::addInfo',
66
+            'notice'    => 'Monolog\Logger::addNotice',
67
+            'warning'   => 'Monolog\Logger::addWarning',
68
+            'error'     => 'Monolog\Logger::addError',
69
+            'critical'  => 'Monolog\Logger::addCritical',
70
+            'alert'     => 'Monolog\Logger::addAlert',
71
+            'emergency' => 'Monolog\Logger::addEmergency',
72
+        )
73
+    ),
74
+    
75
+    /*
76
+    |--------------------------------------------------------------------------
77
+    | Interface implementations
78
+    |--------------------------------------------------------------------------
79
+    |
80
+    | These interfaces will be replaced with the implementing class. Some interfaces
81
+    | are detected by the helpers, others can be listed below.
82
+    |
83
+    */
84
+    
85
+    'interfaces' => array(
86
+        '\Illuminate\Contracts\Auth\Authenticatable' => config('auth.model', 'App\User'),
87
+    )
88
+
89
+);

+ 7
- 0
config/laravel-storedprocedures.php Bestand weergeven

@@ -0,0 +1,7 @@
1
+<?php
2
+
3
+return array(
4
+    'schema'                => 'public',
5
+    'model_save_dir'        => 'Http/DAL/stored_procedures/',
6
+    'model_namespace'       => 'App\\Http\\DAL\\stored_procedures'
7
+);

+ 124
- 0
config/mail.php Bestand weergeven

@@ -0,0 +1,124 @@
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", "log"
15
+	|
16
+	*/
17
+
18
+	'driver' => env('MAIL_DRIVER', 'smtp'),
19
+
20
+	/*
21
+	|--------------------------------------------------------------------------
22
+	| SMTP Host Address
23
+	|--------------------------------------------------------------------------
24
+	|
25
+	| Here you may provide the host address of the SMTP server used by your
26
+	| applications. A default option is provided that is compatible with
27
+	| the Mailgun mail service which will provide reliable deliveries.
28
+	|
29
+	*/
30
+
31
+	'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
32
+
33
+	/*
34
+	|--------------------------------------------------------------------------
35
+	| SMTP Host Port
36
+	|--------------------------------------------------------------------------
37
+	|
38
+	| This is the SMTP port used by your application to deliver e-mails to
39
+	| users of the application. Like the host we have set this value to
40
+	| stay compatible with the Mailgun e-mail application by default.
41
+	|
42
+	*/
43
+
44
+	'port' => env('MAIL_PORT', 587),
45
+
46
+	/*
47
+	|--------------------------------------------------------------------------
48
+	| Global "From" Address
49
+	|--------------------------------------------------------------------------
50
+	|
51
+	| You may wish for all e-mails sent by your application to be sent from
52
+	| the same address. Here, you may specify a name and address that is
53
+	| used globally for all e-mails that are sent by your application.
54
+	|
55
+	*/
56
+
57
+	'from' => ['address' => null, 'name' => null],
58
+
59
+	/*
60
+	|--------------------------------------------------------------------------
61
+	| E-Mail Encryption Protocol
62
+	|--------------------------------------------------------------------------
63
+	|
64
+	| Here you may specify the encryption protocol that should be used when
65
+	| the application send e-mail messages. A sensible default using the
66
+	| transport layer security protocol should provide great security.
67
+	|
68
+	*/
69
+
70
+	'encryption' => 'tls',
71
+
72
+	/*
73
+	|--------------------------------------------------------------------------
74
+	| SMTP Server Username
75
+	|--------------------------------------------------------------------------
76
+	|
77
+	| If your SMTP server requires a username for authentication, you should
78
+	| set it here. This will get used to authenticate with your server on
79
+	| connection. You may also set the "password" value below this one.
80
+	|
81
+	*/
82
+
83
+	'username' => env('MAIL_USERNAME'),
84
+
85
+	/*
86
+	|--------------------------------------------------------------------------
87
+	| SMTP Server Password
88
+	|--------------------------------------------------------------------------
89
+	|
90
+	| Here you may set the password required by your SMTP server to send out
91
+	| messages from your application. This will be given to the server on
92
+	| connection so that the application will be able to send messages.
93
+	|
94
+	*/
95
+
96
+	'password' => env('MAIL_PASSWORD'),
97
+
98
+	/*
99
+	|--------------------------------------------------------------------------
100
+	| Sendmail System Path
101
+	|--------------------------------------------------------------------------
102
+	|
103
+	| When using the "sendmail" driver to send e-mails, we will need to know
104
+	| the path to where Sendmail lives on this server. A default path has
105
+	| been provided here, which will work well on most of your systems.
106
+	|
107
+	*/
108
+
109
+	'sendmail' => '/usr/sbin/sendmail -bs',
110
+
111
+	/*
112
+	|--------------------------------------------------------------------------
113
+	| Mail "Pretend"
114
+	|--------------------------------------------------------------------------
115
+	|
116
+	| When this option is enabled, e-mail will not actually be sent over the
117
+	| web and will instead be written to your application's logs files so
118
+	| you may inspect the message. This is great for local development.
119
+	|
120
+	*/
121
+
122
+	'pretend' => false,
123
+
124
+];

+ 92
- 0
config/queue.php Bestand weergeven

@@ -0,0 +1,92 @@
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",
15
+	|            "sqs", "iron", "redis"
16
+	|
17
+	*/
18
+
19
+	'default' => env('QUEUE_DRIVER', 'sync'),
20
+
21
+	/*
22
+	|--------------------------------------------------------------------------
23
+	| Queue Connections
24
+	|--------------------------------------------------------------------------
25
+	|
26
+	| Here you may configure the connection information for each server that
27
+	| is used by your application. A default configuration has been added
28
+	| for each back-end shipped with Laravel. You are free to add more.
29
+	|
30
+	*/
31
+
32
+	'connections' => [
33
+
34
+		'sync' => [
35
+			'driver' => 'sync',
36
+		],
37
+
38
+		'database' => [
39
+			'driver' => 'database',
40
+			'table' => 'jobs',
41
+			'queue' => 'default',
42
+			'expire' => 60,
43
+		],
44
+
45
+		'beanstalkd' => [
46
+			'driver' => 'beanstalkd',
47
+			'host'   => 'localhost',
48
+			'queue'  => 'default',
49
+			'ttr'    => 60,
50
+		],
51
+
52
+		'sqs' => [
53
+			'driver' => 'sqs',
54
+			'key'    => 'your-public-key',
55
+			'secret' => 'your-secret-key',
56
+			'queue'  => 'your-queue-url',
57
+			'region' => 'us-east-1',
58
+		],
59
+
60
+		'iron' => [
61
+			'driver'  => 'iron',
62
+			'host'    => 'mq-aws-us-east-1.iron.io',
63
+			'token'   => 'your-token',
64
+			'project' => 'your-project-id',
65
+			'queue'   => 'your-queue-name',
66
+			'encrypt' => true,
67
+		],
68
+
69
+		'redis' => [
70
+			'driver' => 'redis',
71
+			'queue'  => 'default',
72
+			'expire' => 60,
73
+		],
74
+
75
+	],
76
+
77
+	/*
78
+	|--------------------------------------------------------------------------
79
+	| Failed Queue Jobs
80
+	|--------------------------------------------------------------------------
81
+	|
82
+	| These options configure the behavior of failed queue job logging so you
83
+	| can control which database and table are used to store the jobs that
84
+	| have failed. You may change them to any database / table you wish.
85
+	|
86
+	*/
87
+
88
+	'failed' => [
89
+		'database' => 'mysql', 'table' => 'failed_jobs',
90
+	],
91
+
92
+];

+ 37
- 0
config/services.php Bestand weergeven

@@ -0,0 +1,37 @@
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' => '',
19
+		'secret' => '',
20
+	],
21
+
22
+	'mandrill' => [
23
+		'secret' => '',
24
+	],
25
+
26
+	'ses' => [
27
+		'key' => '',
28
+		'secret' => '',
29
+		'region' => 'us-east-1',
30
+	],
31
+
32
+	'stripe' => [
33
+		'model'  => 'App\User',
34
+		'secret' => '',
35
+	],
36
+
37
+];

+ 153
- 0
config/session.php Bestand weergeven

@@ -0,0 +1,153 @@
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
+];

+ 33
- 0
config/view.php Bestand weergeven

@@ -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 Bestand weergeven

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

+ 0
- 0
database/migrations/.gitkeep Bestand weergeven


+ 0
- 0
database/seeds/.gitkeep Bestand weergeven


+ 20
- 0
database/seeds/DatabaseSeeder.php Bestand weergeven

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

+ 16
- 0
gulpfile.js Bestand weergeven

@@ -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 Less
10
+ | file for our application, as well as publishing vendor resources.
11
+ |
12
+ */
13
+
14
+elixir(function(mix) {
15
+    mix.less('app.less');
16
+});

+ 7
- 0
package.json Bestand weergeven

@@ -0,0 +1,7 @@
1
+{
2
+  "private": true,
3
+  "devDependencies": {
4
+    "gulp": "^3.8.8",
5
+    "laravel-elixir": "*"
6
+  }
7
+}

+ 5
- 0
phpspec.yml Bestand weergeven

@@ -0,0 +1,5 @@
1
+suites:
2
+    main:
3
+        namespace: App
4
+        psr4_prefix: App
5
+        src_path: app

+ 23
- 0
phpunit.xml Bestand weergeven

@@ -0,0 +1,23 @@
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
+         syntaxCheck="false">
12
+    <testsuites>
13
+        <testsuite name="Application Test Suite">
14
+            <directory>./tests/</directory>
15
+        </testsuite>
16
+    </testsuites>
17
+    <php>
18
+        <env name="APP_ENV" value="testing"/>
19
+        <env name="CACHE_DRIVER" value="array"/>
20
+        <env name="SESSION_DRIVER" value="array"/>
21
+        <env name="QUEUE_DRIVER" value="sync"/>
22
+    </php>
23
+</phpunit>

+ 15
- 0
public/.htaccess Bestand weergeven

@@ -0,0 +1,15 @@
1
+<IfModule mod_rewrite.c>
2
+    <IfModule mod_negotiation.c>
3
+        Options -MultiViews
4
+    </IfModule>
5
+
6
+    RewriteEngine On
7
+
8
+    # Redirect Trailing Slashes...
9
+    RewriteRule ^(.*)/$ /$1 [L,R=301]
10
+
11
+    # Handle Front Controller...
12
+    RewriteCond %{REQUEST_FILENAME} !-d
13
+    RewriteCond %{REQUEST_FILENAME} !-f
14
+    RewriteRule ^ index.php [L]
15
+</IfModule>

+ 0
- 0
public/favicon.ico Bestand weergeven


+ 57
- 0
public/index.php Bestand weergeven

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

+ 2
- 0
public/robots.txt Bestand weergeven

@@ -0,0 +1,2 @@
1
+User-agent: *
2
+Disallow:

+ 1
- 0
resources/assets/less/app.less Bestand weergeven

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

+ 19
- 0
resources/lang/en/pagination.php Bestand weergeven

@@ -0,0 +1,19 @@
1
+<?php
2
+
3
+return [
4
+
5
+	/*
6
+	|--------------------------------------------------------------------------
7
+	| Pagination Language Lines
8
+	|--------------------------------------------------------------------------
9
+	|
10
+	| The following language lines are used by the paginator library to build
11
+	| the simple pagination links. You are free to change them to anything
12
+	| you want to customize your views to better match your application.
13
+	|
14
+	*/
15
+
16
+	'previous' => '&laquo; Previous',
17
+	'next'     => 'Next &raquo;',
18
+
19
+];

+ 22
- 0
resources/lang/en/passwords.php Bestand weergeven

@@ -0,0 +1,22 @@
1
+<?php
2
+
3
+return [
4
+
5
+	/*
6
+	|--------------------------------------------------------------------------
7
+	| Password Reminder Language Lines
8
+	|--------------------------------------------------------------------------
9
+	|
10
+	| The following language lines are the default lines which match reasons
11
+	| that are given by the password broker for a password update attempt
12
+	| has failed, such as for an invalid token or invalid new password.
13
+	|
14
+	*/
15
+
16
+	"password" => "Passwords must be at least six characters and match the confirmation.",
17
+	"user" => "We can't find a user with that e-mail address.",
18
+	"token" => "This password reset token is invalid.",
19
+	"sent" => "We have e-mailed your password reset link!",
20
+	"reset" => "Your password has been reset!",
21
+
22
+];

+ 107
- 0
resources/lang/en/validation.php Bestand weergeven

@@ -0,0 +1,107 @@
1
+<?php
2
+
3
+return [
4
+
5
+	/*
6
+	|--------------------------------------------------------------------------
7
+	| Validation Language Lines
8
+	|--------------------------------------------------------------------------
9
+	|
10
+	| The following language lines contain the default error messages used by
11
+	| the validator class. Some of these rules have multiple versions such
12
+	| as the size rules. Feel free to tweak each of these messages here.
13
+	|
14
+	*/
15
+
16
+	"accepted"             => "The :attribute must be accepted.",
17
+	"active_url"           => "The :attribute is not a valid URL.",
18
+	"after"                => "The :attribute must be a date after :date.",
19
+	"alpha"                => "The :attribute may only contain letters.",
20
+	"alpha_dash"           => "The :attribute may only contain letters, numbers, and dashes.",
21
+	"alpha_num"            => "The :attribute may only contain letters and numbers.",
22
+	"array"                => "The :attribute must be an array.",
23
+	"before"               => "The :attribute must be a date before :date.",
24
+	"between"              => [
25
+		"numeric" => "The :attribute must be between :min and :max.",
26
+		"file"    => "The :attribute must be between :min and :max kilobytes.",
27
+		"string"  => "The :attribute must be between :min and :max characters.",
28
+		"array"   => "The :attribute must have between :min and :max items.",
29
+	],
30
+	"boolean"              => "The :attribute field must be true or false.",
31
+	"confirmed"            => "The :attribute confirmation does not match.",
32
+	"date"                 => "The :attribute is not a valid date.",
33
+	"date_format"          => "The :attribute does not match the format :format.",
34
+	"different"            => "The :attribute and :other must be different.",
35
+	"digits"               => "The :attribute must be :digits digits.",
36
+	"digits_between"       => "The :attribute must be between :min and :max digits.",
37
+	"email"                => "The :attribute must be a valid email address.",
38
+	"filled"               => "The :attribute field is required.",
39
+	"exists"               => "The selected :attribute is invalid.",
40
+	"image"                => "The :attribute must be an image.",
41
+	"in"                   => "The selected :attribute is invalid.",
42
+	"integer"              => "The :attribute must be an integer.",
43
+	"ip"                   => "The :attribute must be a valid IP address.",
44
+	"max"                  => [
45
+		"numeric" => "The :attribute may not be greater than :max.",
46
+		"file"    => "The :attribute may not be greater than :max kilobytes.",
47
+		"string"  => "The :attribute may not be greater than :max characters.",
48
+		"array"   => "The :attribute may not have more than :max items.",
49
+	],
50
+	"mimes"                => "The :attribute must be a file of type: :values.",
51
+	"min"                  => [
52
+		"numeric" => "The :attribute must be at least :min.",
53
+		"file"    => "The :attribute must be at least :min kilobytes.",
54
+		"string"  => "The :attribute must be at least :min characters.",
55
+		"array"   => "The :attribute must have at least :min items.",
56
+	],
57
+	"not_in"               => "The selected :attribute is invalid.",
58
+	"numeric"              => "The :attribute must be a number.",
59
+	"regex"                => "The :attribute format is invalid.",
60
+	"required"             => "The :attribute field is required.",
61
+	"required_if"          => "The :attribute field is required when :other is :value.",
62
+	"required_with"        => "The :attribute field is required when :values is present.",
63
+	"required_with_all"    => "The :attribute field is required when :values is present.",
64
+	"required_without"     => "The :attribute field is required when :values is not present.",
65
+	"required_without_all" => "The :attribute field is required when none of :values are present.",
66
+	"same"                 => "The :attribute and :other must match.",
67
+	"size"                 => [
68
+		"numeric" => "The :attribute must be :size.",
69
+		"file"    => "The :attribute must be :size kilobytes.",
70
+		"string"  => "The :attribute must be :size characters.",
71
+		"array"   => "The :attribute must contain :size items.",
72
+	],
73
+	"unique"               => "The :attribute has already been taken.",
74
+	"url"                  => "The :attribute format is invalid.",
75
+	"timezone"             => "The :attribute must be a valid zone.",
76
+
77
+	/*
78
+	|--------------------------------------------------------------------------
79
+	| Custom Validation Language Lines
80
+	|--------------------------------------------------------------------------
81
+	|
82
+	| Here you may specify custom validation messages for attributes using the
83
+	| convention "attribute.rule" to name the lines. This makes it quick to
84
+	| specify a specific custom language line for a given attribute rule.
85
+	|
86
+	*/
87
+
88
+	'custom' => [
89
+		'attribute-name' => [
90
+			'rule-name' => 'custom-message',
91
+		],
92
+	],
93
+
94
+	/*
95
+	|--------------------------------------------------------------------------
96
+	| Custom Validation Attributes
97
+	|--------------------------------------------------------------------------
98
+	|
99
+	| The following language lines are used to swap attribute place-holders
100
+	| with something more reader friendly such as E-Mail Address instead
101
+	| of "email". This simply helps us make messages a little cleaner.
102
+	|
103
+	*/
104
+
105
+	'attributes' => [],
106
+
107
+];

+ 41
- 0
resources/views/errors/503.blade.php Bestand weergeven

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

+ 0
- 0
resources/views/vendor/.gitkeep Bestand weergeven


+ 48
- 0
resources/views/welcome.blade.php Bestand weergeven

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

+ 21
- 0
server.php Bestand weergeven

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

+ 1
- 0
storage/.gitignore Bestand weergeven

@@ -0,0 +1 @@
1
+laravel.log

+ 2
- 0
storage/app/.gitignore Bestand weergeven

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

+ 6
- 0
storage/framework/.gitignore Bestand weergeven

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

+ 2
- 0
storage/framework/cache/.gitignore Bestand weergeven

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

+ 2
- 0
storage/framework/sessions/.gitignore Bestand weergeven

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

+ 2
- 0
storage/framework/views/.gitignore Bestand weergeven

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

+ 2
- 0
storage/logs/.gitignore Bestand weergeven

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

+ 17
- 0
tests/ExampleTest.php Bestand weergeven

@@ -0,0 +1,17 @@
1
+<?php
2
+
3
+class ExampleTest extends TestCase {
4
+
5
+	/**
6
+	 * A basic functional test example.
7
+	 *
8
+	 * @return void
9
+	 */
10
+	public function testBasicExample()
11
+	{
12
+		$response = $this->call('GET', '/');
13
+
14
+		$this->assertEquals(200, $response->getStatusCode());
15
+	}
16
+
17
+}

+ 19
- 0
tests/TestCase.php Bestand weergeven

@@ -0,0 +1,19 @@
1
+<?php
2
+
3
+class TestCase extends Illuminate\Foundation\Testing\TestCase {
4
+
5
+	/**
6
+	 * Creates the application.
7
+	 *
8
+	 * @return \Illuminate\Foundation\Application
9
+	 */
10
+	public function createApplication()
11
+	{
12
+		$app = require __DIR__.'/../bootstrap/app.php';
13
+
14
+		$app->make('Illuminate\Contracts\Console\Kernel')->bootstrap();
15
+
16
+		return $app;
17
+	}
18
+
19
+}

Laden…
Annuleren
Opslaan