Browse Source

init lumen

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

+ 0
- 3
.gitattributes View File

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

+ 0
- 11554
_ide_helper.php
File diff suppressed because it is too large
View File


+ 0
- 19
apache2/camotion-v2.local.conf View File

@@ -1,19 +0,0 @@
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>

+ 0
- 7
apache2/camotion-v2.local.include View File

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

+ 0
- 7
app/Commands/Command.php View File

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

app/Handlers/Commands/.gitkeep → app/Console/Commands/.gitkeep View File


+ 0
- 32
app/Console/Commands/Inspire.php View File

@@ -1,32 +0,0 @@
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
-}

+ 24
- 24
app/Console/Kernel.php View File

@@ -1,29 +1,29 @@
1
-<?php namespace App\Console;
1
+<?php
2 2
 
3
-use Illuminate\Console\Scheduling\Schedule;
4
-use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
5
-
6
-class Kernel extends ConsoleKernel {
3
+namespace App\Console;
7 4
 
8
-	/**
9
-	 * The Artisan commands provided by your application.
10
-	 *
11
-	 * @var array
12
-	 */
13
-	protected $commands = [
14
-		'App\Console\Commands\Inspire',
15
-	];
5
+use Illuminate\Console\Scheduling\Schedule;
6
+use Laravel\Lumen\Console\Kernel as ConsoleKernel;
16 7
 
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
-	}
8
+class Kernel extends ConsoleKernel
9
+{
10
+    /**
11
+     * The Artisan commands provided by your application.
12
+     *
13
+     * @var array
14
+     */
15
+    protected $commands = [
16
+        //
17
+    ];
28 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
+        //
28
+    }
29 29
 }

+ 6
- 3
app/Events/Event.php View File

@@ -1,7 +1,10 @@
1
-<?php namespace App\Events;
1
+<?php
2 2
 
3
-abstract class Event {
3
+namespace App\Events;
4 4
 
5
-	//
5
+use Illuminate\Queue\SerializesModels;
6 6
 
7
+abstract class Event
8
+{
9
+    use SerializesModels;
7 10
 }

+ 36
- 42
app/Exceptions/Handler.php View File

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

+ 0
- 57
app/Http/Business/AbstractBusiness.php View File

@@ -1,57 +0,0 @@
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
-}

+ 0
- 26
app/Http/Business/UserBusiness.php View File

@@ -1,26 +0,0 @@
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
-}

+ 0
- 46
app/Http/Controllers/AbstractController.php View File

@@ -1,46 +0,0 @@
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
-}

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

@@ -1,11 +0,0 @@
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
-}

+ 0
- 24
app/Http/Controllers/UserController.php View File

@@ -1,24 +0,0 @@
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
-}

+ 0
- 23
app/Http/DAL/Models/AbstractModel.php View File

@@ -1,23 +0,0 @@
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
-}

+ 0
- 36
app/Http/DAL/Models/User.php View File

@@ -1,36 +0,0 @@
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
-}

+ 0
- 31
app/Http/DAL/UserDAL.php View File

@@ -1,31 +0,0 @@
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
-}

+ 0
- 22
app/Http/DBO/AbstractModel.php View File

@@ -1,22 +0,0 @@
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
-}

+ 0
- 72
app/Http/DBO/UserDBO.php View File

@@ -1,72 +0,0 @@
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
-}

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

@@ -1,31 +0,0 @@
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
-}

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

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

+ 6
- 7
app/Http/routes.php View File

@@ -6,14 +6,13 @@
6 6
 |--------------------------------------------------------------------------
7 7
 |
8 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.
9
+| It is a breeze. Simply tell Lumen the URIs it should respond to
10
+| and give it the Closure to call when that URI is requested.
11 11
 |
12 12
 */
13 13
 
14
-Route::get('/', function (){
15
-    echo 'Hello World';
16
-});
14
+use Luticate\Auth\Business\LuticateBusiness;
15
+use Luticate\Doc\Business\LuDocBusiness;
17 16
 
18
-
19
-Route::get('/user', 'UserController@getAll');
17
+LuticateBusiness::setupRoutes();
18
+LuDocBusiness::setupRoutes();

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

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

+ 11
- 0
app/Listeners/Listener.php View File

@@ -0,0 +1,11 @@
1
+<?php
2
+
3
+namespace App\Listeners;
4
+
5
+use Illuminate\Queue\InteractsWithQueue;
6
+use Illuminate\Contracts\Queue\ShouldQueue;
7
+
8
+abstract class Listener
9
+{
10
+    //
11
+}

+ 14
- 23
app/Providers/AppServiceProvider.php View File

@@ -1,27 +1,18 @@
1
-<?php namespace App\Providers;
1
+<?php
2 2
 
3
-use Illuminate\Support\ServiceProvider;
4
-
5
-class AppServiceProvider extends ServiceProvider {
3
+namespace App\Providers;
6 4
 
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
-	}
5
+use Illuminate\Support\ServiceProvider;
26 6
 
7
+class AppServiceProvider extends ServiceProvider
8
+{
9
+    /**
10
+     * Register any application services.
11
+     *
12
+     * @return void
13
+     */
14
+    public function register()
15
+    {
16
+        //
17
+    }
27 18
 }

+ 0
- 34
app/Providers/BusServiceProvider.php View File

@@ -1,34 +0,0 @@
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
-}

+ 0
- 23
app/Providers/ConfigServiceProvider.php View File

@@ -1,23 +0,0 @@
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
-}

+ 15
- 28
app/Providers/EventServiceProvider.php View File

@@ -1,32 +1,19 @@
1
-<?php namespace App\Providers;
1
+<?php
2 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
-	];
3
+namespace App\Providers;
18 4
 
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
-	}
5
+use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
31 6
 
7
+class EventServiceProvider extends ServiceProvider
8
+{
9
+    /**
10
+     * The event listener mappings for the application.
11
+     *
12
+     * @var array
13
+     */
14
+    protected $listen = [
15
+        'App\Events\SomeEvent' => [
16
+            'App\Listeners\EventListener',
17
+        ],
18
+    ];
32 19
 }

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

@@ -1,44 +0,0 @@
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
-}

+ 11
- 27
artisan View File

@@ -1,21 +1,21 @@
1 1
 #!/usr/bin/env php
2 2
 <?php
3 3
 
4
+use Symfony\Component\Console\Input\ArgvInput;
5
+use Symfony\Component\Console\Output\ConsoleOutput;
6
+
4 7
 /*
5 8
 |--------------------------------------------------------------------------
6
-| Register The Auto Loader
9
+| Create The Application
7 10
 |--------------------------------------------------------------------------
8 11
 |
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.
12
+| First we need to get an application instance. This creates an instance
13
+| of the application / container and bootstraps the application so it
14
+| is ready to receive HTTP / Console requests from the environment.
13 15
 |
14 16
 */
15 17
 
16
-require __DIR__.'/bootstrap/autoload.php';
17
-
18
-$app = require_once __DIR__.'/bootstrap/app.php';
18
+$app = require __DIR__.'/bootstrap/app.php';
19 19
 
20 20
 /*
21 21
 |--------------------------------------------------------------------------
@@ -28,24 +28,8 @@ $app = require_once __DIR__.'/bootstrap/app.php';
28 28
 |
29 29
 */
30 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
31
+$kernel = $app->make(
32
+    'Illuminate\Contracts\Console\Kernel'
36 33
 );
37 34
 
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);
35
+exit($kernel->handle(new ArgvInput, new ConsoleOutput));

+ 65
- 21
bootstrap/app.php View File

@@ -1,55 +1,99 @@
1 1
 <?php
2 2
 
3
+require_once __DIR__.'/../vendor/autoload.php';
4
+
5
+Dotenv::load(__DIR__.'/../');
6
+
3 7
 /*
4 8
 |--------------------------------------------------------------------------
5 9
 | Create The Application
6 10
 |--------------------------------------------------------------------------
7 11
 |
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.
12
+| Here we will load the environment and create the application instance
13
+| that serves as the central piece of this framework. We'll use this
14
+| application as an "IoC" container and router for this framework.
11 15
 |
12 16
 */
13 17
 
14
-$app = new Illuminate\Foundation\Application(
15
-	realpath(__DIR__.'/../')
18
+$app = new Laravel\Lumen\Application(
19
+    realpath(__DIR__.'/../')
16 20
 );
17 21
 
22
+$app->withFacades();
23
+
24
+$app->withEloquent();
25
+
18 26
 /*
19 27
 |--------------------------------------------------------------------------
20
-| Bind Important Interfaces
28
+| Register Container Bindings
21 29
 |--------------------------------------------------------------------------
22 30
 |
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.
31
+| Now we will register a few bindings in the service container. We will
32
+| register the exception handler and the console kernel. You may add
33
+| your own bindings here if you like or you can make another file.
26 34
 |
27 35
 */
28 36
 
29 37
 $app->singleton(
30
-	'Illuminate\Contracts\Http\Kernel',
31
-	'App\Http\Kernel'
38
+    Illuminate\Contracts\Debug\ExceptionHandler::class,
39
+    App\Exceptions\Handler::class
32 40
 );
33 41
 
34 42
 $app->singleton(
35
-	'Illuminate\Contracts\Console\Kernel',
36
-	'App\Console\Kernel'
43
+    Illuminate\Contracts\Console\Kernel::class,
44
+    App\Console\Kernel::class
37 45
 );
38 46
 
39
-$app->singleton(
40
-	'Illuminate\Contracts\Debug\ExceptionHandler',
41
-	'App\Exceptions\Handler'
42
-);
47
+/*
48
+|--------------------------------------------------------------------------
49
+| Register Middleware
50
+|--------------------------------------------------------------------------
51
+|
52
+| Next, we will register the middleware with the application. These can
53
+| be global middleware that run before and after each request into a
54
+| route or middleware that'll be assigned to some specific routes.
55
+|
56
+*/
57
+
58
+// $app->middleware([
59
+//     // Illuminate\Cookie\Middleware\EncryptCookies::class,
60
+//     // Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
61
+//     // Illuminate\Session\Middleware\StartSession::class,
62
+//     // Illuminate\View\Middleware\ShareErrorsFromSession::class,
63
+//     // Laravel\Lumen\Http\Middleware\VerifyCsrfToken::class,
64
+// ]);
65
+
66
+// $app->routeMiddleware([
67
+
68
+// ]);
69
+
70
+/*
71
+|--------------------------------------------------------------------------
72
+| Register Service Providers
73
+|--------------------------------------------------------------------------
74
+|
75
+| Here we will register all of the application's service providers which
76
+| are used to bind services into the container. Service providers are
77
+| totally optional, so you are not required to uncomment this line.
78
+|
79
+*/
80
+
81
+// $app->register(App\Providers\AppServiceProvider::class);
82
+// $app->register(App\Providers\EventServiceProvider::class);
43 83
 
44 84
 /*
45 85
 |--------------------------------------------------------------------------
46
-| Return The Application
86
+| Load The Application Routes
47 87
 |--------------------------------------------------------------------------
48 88
 |
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.
89
+| Next we will include the routes file so that they can all be added to
90
+| the application. This will provide all of the URLs the application
91
+| can respond to, as well as the controllers that may handle them.
52 92
 |
53 93
 */
54 94
 
95
+$app->group(['namespace' => 'App\Http\Controllers'], function ($app) {
96
+    require __DIR__.'/../app/Http/routes.php';
97
+});
98
+
55 99
 return $app;

+ 0
- 35
bootstrap/autoload.php View File

@@ -1,35 +0,0 @@
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
-}

+ 45
- 47
composer.json View File

@@ -1,50 +1,48 @@
1 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/"
2
+    "name": "laravel/lumen",
3
+    "description": "The Laravel Lumen Framework.",
4
+    "keywords": ["framework", "laravel", "lumen"],
5
+    "license": "MIT",
6
+    "type": "project",
7
+    "repositories": [{
8
+        "type": "vcs",
9
+        "url":  "https://git.rthoni.com/luticate/utils.git"
10
+    },{
11
+        "type": "vcs",
12
+        "url":  "https://git.rthoni.com/luticate/generator.git"
13
+    },{
14
+        "type": "vcs",
15
+        "url":  "https://git.rthoni.com/luticate/auth.git"
16
+    },{
17
+        "type": "vcs",
18
+        "url":  "https://git.rthoni.com/luticate/doc.git"
19
+    }],
20
+    "require": {
21
+        "php": ">=5.5.9",
22
+        "laravel/lumen-framework": "5.1.*",
23
+        "vlucas/phpdotenv": "~1.0",
24
+        "luticate/auth": "0.1.x"
25
+    },
26
+    "require-dev": {
27
+        "phpunit/phpunit": "~4.0",
28
+        "fzaninotto/faker": "~1.0",
29
+        "luticate/generator": "0.1.x",
30
+        "luticate/doc": "0.1.x"
31
+    },
32
+    "autoload": {
33
+        "psr-4": {
34
+            "App\\": "app/"
35
+        },
36
+        "classmap": [
37
+            "database/"
38
+        ]
39
+    },
40
+    "autoload-dev": {
41
+        "classmap": [
42
+            "tests/"
43
+        ]
44
+    },
45
+    "config": {
46
+        "preferred-install": "dist"
26 47
     }
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 48
 }

+ 1498
- 1426
composer.lock
File diff suppressed because it is too large
View File


+ 0
- 203
config/app.php View File

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

+ 0
- 67
config/auth.php View File

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

+ 0
- 79
config/cache.php View File

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

+ 0
- 41
config/compile.php View File

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

+ 0
- 125
config/database.php View File

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

+ 0
- 71
config/filesystems.php View File

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

+ 0
- 89
config/ide-helper.php View File

@@ -1,89 +0,0 @@
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
-);

+ 0
- 7
config/laravel-storedprocedures.php View File

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

+ 0
- 124
config/mail.php View File

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

+ 0
- 92
config/queue.php View File

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

+ 0
- 37
config/services.php View File

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

+ 0
- 153
config/session.php View File

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

+ 0
- 33
config/view.php View File

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

+ 0
- 1
database/.gitignore View File

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

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

@@ -0,0 +1,21 @@
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
+
14
+$factory->define(App\User::class, function ($faker) {
15
+    return [
16
+        'name' => $faker->name,
17
+        'email' => $faker->email,
18
+        'password' => str_random(10),
19
+        'remember_token' => str_random(10),
20
+    ];
21
+});

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


+ 13
- 12
database/seeds/DatabaseSeeder.php View File

@@ -3,18 +3,19 @@
3 3
 use Illuminate\Database\Seeder;
4 4
 use Illuminate\Database\Eloquent\Model;
5 5
 
6
-class DatabaseSeeder extends Seeder {
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();
7 16
 
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
-	}
17
+        // $this->call('UserTableSeeder');
19 18
 
19
+        Model::reguard();
20
+    }
20 21
 }

+ 53
- 0
generate.php View File

@@ -0,0 +1,53 @@
1
+<?php
2
+
3
+use Luticate\Generator\LuGenerator;
4
+
5
+require_once('vendor/autoload.php');
6
+Dotenv::load(".");
7
+
8
+$gen = new LuGenerator(getenv("DB_CONNECTION"), getenv("DB_DATABASE"), getenv("DB_HOST"),
9
+    getenv("DB_PORT"), getenv("DB_USERNAME"), getenv("DB_PASSWORD"));
10
+
11
+$gen->setConfig(array("dbo" =>
12
+    array(
13
+        "namespace" => 'App\Http\DBO',
14
+        "folder" => 'app/Http/DBO'
15
+    ),
16
+    "models" =>
17
+        array(
18
+            "namespace" => 'App\Http\DataAccess\Models',
19
+            "folder" => 'app/Http/DataAccess/Models'
20
+        ),
21