├── .gitignore
├── LICENSE
├── app
├── Console
│ ├── Commands
│ │ └── Inspire.php
│ └── Kernel.php
├── Events
│ └── Event.php
├── Exceptions
│ └── Handler.php
├── Http
│ ├── Controllers
│ │ ├── AppBaseController.php
│ │ ├── Auth
│ │ │ ├── AuthController.php
│ │ │ └── PasswordController.php
│ │ ├── Controller.php
│ │ └── HomeController.php
│ ├── Kernel.php
│ ├── Middleware
│ │ ├── Authenticate.php
│ │ ├── EncryptCookies.php
│ │ ├── RedirectIfAuthenticated.php
│ │ └── VerifyCsrfToken.php
│ ├── Requests
│ │ └── Request.php
│ ├── api_routes.php
│ └── routes.php
├── Jobs
│ └── Job.php
├── Listeners
│ └── .gitkeep
├── Policies
│ └── .gitkeep
├── Providers
│ ├── AppServiceProvider.php
│ ├── AuthServiceProvider.php
│ ├── EventServiceProvider.php
│ └── RouteServiceProvider.php
└── User.php
├── artisan
├── bootstrap
├── app.php
├── autoload.php
└── cache
│ └── .gitignore
├── composer.json
├── composer.lock
├── config
├── app.php
├── auth.php
├── broadcasting.php
├── cache.php
├── compile.php
├── database.php
├── datatables.php
├── excel.php
├── filesystems.php
├── ide-helper.php
├── infyom
│ └── laravel_generator.php
├── mail.php
├── queue.php
├── repository.php
├── services.php
├── session.php
└── view.php
├── database
├── .gitignore
├── factories
│ └── ModelFactory.php
├── migrations
│ ├── .gitkeep
│ ├── 2014_10_12_000000_create_users_table.php
│ └── 2014_10_12_100000_create_password_resets_table.php
└── seeds
│ ├── .gitkeep
│ └── DatabaseSeeder.php
├── gulpfile.js
├── package.json
├── phpunit.xml
├── public
├── .htaccess
├── favicon.ico
├── index.php
├── robots.txt
└── web.config
├── readme.md
├── resources
├── assets
│ └── sass
│ │ └── app.scss
├── lang
│ └── en
│ │ ├── auth.php
│ │ ├── pagination.php
│ │ ├── passwords.php
│ │ └── validation.php
└── views
│ ├── auth
│ ├── emails
│ │ └── password.blade.php
│ ├── login.blade.php
│ ├── passwords
│ │ ├── email.blade.php
│ │ └── reset.blade.php
│ └── register.blade.php
│ ├── errors
│ └── 503.blade.php
│ ├── home.blade.php
│ ├── layouts
│ ├── app.blade.php
│ ├── menu.blade.php
│ └── sidebar.blade.php
│ └── welcome.blade.php
├── server.php
├── storage
├── app
│ ├── .gitignore
│ └── public
│ │ └── .gitignore
├── framework
│ ├── .gitignore
│ ├── cache
│ │ └── .gitignore
│ ├── sessions
│ │ └── .gitignore
│ └── views
│ │ └── .gitignore
└── logs
│ └── .gitignore
└── tests
├── ApiTestTrait.php
├── ExampleTest.php
└── TestCase.php
/.gitignore:
--------------------------------------------------------------------------------
1 | vendor/
2 | node_modules/
3 |
4 | # Laravel 4 specific
5 | bootstrap/compiled.php
6 | app/storage/
7 |
8 | # Laravel 5 & Lumen specific
9 | .env.*.php
10 | .env.php
11 | .env
12 |
13 | # Rocketeer PHP task runner and deployment package. https://github.com/rocketeers/rocketeer
14 | .rocketeer/
15 |
16 | /.idea
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2016 InfyOm Labs
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/app/Console/Commands/Inspire.php:
--------------------------------------------------------------------------------
1 | comment(PHP_EOL.Inspiring::quote().PHP_EOL);
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/app/Console/Kernel.php:
--------------------------------------------------------------------------------
1 | command('inspire')
28 | // ->hourly();
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/app/Events/Event.php:
--------------------------------------------------------------------------------
1 | middleware($this->guestMiddleware(), ['except' => 'logout']);
41 | }
42 |
43 | /**
44 | * Get a validator for an incoming registration request.
45 | *
46 | * @param array $data
47 | * @return \Illuminate\Contracts\Validation\Validator
48 | */
49 | protected function validator(array $data)
50 | {
51 | return Validator::make($data, [
52 | 'name' => 'required|max:255',
53 | 'email' => 'required|email|max:255|unique:users',
54 | 'password' => 'required|min:6|confirmed',
55 | ]);
56 | }
57 |
58 | /**
59 | * Create a new user instance after a valid registration.
60 | *
61 | * @param array $data
62 | * @return User
63 | */
64 | protected function create(array $data)
65 | {
66 | return User::create([
67 | 'name' => $data['name'],
68 | 'email' => $data['email'],
69 | 'password' => bcrypt($data['password']),
70 | ]);
71 | }
72 | }
73 |
--------------------------------------------------------------------------------
/app/Http/Controllers/Auth/PasswordController.php:
--------------------------------------------------------------------------------
1 | middleware('guest');
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/app/Http/Controllers/Controller.php:
--------------------------------------------------------------------------------
1 | middleware('auth');
18 | }
19 |
20 | /**
21 | * Show the application dashboard.
22 | *
23 | * @return \Illuminate\Http\Response
24 | */
25 | public function index()
26 | {
27 | return view('home');
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/app/Http/Kernel.php:
--------------------------------------------------------------------------------
1 | [
27 | \App\Http\Middleware\EncryptCookies::class,
28 | \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
29 | \Illuminate\Session\Middleware\StartSession::class,
30 | \Illuminate\View\Middleware\ShareErrorsFromSession::class,
31 | \App\Http\Middleware\VerifyCsrfToken::class,
32 | ],
33 |
34 | 'api' => [
35 | 'throttle:60,1',
36 | ],
37 | ];
38 |
39 | /**
40 | * The application's route middleware.
41 | *
42 | * These middleware may be assigned to groups or used individually.
43 | *
44 | * @var array
45 | */
46 | protected $routeMiddleware = [
47 | 'auth' => \App\Http\Middleware\Authenticate::class,
48 | 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
49 | 'can' => \Illuminate\Foundation\Http\Middleware\Authorize::class,
50 | 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
51 | 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
52 | ];
53 | }
54 |
--------------------------------------------------------------------------------
/app/Http/Middleware/Authenticate.php:
--------------------------------------------------------------------------------
1 | guest()) {
21 | if ($request->ajax() || $request->wantsJson()) {
22 | return response('Unauthorized.', 401);
23 | } else {
24 | return redirect()->guest('login');
25 | }
26 | }
27 |
28 | return $next($request);
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/app/Http/Middleware/EncryptCookies.php:
--------------------------------------------------------------------------------
1 | check()) {
21 | return redirect('/');
22 | }
23 |
24 | return $next($request);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/app/Http/Middleware/VerifyCsrfToken.php:
--------------------------------------------------------------------------------
1 | 'api', 'namespace' => 'API'], function () {
26 | Route::group(['prefix' => 'v1'], function () {
27 | require config('infyom.laravel_generator.path.api_routes');
28 | });
29 | });
30 |
31 |
32 | Route::get('login', 'Auth\AuthController@getLogin');
33 | Route::post('login', 'Auth\AuthController@postLogin');
34 | Route::get('logout', 'Auth\AuthController@logout');
35 |
36 | // Registration Routes...
37 | Route::get('register', 'Auth\AuthController@getRegister');
38 | Route::post('register', 'Auth\AuthController@postRegister');
39 |
40 | // Password Reset Routes...
41 | Route::get('password/reset', 'Auth\PasswordController@getEmail');
42 | Route::post('password/email', 'Auth\PasswordController@postEmail');
43 | Route::get('password/reset/{token}', 'Auth\PasswordController@getReset');
44 | Route::post('password/reset', 'Auth\PasswordController@postReset');
45 |
46 | Route::get('/home', 'HomeController@index');
--------------------------------------------------------------------------------
/app/Jobs/Job.php:
--------------------------------------------------------------------------------
1 | 'App\Policies\ModelPolicy',
17 | ];
18 |
19 | /**
20 | * Register any application authentication / authorization services.
21 | *
22 | * @param \Illuminate\Contracts\Auth\Access\Gate $gate
23 | * @return void
24 | */
25 | public function boot(GateContract $gate)
26 | {
27 | $this->registerPolicies($gate);
28 |
29 | //
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/app/Providers/EventServiceProvider.php:
--------------------------------------------------------------------------------
1 | [
17 | 'App\Listeners\EventListener',
18 | ],
19 | ];
20 |
21 | /**
22 | * Register any other events for your application.
23 | *
24 | * @param \Illuminate\Contracts\Events\Dispatcher $events
25 | * @return void
26 | */
27 | public function boot(DispatcherContract $events)
28 | {
29 | parent::boot($events);
30 |
31 | //
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/app/Providers/RouteServiceProvider.php:
--------------------------------------------------------------------------------
1 | mapWebRoutes($router);
41 |
42 | //
43 | }
44 |
45 | /**
46 | * Define the "web" routes for the application.
47 | *
48 | * These routes all receive session state, CSRF protection, etc.
49 | *
50 | * @param \Illuminate\Routing\Router $router
51 | * @return void
52 | */
53 | protected function mapWebRoutes(Router $router)
54 | {
55 | $router->group([
56 | 'namespace' => $this->namespace, 'middleware' => 'web',
57 | ], function ($router) {
58 | require app_path('Http/routes.php');
59 | });
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/app/User.php:
--------------------------------------------------------------------------------
1 | make(Illuminate\Contracts\Console\Kernel::class);
32 |
33 | $status = $kernel->handle(
34 | $input = new Symfony\Component\Console\Input\ArgvInput,
35 | new Symfony\Component\Console\Output\ConsoleOutput
36 | );
37 |
38 | /*
39 | |--------------------------------------------------------------------------
40 | | Shutdown The Application
41 | |--------------------------------------------------------------------------
42 | |
43 | | Once Artisan has finished running. We will fire off the shutdown events
44 | | so that any final work may be done by the application before we shut
45 | | down the process. This is the last thing to happen to the request.
46 | |
47 | */
48 |
49 | $kernel->terminate($input, $status);
50 |
51 | exit($status);
52 |
--------------------------------------------------------------------------------
/bootstrap/app.php:
--------------------------------------------------------------------------------
1 | singleton(
30 | Illuminate\Contracts\Http\Kernel::class,
31 | App\Http\Kernel::class
32 | );
33 |
34 | $app->singleton(
35 | Illuminate\Contracts\Console\Kernel::class,
36 | App\Console\Kernel::class
37 | );
38 |
39 | $app->singleton(
40 | Illuminate\Contracts\Debug\ExceptionHandler::class,
41 | App\Exceptions\Handler::class
42 | );
43 |
44 | /*
45 | |--------------------------------------------------------------------------
46 | | Return The Application
47 | |--------------------------------------------------------------------------
48 | |
49 | | This script returns the application instance. The instance is given to
50 | | the calling script so we can separate the building of the instances
51 | | from the actual running of the application and sending responses.
52 | |
53 | */
54 |
55 | return $app;
56 |
--------------------------------------------------------------------------------
/bootstrap/autoload.php:
--------------------------------------------------------------------------------
1 | =5.5.9",
9 | "laravel/framework": "5.2.*",
10 | "yajra/laravel-datatables-oracle": "~6.0",
11 | "barryvdh/laravel-ide-helper": "^2.1",
12 | "laravelcollective/html": "5.2.*",
13 | "infyomlabs/swagger-generator": "dev-master",
14 | "jlapp/swaggervel": "dev-master",
15 | "doctrine/dbal": "~2.3",
16 | "infyomlabs/laravel-generator": "dev-master",
17 | "infyomlabs/flatlab-templates": "dev-master"
18 | },
19 | "require-dev": {
20 | "fzaninotto/faker": "~1.4",
21 | "mockery/mockery": "0.9.*",
22 | "phpunit/phpunit": "~4.0",
23 | "symfony/css-selector": "2.8.*|3.0.*",
24 | "symfony/dom-crawler": "2.8.*|3.0.*"
25 |
26 | },
27 | "autoload": {
28 | "classmap": [
29 | "database"
30 | ],
31 | "psr-4": {
32 | "App\\": "app/"
33 | }
34 | },
35 | "autoload-dev": {
36 | "classmap": [
37 | "tests/TestCase.php"
38 | ]
39 | },
40 | "scripts": {
41 | "post-root-package-install": [
42 | "php -r \"copy('.env.example', '.env');\""
43 | ],
44 | "post-create-project-cmd": [
45 | "php artisan key:generate"
46 | ],
47 | "post-install-cmd": [
48 | "Illuminate\\Foundation\\ComposerScripts::postInstall",
49 | "php artisan optimize"
50 | ],
51 | "post-update-cmd": [
52 | "Illuminate\\Foundation\\ComposerScripts::postUpdate",
53 | "php artisan optimize"
54 | ]
55 | },
56 | "config": {
57 | "preferred-install": "dist"
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/config/app.php:
--------------------------------------------------------------------------------
1 | env('APP_ENV', 'production'),
17 |
18 | /*
19 | |--------------------------------------------------------------------------
20 | | Application Debug Mode
21 | |--------------------------------------------------------------------------
22 | |
23 | | When your application is in debug mode, detailed error messages with
24 | | stack traces will be shown on every error that occurs within your
25 | | application. If disabled, a simple generic error page is shown.
26 | |
27 | */
28 |
29 | 'debug' => env('APP_DEBUG', false),
30 |
31 | /*
32 | |--------------------------------------------------------------------------
33 | | Application URL
34 | |--------------------------------------------------------------------------
35 | |
36 | | This URL is used by the console to properly generate URLs when using
37 | | the Artisan command line tool. You should set this to the root of
38 | | your application so that it is used when running Artisan tasks.
39 | |
40 | */
41 |
42 | 'url' => env('APP_URL', 'http://localhost'),
43 |
44 | /*
45 | |--------------------------------------------------------------------------
46 | | Application Timezone
47 | |--------------------------------------------------------------------------
48 | |
49 | | Here you may specify the default timezone for your application, which
50 | | will be used by the PHP date and date-time functions. We have gone
51 | | ahead and set this to a sensible default for you out of the box.
52 | |
53 | */
54 |
55 | 'timezone' => 'UTC',
56 |
57 | /*
58 | |--------------------------------------------------------------------------
59 | | Application Locale Configuration
60 | |--------------------------------------------------------------------------
61 | |
62 | | The application locale determines the default locale that will be used
63 | | by the translation service provider. You are free to set this value
64 | | to any of the locales which will be supported by the application.
65 | |
66 | */
67 |
68 | 'locale' => 'en',
69 |
70 | /*
71 | |--------------------------------------------------------------------------
72 | | Application Fallback Locale
73 | |--------------------------------------------------------------------------
74 | |
75 | | The fallback locale determines the locale to use when the current one
76 | | is not available. You may change the value to correspond to any of
77 | | the language folders that are provided through your application.
78 | |
79 | */
80 |
81 | 'fallback_locale' => 'en',
82 |
83 | /*
84 | |--------------------------------------------------------------------------
85 | | Encryption Key
86 | |--------------------------------------------------------------------------
87 | |
88 | | This key is used by the Illuminate encrypter service and should be set
89 | | to a random, 32 character string, otherwise these encrypted strings
90 | | will not be safe. Please do this before deploying an application!
91 | |
92 | */
93 |
94 | 'key' => env('APP_KEY'),
95 |
96 | 'cipher' => 'AES-256-CBC',
97 |
98 | /*
99 | |--------------------------------------------------------------------------
100 | | Logging Configuration
101 | |--------------------------------------------------------------------------
102 | |
103 | | Here you may configure the log settings for your application. Out of
104 | | the box, Laravel uses the Monolog PHP logging library. This gives
105 | | you a variety of powerful log handlers / formatters to utilize.
106 | |
107 | | Available Settings: "single", "daily", "syslog", "errorlog"
108 | |
109 | */
110 |
111 | 'log' => env('APP_LOG', 'single'),
112 |
113 | /*
114 | |--------------------------------------------------------------------------
115 | | Autoloaded Service Providers
116 | |--------------------------------------------------------------------------
117 | |
118 | | The service providers listed here will be automatically loaded on the
119 | | request to your application. Feel free to add your own services to
120 | | this array to grant expanded functionality to your applications.
121 | |
122 | */
123 |
124 | 'providers' => [
125 |
126 | /*
127 | * Laravel Framework Service Providers...
128 | */
129 | Illuminate\Auth\AuthServiceProvider::class,
130 | Illuminate\Broadcasting\BroadcastServiceProvider::class,
131 | Illuminate\Bus\BusServiceProvider::class,
132 | Illuminate\Cache\CacheServiceProvider::class,
133 | Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
134 | Illuminate\Cookie\CookieServiceProvider::class,
135 | Illuminate\Database\DatabaseServiceProvider::class,
136 | Illuminate\Encryption\EncryptionServiceProvider::class,
137 | Illuminate\Filesystem\FilesystemServiceProvider::class,
138 | Illuminate\Foundation\Providers\FoundationServiceProvider::class,
139 | Illuminate\Hashing\HashServiceProvider::class,
140 | Illuminate\Mail\MailServiceProvider::class,
141 | Illuminate\Pagination\PaginationServiceProvider::class,
142 | Illuminate\Pipeline\PipelineServiceProvider::class,
143 | Illuminate\Queue\QueueServiceProvider::class,
144 | Illuminate\Redis\RedisServiceProvider::class,
145 | Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
146 | Illuminate\Session\SessionServiceProvider::class,
147 | Illuminate\Translation\TranslationServiceProvider::class,
148 | Illuminate\Validation\ValidationServiceProvider::class,
149 | Illuminate\View\ViewServiceProvider::class,
150 |
151 | Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
152 | Yajra\Datatables\DatatablesServiceProvider::class,
153 | Collective\Html\HtmlServiceProvider::class,
154 | Laracasts\Flash\FlashServiceProvider::class,
155 | Prettus\Repository\Providers\RepositoryServiceProvider::class,
156 | \InfyOm\Generator\InfyOmGeneratorServiceProvider::class,
157 | \InfyOm\FlatLabTemplates\FlatLabTemplatesServiceProvider::class,
158 |
159 | /*
160 | * Application Service Providers...
161 | */
162 | App\Providers\AppServiceProvider::class,
163 | App\Providers\AuthServiceProvider::class,
164 | App\Providers\EventServiceProvider::class,
165 | App\Providers\RouteServiceProvider::class,
166 |
167 | ],
168 |
169 | /*
170 | |--------------------------------------------------------------------------
171 | | Class Aliases
172 | |--------------------------------------------------------------------------
173 | |
174 | | This array of class aliases will be registered when this application
175 | | is started. However, feel free to register as many as you wish as
176 | | the aliases are "lazy" loaded so they don't hinder performance.
177 | |
178 | */
179 |
180 | 'aliases' => [
181 |
182 | 'App' => Illuminate\Support\Facades\App::class,
183 | 'Artisan' => Illuminate\Support\Facades\Artisan::class,
184 | 'Auth' => Illuminate\Support\Facades\Auth::class,
185 | 'Blade' => Illuminate\Support\Facades\Blade::class,
186 | 'Cache' => Illuminate\Support\Facades\Cache::class,
187 | 'Config' => Illuminate\Support\Facades\Config::class,
188 | 'Cookie' => Illuminate\Support\Facades\Cookie::class,
189 | 'Crypt' => Illuminate\Support\Facades\Crypt::class,
190 | 'DB' => Illuminate\Support\Facades\DB::class,
191 | 'Eloquent' => Illuminate\Database\Eloquent\Model::class,
192 | 'Event' => Illuminate\Support\Facades\Event::class,
193 | 'File' => Illuminate\Support\Facades\File::class,
194 | 'Gate' => Illuminate\Support\Facades\Gate::class,
195 | 'Hash' => Illuminate\Support\Facades\Hash::class,
196 | 'Lang' => Illuminate\Support\Facades\Lang::class,
197 | 'Log' => Illuminate\Support\Facades\Log::class,
198 | 'Mail' => Illuminate\Support\Facades\Mail::class,
199 | 'Password' => Illuminate\Support\Facades\Password::class,
200 | 'Queue' => Illuminate\Support\Facades\Queue::class,
201 | 'Redirect' => Illuminate\Support\Facades\Redirect::class,
202 | 'Redis' => Illuminate\Support\Facades\Redis::class,
203 | 'Request' => Illuminate\Support\Facades\Request::class,
204 | 'Response' => Illuminate\Support\Facades\Response::class,
205 | 'Route' => Illuminate\Support\Facades\Route::class,
206 | 'Schema' => Illuminate\Support\Facades\Schema::class,
207 | 'Session' => Illuminate\Support\Facades\Session::class,
208 | 'Storage' => Illuminate\Support\Facades\Storage::class,
209 | 'URL' => Illuminate\Support\Facades\URL::class,
210 | 'Validator' => Illuminate\Support\Facades\Validator::class,
211 | 'View' => Illuminate\Support\Facades\View::class,
212 | 'Form' => Collective\Html\FormFacade::class,
213 | 'Html' => Collective\Html\HtmlFacade::class,
214 | 'Flash' => Laracasts\Flash\Flash::class
215 | ],
216 |
217 | ];
218 |
--------------------------------------------------------------------------------
/config/auth.php:
--------------------------------------------------------------------------------
1 | [
17 | 'guard' => 'web',
18 | 'passwords' => 'users',
19 | ],
20 |
21 | /*
22 | |--------------------------------------------------------------------------
23 | | Authentication Guards
24 | |--------------------------------------------------------------------------
25 | |
26 | | Next, you may define every authentication guard for your application.
27 | | Of course, a great default configuration has been defined for you
28 | | here which uses session storage and the Eloquent user provider.
29 | |
30 | | All authentication drivers have a user provider. This defines how the
31 | | users are actually retrieved out of your database or other storage
32 | | mechanisms used by this application to persist your user's data.
33 | |
34 | | Supported: "session", "token"
35 | |
36 | */
37 |
38 | 'guards' => [
39 | 'web' => [
40 | 'driver' => 'session',
41 | 'provider' => 'users',
42 | ],
43 |
44 | 'api' => [
45 | 'driver' => 'token',
46 | 'provider' => 'users',
47 | ],
48 | ],
49 |
50 | /*
51 | |--------------------------------------------------------------------------
52 | | User Providers
53 | |--------------------------------------------------------------------------
54 | |
55 | | All authentication drivers have a user provider. This defines how the
56 | | users are actually retrieved out of your database or other storage
57 | | mechanisms used by this application to persist your user's data.
58 | |
59 | | If you have multiple user tables or models you may configure multiple
60 | | sources which represent each model / table. These sources may then
61 | | be assigned to any extra authentication guards you have defined.
62 | |
63 | | Supported: "database", "eloquent"
64 | |
65 | */
66 |
67 | 'providers' => [
68 | 'users' => [
69 | 'driver' => 'eloquent',
70 | 'model' => App\User::class,
71 | ],
72 |
73 | // 'users' => [
74 | // 'driver' => 'database',
75 | // 'table' => 'users',
76 | // ],
77 | ],
78 |
79 | /*
80 | |--------------------------------------------------------------------------
81 | | Resetting Passwords
82 | |--------------------------------------------------------------------------
83 | |
84 | | Here you may set the options for resetting passwords including the view
85 | | that is your password reset e-mail. You may also set the name of the
86 | | table that maintains all of the reset tokens for your application.
87 | |
88 | | You may specify multiple password reset configurations if you have more
89 | | than one user table or model in the application and you want to have
90 | | separate password reset settings based on the specific user types.
91 | |
92 | | The expire time is the number of minutes that the reset token should be
93 | | considered valid. This security feature keeps tokens short-lived so
94 | | they have less time to be guessed. You may change this as needed.
95 | |
96 | */
97 |
98 | 'passwords' => [
99 | 'users' => [
100 | 'provider' => 'users',
101 | 'email' => 'auth.emails.password',
102 | 'table' => 'password_resets',
103 | 'expire' => 60,
104 | ],
105 | ],
106 |
107 | ];
108 |
--------------------------------------------------------------------------------
/config/broadcasting.php:
--------------------------------------------------------------------------------
1 | env('BROADCAST_DRIVER', 'pusher'),
17 |
18 | /*
19 | |--------------------------------------------------------------------------
20 | | Broadcast Connections
21 | |--------------------------------------------------------------------------
22 | |
23 | | Here you may define all of the broadcast connections that will be used
24 | | to broadcast events to other systems or over websockets. Samples of
25 | | each available type of connection are provided inside this array.
26 | |
27 | */
28 |
29 | 'connections' => [
30 |
31 | 'pusher' => [
32 | 'driver' => 'pusher',
33 | 'key' => env('PUSHER_KEY'),
34 | 'secret' => env('PUSHER_SECRET'),
35 | 'app_id' => env('PUSHER_APP_ID'),
36 | 'options' => [
37 | //
38 | ],
39 | ],
40 |
41 | 'redis' => [
42 | 'driver' => 'redis',
43 | 'connection' => 'default',
44 | ],
45 |
46 | 'log' => [
47 | 'driver' => 'log',
48 | ],
49 |
50 | ],
51 |
52 | ];
53 |
--------------------------------------------------------------------------------
/config/cache.php:
--------------------------------------------------------------------------------
1 | env('CACHE_DRIVER', 'file'),
17 |
18 | /*
19 | |--------------------------------------------------------------------------
20 | | Cache Stores
21 | |--------------------------------------------------------------------------
22 | |
23 | | Here you may define all of the cache "stores" for your application as
24 | | well as their drivers. You may even define multiple stores for the
25 | | same cache driver to group types of items stored in your caches.
26 | |
27 | */
28 |
29 | 'stores' => [
30 |
31 | 'apc' => [
32 | 'driver' => 'apc',
33 | ],
34 |
35 | 'array' => [
36 | 'driver' => 'array',
37 | ],
38 |
39 | 'database' => [
40 | 'driver' => 'database',
41 | 'table' => 'cache',
42 | 'connection' => null,
43 | ],
44 |
45 | 'file' => [
46 | 'driver' => 'file',
47 | 'path' => storage_path('framework/cache'),
48 | ],
49 |
50 | 'memcached' => [
51 | 'driver' => 'memcached',
52 | 'servers' => [
53 | [
54 | 'host' => env('MEMCACHED_HOST', '127.0.0.1'),
55 | 'port' => env('MEMCACHED_PORT', 11211),
56 | 'weight' => 100,
57 | ],
58 | ],
59 | ],
60 |
61 | 'redis' => [
62 | 'driver' => 'redis',
63 | 'connection' => 'default',
64 | ],
65 |
66 | ],
67 |
68 | /*
69 | |--------------------------------------------------------------------------
70 | | Cache Key Prefix
71 | |--------------------------------------------------------------------------
72 | |
73 | | When utilizing a RAM based store such as APC or Memcached, there might
74 | | be other applications utilizing the same cache. So, we'll specify a
75 | | value to get prefixed to all our keys so we can avoid collisions.
76 | |
77 | */
78 |
79 | 'prefix' => 'laravel',
80 |
81 | ];
82 |
--------------------------------------------------------------------------------
/config/compile.php:
--------------------------------------------------------------------------------
1 | [
17 | //
18 | ],
19 |
20 | /*
21 | |--------------------------------------------------------------------------
22 | | Compiled File Providers
23 | |--------------------------------------------------------------------------
24 | |
25 | | Here you may list service providers which define a "compiles" function
26 | | that returns additional files that should be compiled, providing an
27 | | easy way to get common files from any packages you are utilizing.
28 | |
29 | */
30 |
31 | 'providers' => [
32 | //
33 | ],
34 |
35 | ];
36 |
--------------------------------------------------------------------------------
/config/database.php:
--------------------------------------------------------------------------------
1 | PDO::FETCH_CLASS,
17 |
18 | /*
19 | |--------------------------------------------------------------------------
20 | | Default Database Connection Name
21 | |--------------------------------------------------------------------------
22 | |
23 | | Here you may specify which of the database connections below you wish
24 | | to use as your default connection for all database work. Of course
25 | | you may use many connections at once using the Database library.
26 | |
27 | */
28 |
29 | 'default' => env('DB_CONNECTION', 'mysql'),
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' => env('DB_DATABASE', database_path('database.sqlite')),
52 | 'prefix' => '',
53 | ],
54 |
55 | 'mysql' => [
56 | 'driver' => 'mysql',
57 | 'host' => env('DB_HOST', 'localhost'),
58 | 'port' => env('DB_PORT', '3306'),
59 | 'database' => env('DB_DATABASE', 'forge'),
60 | 'username' => env('DB_USERNAME', 'forge'),
61 | 'password' => env('DB_PASSWORD', ''),
62 | 'charset' => 'utf8',
63 | 'collation' => 'utf8_unicode_ci',
64 | 'prefix' => '',
65 | 'strict' => false,
66 | 'engine' => null,
67 | ],
68 |
69 | 'pgsql' => [
70 | 'driver' => 'pgsql',
71 | 'host' => env('DB_HOST', 'localhost'),
72 | 'port' => env('DB_PORT', '5432'),
73 | 'database' => env('DB_DATABASE', 'forge'),
74 | 'username' => env('DB_USERNAME', 'forge'),
75 | 'password' => env('DB_PASSWORD', ''),
76 | 'charset' => 'utf8',
77 | 'prefix' => '',
78 | 'schema' => 'public',
79 | ],
80 |
81 | ],
82 |
83 | /*
84 | |--------------------------------------------------------------------------
85 | | Migration Repository Table
86 | |--------------------------------------------------------------------------
87 | |
88 | | This table keeps track of all the migrations that have already run for
89 | | your application. Using this information, we can determine which of
90 | | the migrations on disk haven't actually been run in the database.
91 | |
92 | */
93 |
94 | 'migrations' => 'migrations',
95 |
96 | /*
97 | |--------------------------------------------------------------------------
98 | | Redis Databases
99 | |--------------------------------------------------------------------------
100 | |
101 | | Redis is an open source, fast, and advanced key-value store that also
102 | | provides a richer set of commands than a typical key-value systems
103 | | such as APC or Memcached. Laravel makes it easy to dig right in.
104 | |
105 | */
106 |
107 | 'redis' => [
108 |
109 | 'cluster' => false,
110 |
111 | 'default' => [
112 | 'host' => env('REDIS_HOST', 'localhost'),
113 | 'password' => env('REDIS_PASSWORD', null),
114 | 'port' => env('REDIS_PORT', 6379),
115 | 'database' => 0,
116 | ],
117 |
118 | ],
119 |
120 | ];
121 |
--------------------------------------------------------------------------------
/config/datatables.php:
--------------------------------------------------------------------------------
1 | [
5 | 'smart' => true,
6 | 'case_insensitive' => true,
7 | 'use_wildcards' => false,
8 | ],
9 |
10 | 'fractal' => [
11 | 'serializer' => 'League\Fractal\Serializer\DataArraySerializer',
12 | ],
13 |
14 | 'script_template' => 'datatables::script',
15 | ];
16 |
--------------------------------------------------------------------------------
/config/excel.php:
--------------------------------------------------------------------------------
1 | array(
6 |
7 | /*
8 | |--------------------------------------------------------------------------
9 | | Enable/Disable cell caching
10 | |--------------------------------------------------------------------------
11 | */
12 | 'enable' => true,
13 |
14 | /*
15 | |--------------------------------------------------------------------------
16 | | Caching driver
17 | |--------------------------------------------------------------------------
18 | |
19 | | Set the caching driver
20 | |
21 | | Available methods:
22 | | memory|gzip|serialized|igbinary|discISAM|apc|memcache|temp|wincache|sqlite|sqlite3
23 | |
24 | */
25 | 'driver' => 'memory',
26 |
27 | /*
28 | |--------------------------------------------------------------------------
29 | | Cache settings
30 | |--------------------------------------------------------------------------
31 | */
32 | 'settings' => array(
33 |
34 | 'memoryCacheSize' => '32MB',
35 | 'cacheTime' => 600
36 |
37 | ),
38 |
39 | /*
40 | |--------------------------------------------------------------------------
41 | | Memcache settings
42 | |--------------------------------------------------------------------------
43 | */
44 | 'memcache' => array(
45 |
46 | 'host' => 'localhost',
47 | 'port' => 11211,
48 |
49 | ),
50 |
51 | /*
52 | |--------------------------------------------------------------------------
53 | | Cache dir (for discISAM)
54 | |--------------------------------------------------------------------------
55 | */
56 |
57 | 'dir' => storage_path('cache')
58 | ),
59 |
60 | 'properties' => array(
61 | 'creator' => 'Maatwebsite',
62 | 'lastModifiedBy' => 'Maatwebsite',
63 | 'title' => 'Spreadsheet',
64 | 'description' => 'Default spreadsheet export',
65 | 'subject' => 'Spreadsheet export',
66 | 'keywords' => 'maatwebsite, excel, export',
67 | 'category' => 'Excel',
68 | 'manager' => 'Maatwebsite',
69 | 'company' => 'Maatwebsite',
70 | ),
71 |
72 | /*
73 | |--------------------------------------------------------------------------
74 | | Sheets settings
75 | |--------------------------------------------------------------------------
76 | */
77 | 'sheets' => array(
78 |
79 | /*
80 | |--------------------------------------------------------------------------
81 | | Default page setup
82 | |--------------------------------------------------------------------------
83 | */
84 | 'pageSetup' => array(
85 | 'orientation' => 'portrait',
86 | 'paperSize' => '9',
87 | 'scale' => '100',
88 | 'fitToPage' => false,
89 | 'fitToHeight' => true,
90 | 'fitToWidth' => true,
91 | 'columnsToRepeatAtLeft' => array('', ''),
92 | 'rowsToRepeatAtTop' => array(0, 0),
93 | 'horizontalCentered' => false,
94 | 'verticalCentered' => false,
95 | 'printArea' => null,
96 | 'firstPageNumber' => null,
97 | ),
98 | ),
99 |
100 | /*
101 | |--------------------------------------------------------------------------
102 | | Creator
103 | |--------------------------------------------------------------------------
104 | |
105 | | The default creator of a new Excel file
106 | |
107 | */
108 |
109 | 'creator' => 'Maatwebsite',
110 |
111 | 'csv' => array(
112 | /*
113 | |--------------------------------------------------------------------------
114 | | Delimiter
115 | |--------------------------------------------------------------------------
116 | |
117 | | The default delimiter which will be used to read out a CSV file
118 | |
119 | */
120 |
121 | 'delimiter' => ',',
122 |
123 | /*
124 | |--------------------------------------------------------------------------
125 | | Enclosure
126 | |--------------------------------------------------------------------------
127 | */
128 |
129 | 'enclosure' => '"',
130 |
131 | /*
132 | |--------------------------------------------------------------------------
133 | | Line endings
134 | |--------------------------------------------------------------------------
135 | */
136 |
137 | 'line_ending' => "\r\n"
138 | ),
139 |
140 | 'export' => array(
141 |
142 | /*
143 | |--------------------------------------------------------------------------
144 | | Autosize columns
145 | |--------------------------------------------------------------------------
146 | |
147 | | Disable/enable column autosize or set the autosizing for
148 | | an array of columns ( array('A', 'B') )
149 | |
150 | */
151 | 'autosize' => true,
152 |
153 | /*
154 | |--------------------------------------------------------------------------
155 | | Autosize method
156 | |--------------------------------------------------------------------------
157 | |
158 | | --> PHPExcel_Shared_Font::AUTOSIZE_METHOD_APPROX
159 | | The default is based on an estimate, which does its calculation based
160 | | on the number of characters in the cell value (applying any calculation
161 | | and format mask, and allowing for wordwrap and rotation) and with an
162 | | "arbitrary" adjustment based on the font (Arial, Calibri or Verdana,
163 | | defaulting to Calibri if any other font is used) and a proportional
164 | | adjustment for the font size.
165 | |
166 | | --> PHPExcel_Shared_Font::AUTOSIZE_METHOD_EXACT
167 | | The second method is more accurate, based on actual style formatting as
168 | | well (bold, italic, etc), and is calculated by generating a gd2 imagettf
169 | | bounding box and using its dimensions to determine the size; but this
170 | | method is significantly slower, and its accuracy is still dependent on
171 | | having the appropriate fonts installed.
172 | |
173 | */
174 | 'autosize-method' => PHPExcel_Shared_Font::AUTOSIZE_METHOD_APPROX,
175 |
176 | /*
177 | |--------------------------------------------------------------------------
178 | | Auto generate table heading
179 | |--------------------------------------------------------------------------
180 | |
181 | | If set to true, the array indices (or model attribute names)
182 | | will automatically be used as first row (table heading)
183 | |
184 | */
185 | 'generate_heading_by_indices' => true,
186 |
187 | /*
188 | |--------------------------------------------------------------------------
189 | | Auto set alignment on merged cells
190 | |--------------------------------------------------------------------------
191 | */
192 | 'merged_cell_alignment' => 'left',
193 |
194 | /*
195 | |--------------------------------------------------------------------------
196 | | Pre-calculate formulas during export
197 | |--------------------------------------------------------------------------
198 | */
199 | 'calculate' => false,
200 |
201 | /*
202 | |--------------------------------------------------------------------------
203 | | Include Charts during export
204 | |--------------------------------------------------------------------------
205 | */
206 | 'includeCharts' => false,
207 |
208 | /*
209 | |--------------------------------------------------------------------------
210 | | Default sheet settings
211 | |--------------------------------------------------------------------------
212 | */
213 | 'sheets' => array(
214 |
215 | /*
216 | |--------------------------------------------------------------------------
217 | | Default page margin
218 | |--------------------------------------------------------------------------
219 | |
220 | | 1) When set to false, default margins will be used
221 | | 2) It's possible to enter a single margin which will
222 | | be used for all margins.
223 | | 3) Alternatively you can pass an array with 4 margins
224 | | Default order: array(top, right, bottom, left)
225 | |
226 | */
227 | 'page_margin' => false,
228 |
229 | /*
230 | |--------------------------------------------------------------------------
231 | | Value in source array that stands for blank cell
232 | |--------------------------------------------------------------------------
233 | */
234 | 'nullValue' => null,
235 |
236 | /*
237 | |--------------------------------------------------------------------------
238 | | Insert array starting from this cell address as the top left coordinate
239 | |--------------------------------------------------------------------------
240 | */
241 | 'startCell' => 'A1',
242 |
243 | /*
244 | |--------------------------------------------------------------------------
245 | | Apply strict comparison when testing for null values in the array
246 | |--------------------------------------------------------------------------
247 | */
248 | 'strictNullComparison' => false
249 | ),
250 |
251 | /*
252 | |--------------------------------------------------------------------------
253 | | Store settings
254 | |--------------------------------------------------------------------------
255 | */
256 |
257 | 'store' => array(
258 |
259 | /*
260 | |--------------------------------------------------------------------------
261 | | Path
262 | |--------------------------------------------------------------------------
263 | |
264 | | The path we want to save excel file to
265 | |
266 | */
267 | 'path' => storage_path('exports'),
268 |
269 | /*
270 | |--------------------------------------------------------------------------
271 | | Return info
272 | |--------------------------------------------------------------------------
273 | |
274 | | Whether we want to return information about the stored file or not
275 | |
276 | */
277 | 'returnInfo' => false
278 |
279 | ),
280 |
281 | /*
282 | |--------------------------------------------------------------------------
283 | | PDF Settings
284 | |--------------------------------------------------------------------------
285 | */
286 | 'pdf' => array(
287 |
288 | /*
289 | |--------------------------------------------------------------------------
290 | | PDF Drivers
291 | |--------------------------------------------------------------------------
292 | | Supported: DomPDF, tcPDF, mPDF
293 | */
294 | 'driver' => 'DomPDF',
295 |
296 | /*
297 | |--------------------------------------------------------------------------
298 | | PDF Driver settings
299 | |--------------------------------------------------------------------------
300 | */
301 | 'drivers' => array(
302 |
303 | /*
304 | |--------------------------------------------------------------------------
305 | | DomPDF settings
306 | |--------------------------------------------------------------------------
307 | */
308 | 'DomPDF' => array(
309 | 'path' => base_path('vendor/dompdf/dompdf/')
310 | ),
311 |
312 | /*
313 | |--------------------------------------------------------------------------
314 | | tcPDF settings
315 | |--------------------------------------------------------------------------
316 | */
317 | 'tcPDF' => array(
318 | 'path' => base_path('vendor/tecnick.com/tcpdf/')
319 | ),
320 |
321 | /*
322 | |--------------------------------------------------------------------------
323 | | mPDF settings
324 | |--------------------------------------------------------------------------
325 | */
326 | 'mPDF' => array(
327 | 'path' => base_path('vendor/mpdf/mpdf/')
328 | ),
329 | )
330 | )
331 | ),
332 |
333 | 'filters' => array(
334 | /*
335 | |--------------------------------------------------------------------------
336 | | Register read filters
337 | |--------------------------------------------------------------------------
338 | */
339 |
340 | 'registered' => array(
341 | 'chunk' => 'Maatwebsite\Excel\Filters\ChunkReadFilter'
342 | ),
343 |
344 | /*
345 | |--------------------------------------------------------------------------
346 | | Enable certain filters for every file read
347 | |--------------------------------------------------------------------------
348 | */
349 |
350 | 'enabled' => array()
351 | ),
352 |
353 | 'import' => array(
354 |
355 | /*
356 | |--------------------------------------------------------------------------
357 | | Has heading
358 | |--------------------------------------------------------------------------
359 | |
360 | | The sheet has a heading (first) row which we can use as attribute names
361 | |
362 | | Options: true|false|slugged|slugged_with_count|ascii|numeric|hashed|trans|original
363 | |
364 | */
365 |
366 | 'heading' => 'slugged',
367 |
368 | /*
369 | |--------------------------------------------------------------------------
370 | | First Row with data or heading of data
371 | |--------------------------------------------------------------------------
372 | |
373 | | If the heading row is not the first row, or the data doesn't start
374 | | on the first row, here you can change the start row.
375 | |
376 | */
377 |
378 | 'startRow' => 1,
379 |
380 | /*
381 | |--------------------------------------------------------------------------
382 | | Cell name word separator
383 | |--------------------------------------------------------------------------
384 | |
385 | | The default separator which is used for the cell names
386 | | Note: only applies to 'heading' settings 'true' && 'slugged'
387 | |
388 | */
389 |
390 | 'separator' => '_',
391 |
392 | /*
393 | |--------------------------------------------------------------------------
394 | | Include Charts during import
395 | |--------------------------------------------------------------------------
396 | */
397 |
398 | 'includeCharts' => false,
399 |
400 | /*
401 | |--------------------------------------------------------------------------
402 | | Sheet heading conversion
403 | |--------------------------------------------------------------------------
404 | |
405 | | Convert headings to ASCII
406 | | Note: only applies to 'heading' settings 'true' && 'slugged'
407 | |
408 | */
409 |
410 | 'to_ascii' => true,
411 |
412 | /*
413 | |--------------------------------------------------------------------------
414 | | Import encoding
415 | |--------------------------------------------------------------------------
416 | */
417 |
418 | 'encoding' => array(
419 |
420 | 'input' => 'UTF-8',
421 | 'output' => 'UTF-8'
422 |
423 | ),
424 |
425 | /*
426 | |--------------------------------------------------------------------------
427 | | Calculate
428 | |--------------------------------------------------------------------------
429 | |
430 | | By default cells with formulas will be calculated.
431 | |
432 | */
433 |
434 | 'calculate' => true,
435 |
436 | /*
437 | |--------------------------------------------------------------------------
438 | | Ignore empty cells
439 | |--------------------------------------------------------------------------
440 | |
441 | | By default empty cells are not ignored
442 | |
443 | */
444 |
445 | 'ignoreEmpty' => false,
446 |
447 | /*
448 | |--------------------------------------------------------------------------
449 | | Force sheet collection
450 | |--------------------------------------------------------------------------
451 | |
452 | | For a sheet collection even when there is only 1 sheets.
453 | | When set to false and only 1 sheet found, the parsed file will return
454 | | a row collection instead of a sheet collection.
455 | | When set to true, it will return a sheet collection instead.
456 | |
457 | */
458 | 'force_sheets_collection' => false,
459 |
460 | /*
461 | |--------------------------------------------------------------------------
462 | | Date format
463 | |--------------------------------------------------------------------------
464 | |
465 | | The format dates will be parsed to
466 | |
467 | */
468 |
469 | 'dates' => array(
470 |
471 | /*
472 | |--------------------------------------------------------------------------
473 | | Enable/disable date formatting
474 | |--------------------------------------------------------------------------
475 | */
476 | 'enabled' => true,
477 |
478 | /*
479 | |--------------------------------------------------------------------------
480 | | Default date format
481 | |--------------------------------------------------------------------------
482 | |
483 | | If set to false, a carbon object will return
484 | |
485 | */
486 | 'format' => false,
487 |
488 | /*
489 | |--------------------------------------------------------------------------
490 | | Date columns
491 | |--------------------------------------------------------------------------
492 | */
493 | 'columns' => array()
494 | ),
495 |
496 | /*
497 | |--------------------------------------------------------------------------
498 | | Import sheets by config
499 | |--------------------------------------------------------------------------
500 | */
501 | 'sheets' => array(
502 |
503 | /*
504 | |--------------------------------------------------------------------------
505 | | Example sheet
506 | |--------------------------------------------------------------------------
507 | |
508 | | Example sheet "test" will grab the firstname at cell A2
509 | |
510 | */
511 |
512 | 'test' => array(
513 |
514 | 'firstname' => 'A2'
515 |
516 | )
517 |
518 | )
519 | ),
520 |
521 | 'views' => array(
522 |
523 | /*
524 | |--------------------------------------------------------------------------
525 | | Styles
526 | |--------------------------------------------------------------------------
527 | |
528 | | The default styles which will be used when parsing a view
529 | |
530 | */
531 |
532 | 'styles' => array(
533 |
534 | /*
535 | |--------------------------------------------------------------------------
536 | | Table headings
537 | |--------------------------------------------------------------------------
538 | */
539 | 'th' => array(
540 | 'font' => array(
541 | 'bold' => true,
542 | 'size' => 12,
543 | )
544 | ),
545 |
546 | /*
547 | |--------------------------------------------------------------------------
548 | | Strong tags
549 | |--------------------------------------------------------------------------
550 | */
551 | 'strong' => array(
552 | 'font' => array(
553 | 'bold' => true,
554 | 'size' => 12,
555 | )
556 | ),
557 |
558 | /*
559 | |--------------------------------------------------------------------------
560 | | Bold tags
561 | |--------------------------------------------------------------------------
562 | */
563 | 'b' => array(
564 | 'font' => array(
565 | 'bold' => true,
566 | 'size' => 12,
567 | )
568 | ),
569 |
570 | /*
571 | |--------------------------------------------------------------------------
572 | | Italic tags
573 | |--------------------------------------------------------------------------
574 | */
575 | 'i' => array(
576 | 'font' => array(
577 | 'italic' => true,
578 | 'size' => 12,
579 | )
580 | ),
581 |
582 | /*
583 | |--------------------------------------------------------------------------
584 | | Heading 1
585 | |--------------------------------------------------------------------------
586 | */
587 | 'h1' => array(
588 | 'font' => array(
589 | 'bold' => true,
590 | 'size' => 24,
591 | )
592 | ),
593 |
594 | /*
595 | |--------------------------------------------------------------------------
596 | | Heading 2
597 | |--------------------------------------------------------------------------
598 | */
599 | 'h2' => array(
600 | 'font' => array(
601 | 'bold' => true,
602 | 'size' => 18,
603 | )
604 | ),
605 |
606 | /*
607 | |--------------------------------------------------------------------------
608 | | Heading 2
609 | |--------------------------------------------------------------------------
610 | */
611 | 'h3' => array(
612 | 'font' => array(
613 | 'bold' => true,
614 | 'size' => 13.5,
615 | )
616 | ),
617 |
618 | /*
619 | |--------------------------------------------------------------------------
620 | | Heading 4
621 | |--------------------------------------------------------------------------
622 | */
623 | 'h4' => array(
624 | 'font' => array(
625 | 'bold' => true,
626 | 'size' => 12,
627 | )
628 | ),
629 |
630 | /*
631 | |--------------------------------------------------------------------------
632 | | Heading 5
633 | |--------------------------------------------------------------------------
634 | */
635 | 'h5' => array(
636 | 'font' => array(
637 | 'bold' => true,
638 | 'size' => 10,
639 | )
640 | ),
641 |
642 | /*
643 | |--------------------------------------------------------------------------
644 | | Heading 6
645 | |--------------------------------------------------------------------------
646 | */
647 | 'h6' => array(
648 | 'font' => array(
649 | 'bold' => true,
650 | 'size' => 7.5,
651 | )
652 | ),
653 |
654 | /*
655 | |--------------------------------------------------------------------------
656 | | Hyperlinks
657 | |--------------------------------------------------------------------------
658 | */
659 | 'a' => array(
660 | 'font' => array(
661 | 'underline' => true,
662 | 'color' => array('argb' => 'FF0000FF'),
663 | )
664 | ),
665 |
666 | /*
667 | |--------------------------------------------------------------------------
668 | | Horizontal rules
669 | |--------------------------------------------------------------------------
670 | */
671 | 'hr' => array(
672 | 'borders' => array(
673 | 'bottom' => array(
674 | 'style' => 'thin',
675 | 'color' => array('FF000000')
676 | ),
677 | )
678 | )
679 | )
680 |
681 | )
682 |
683 | );
684 |
--------------------------------------------------------------------------------
/config/filesystems.php:
--------------------------------------------------------------------------------
1 | 'local',
19 |
20 | /*
21 | |--------------------------------------------------------------------------
22 | | Default Cloud Filesystem Disk
23 | |--------------------------------------------------------------------------
24 | |
25 | | Many applications store files both locally and in the cloud. For this
26 | | reason, you may specify a default "cloud" driver here. This driver
27 | | will be bound as the Cloud disk implementation in the container.
28 | |
29 | */
30 |
31 | 'cloud' => 's3',
32 |
33 | /*
34 | |--------------------------------------------------------------------------
35 | | Filesystem Disks
36 | |--------------------------------------------------------------------------
37 | |
38 | | Here you may configure as many filesystem "disks" as you wish, and you
39 | | may even configure multiple disks of the same driver. Defaults have
40 | | been setup for each driver as an example of the required options.
41 | |
42 | */
43 |
44 | 'disks' => [
45 |
46 | 'local' => [
47 | 'driver' => 'local',
48 | 'root' => storage_path('app'),
49 | ],
50 |
51 | 'public' => [
52 | 'driver' => 'local',
53 | 'root' => storage_path('app/public'),
54 | 'visibility' => 'public',
55 | ],
56 |
57 | 's3' => [
58 | 'driver' => 's3',
59 | 'key' => 'your-key',
60 | 'secret' => 'your-secret',
61 | 'region' => 'your-region',
62 | 'bucket' => 'your-bucket',
63 | ],
64 |
65 | ],
66 |
67 | ];
68 |
--------------------------------------------------------------------------------
/config/ide-helper.php:
--------------------------------------------------------------------------------
1 | '_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 |
87 | ),
88 |
89 | /*
90 | |--------------------------------------------------------------------------
91 | | Support for custom DB types
92 | |--------------------------------------------------------------------------
93 | |
94 | | This setting allow you to map any custom database type (that you may have
95 | | created using CREATE TYPE statement or imported using database plugin
96 | | / extension to a Doctrine type.
97 | |
98 | | Each key in this array is a name of the Doctrine2 DBAL Platform. Currently valid names are:
99 | | 'postgresql', 'db2', 'drizzle', 'mysql', 'oracle', 'sqlanywhere', 'sqlite', 'mssql'
100 | |
101 | | This name is returned by getName() method of the specific Doctrine/DBAL/Platforms/AbstractPlatform descendant
102 | |
103 | | The value of the array is an array of type mappings. Key is the name of the custom type,
104 | | (for example, "jsonb" from Postgres 9.4) and the value is the name of the corresponding Doctrine2 type (in
105 | | our case it is 'json_array'. Doctrine types are listed here:
106 | | http://doctrine-dbal.readthedocs.org/en/latest/reference/types.html
107 | |
108 | | So to support jsonb in your models when working with Postgres, just add the following entry to the array below:
109 | |
110 | | "postgresql" => array(
111 | | "jsonb" => "json_array",
112 | | ),
113 | |
114 | */
115 | 'custom_db_types' => array(
116 |
117 | ),
118 |
119 | );
120 |
--------------------------------------------------------------------------------
/config/infyom/laravel_generator.php:
--------------------------------------------------------------------------------
1 | [
13 |
14 | 'migration' => base_path('database/migrations/'),
15 |
16 | 'model' => app_path('Models/'),
17 |
18 | 'datatables' => app_path('DataTables/'),
19 |
20 | 'repository' => app_path('Repositories/'),
21 |
22 | 'routes' => app_path('Http/routes.php'),
23 |
24 | 'api_routes' => app_path('Http/api_routes.php'),
25 |
26 | 'request' => app_path('Http/Requests/'),
27 |
28 | 'api_request' => app_path('Http/Requests/API/'),
29 |
30 | 'controller' => app_path('Http/Controllers/'),
31 |
32 | 'api_controller' => app_path('Http/Controllers/API/'),
33 |
34 | 'test_trait' => base_path('tests/traits/'),
35 |
36 | 'repository_test' => base_path('tests/'),
37 |
38 | 'api_test' => base_path('tests/'),
39 |
40 | 'views' => base_path('resources/views/'),
41 |
42 | 'schema_files' => base_path('resources/model_schemas/'),
43 |
44 | 'templates_dir' => base_path('resources/infyom/infyom-generator-templates/'),
45 | ],
46 |
47 | /*
48 | |--------------------------------------------------------------------------
49 | | Namespaces
50 | |--------------------------------------------------------------------------
51 | |
52 | */
53 |
54 | 'namespace' => [
55 |
56 | 'model' => 'App\Models',
57 |
58 | 'datatables' => 'App\DataTables',
59 |
60 | 'repository' => 'App\Repositories',
61 |
62 | 'controller' => 'App\Http\Controllers',
63 |
64 | 'api_controller' => 'App\Http\Controllers\API',
65 |
66 | 'request' => 'App\Http\Requests',
67 |
68 | 'api_request' => 'App\Http\Requests\API',
69 | ],
70 |
71 | /*
72 | |--------------------------------------------------------------------------
73 | | Templates
74 | |--------------------------------------------------------------------------
75 | |
76 | */
77 |
78 | 'templates' => 'flatlab-templates',
79 |
80 | /*
81 | |--------------------------------------------------------------------------
82 | | Model extend class
83 | |--------------------------------------------------------------------------
84 | |
85 | */
86 |
87 | 'model_extend_class' => 'Eloquent',
88 |
89 | /*
90 | |--------------------------------------------------------------------------
91 | | API routes prefix & version
92 | |--------------------------------------------------------------------------
93 | |
94 | */
95 |
96 | 'api_prefix' => 'api',
97 |
98 | 'api_version' => 'v1',
99 |
100 | /*
101 | |--------------------------------------------------------------------------
102 | | Options
103 | |--------------------------------------------------------------------------
104 | |
105 | */
106 |
107 | 'options' => [
108 |
109 | 'softDelete' => true,
110 |
111 | 'tables_searchable_default' => false,
112 | ],
113 |
114 | /*
115 | |--------------------------------------------------------------------------
116 | | Prefixes
117 | |--------------------------------------------------------------------------
118 | |
119 | */
120 |
121 | 'prefixes' => [
122 |
123 | 'route' => '', // using admin will create route('admin.?.index') type routes
124 |
125 | 'path' => '',
126 |
127 | 'view' => '', // using backend will create return view('backend.?.index') type the backend views directory
128 |
129 | 'public' => '',
130 | ],
131 |
132 | /*
133 | |--------------------------------------------------------------------------
134 | | Add-Ons
135 | |--------------------------------------------------------------------------
136 | |
137 | */
138 |
139 | 'add_on' => [
140 |
141 | 'swagger' => true,
142 |
143 | 'tests' => true,
144 |
145 | 'datatables' => false,
146 |
147 | 'menu' => [
148 |
149 | 'enabled' => false,
150 |
151 | 'menu_file' => 'layouts/menu.blade.php',
152 | ],
153 | ],
154 |
155 | /*
156 | |--------------------------------------------------------------------------
157 | | Timestamp Fields
158 | |--------------------------------------------------------------------------
159 | |
160 | */
161 |
162 | 'timestamps' => [
163 |
164 | 'enabled' => true,
165 |
166 | 'created_at' => 'created_at',
167 |
168 | 'updated_at' => 'updated_at',
169 |
170 | 'deleted_at' => 'deleted_at',
171 | ],
172 |
173 | ];
174 |
--------------------------------------------------------------------------------
/config/mail.php:
--------------------------------------------------------------------------------
1 | env('MAIL_DRIVER', 'smtp'),
20 |
21 | /*
22 | |--------------------------------------------------------------------------
23 | | SMTP Host Address
24 | |--------------------------------------------------------------------------
25 | |
26 | | Here you may provide the host address of the SMTP server used by your
27 | | applications. A default option is provided that is compatible with
28 | | the Mailgun mail service which will provide reliable deliveries.
29 | |
30 | */
31 |
32 | 'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
33 |
34 | /*
35 | |--------------------------------------------------------------------------
36 | | SMTP Host Port
37 | |--------------------------------------------------------------------------
38 | |
39 | | This is the SMTP port used by your application to deliver e-mails to
40 | | users of the application. Like the host we have set this value to
41 | | stay compatible with the Mailgun e-mail application by default.
42 | |
43 | */
44 |
45 | 'port' => env('MAIL_PORT', 587),
46 |
47 | /*
48 | |--------------------------------------------------------------------------
49 | | Global "From" Address
50 | |--------------------------------------------------------------------------
51 | |
52 | | You may wish for all e-mails sent by your application to be sent from
53 | | the same address. Here, you may specify a name and address that is
54 | | used globally for all e-mails that are sent by your application.
55 | |
56 | */
57 |
58 | 'from' => ['address' => null, 'name' => null],
59 |
60 | /*
61 | |--------------------------------------------------------------------------
62 | | E-Mail Encryption Protocol
63 | |--------------------------------------------------------------------------
64 | |
65 | | Here you may specify the encryption protocol that should be used when
66 | | the application send e-mail messages. A sensible default using the
67 | | transport layer security protocol should provide great security.
68 | |
69 | */
70 |
71 | 'encryption' => env('MAIL_ENCRYPTION', 'tls'),
72 |
73 | /*
74 | |--------------------------------------------------------------------------
75 | | SMTP Server Username
76 | |--------------------------------------------------------------------------
77 | |
78 | | If your SMTP server requires a username for authentication, you should
79 | | set it here. This will get used to authenticate with your server on
80 | | connection. You may also set the "password" value below this one.
81 | |
82 | */
83 |
84 | 'username' => env('MAIL_USERNAME'),
85 |
86 | /*
87 | |--------------------------------------------------------------------------
88 | | SMTP Server Password
89 | |--------------------------------------------------------------------------
90 | |
91 | | Here you may set the password required by your SMTP server to send out
92 | | messages from your application. This will be given to the server on
93 | | connection so that the application will be able to send messages.
94 | |
95 | */
96 |
97 | 'password' => env('MAIL_PASSWORD'),
98 |
99 | /*
100 | |--------------------------------------------------------------------------
101 | | Sendmail System Path
102 | |--------------------------------------------------------------------------
103 | |
104 | | When using the "sendmail" driver to send e-mails, we will need to know
105 | | the path to where Sendmail lives on this server. A default path has
106 | | been provided here, which will work well on most of your systems.
107 | |
108 | */
109 |
110 | 'sendmail' => '/usr/sbin/sendmail -bs',
111 |
112 | ];
113 |
--------------------------------------------------------------------------------
/config/queue.php:
--------------------------------------------------------------------------------
1 | env('QUEUE_DRIVER', 'sync'),
19 |
20 | /*
21 | |--------------------------------------------------------------------------
22 | | Queue Connections
23 | |--------------------------------------------------------------------------
24 | |
25 | | Here you may configure the connection information for each server that
26 | | is used by your application. A default configuration has been added
27 | | for each back-end shipped with Laravel. You are free to add more.
28 | |
29 | */
30 |
31 | 'connections' => [
32 |
33 | 'sync' => [
34 | 'driver' => 'sync',
35 | ],
36 |
37 | 'database' => [
38 | 'driver' => 'database',
39 | 'table' => 'jobs',
40 | 'queue' => 'default',
41 | 'expire' => 60,
42 | ],
43 |
44 | 'beanstalkd' => [
45 | 'driver' => 'beanstalkd',
46 | 'host' => 'localhost',
47 | 'queue' => 'default',
48 | 'ttr' => 60,
49 | ],
50 |
51 | 'sqs' => [
52 | 'driver' => 'sqs',
53 | 'key' => 'your-public-key',
54 | 'secret' => 'your-secret-key',
55 | 'prefix' => 'https://sqs.us-east-1.amazonaws.com/your-account-id',
56 | 'queue' => 'your-queue-name',
57 | 'region' => 'us-east-1',
58 | ],
59 |
60 | 'redis' => [
61 | 'driver' => 'redis',
62 | 'connection' => 'default',
63 | 'queue' => 'default',
64 | 'expire' => 60,
65 | ],
66 |
67 | ],
68 |
69 | /*
70 | |--------------------------------------------------------------------------
71 | | Failed Queue Jobs
72 | |--------------------------------------------------------------------------
73 | |
74 | | These options configure the behavior of failed queue job logging so you
75 | | can control which database and table are used to store the jobs that
76 | | have failed. You may change them to any database / table you wish.
77 | |
78 | */
79 |
80 | 'failed' => [
81 | 'database' => env('DB_CONNECTION', 'mysql'),
82 | 'table' => 'failed_jobs',
83 | ],
84 |
85 | ];
86 |
--------------------------------------------------------------------------------
/config/repository.php:
--------------------------------------------------------------------------------
1 | [
18 | 'limit' => 15
19 | ],
20 |
21 | /*
22 | |--------------------------------------------------------------------------
23 | | Fractal Presenter Config
24 | |--------------------------------------------------------------------------
25 | |
26 |
27 | Available serializers:
28 | ArraySerializer
29 | DataArraySerializer
30 | JsonApiSerializer
31 |
32 | */
33 | 'fractal' => [
34 | 'params' => [
35 | 'include' => 'include'
36 | ],
37 | 'serializer' => League\Fractal\Serializer\DataArraySerializer::class
38 | ],
39 |
40 | /*
41 | |--------------------------------------------------------------------------
42 | | Cache Config
43 | |--------------------------------------------------------------------------
44 | |
45 | */
46 | 'cache' => [
47 | /*
48 | |--------------------------------------------------------------------------
49 | | Cache Status
50 | |--------------------------------------------------------------------------
51 | |
52 | | Enable or disable cache
53 | |
54 | */
55 | 'enabled' => true,
56 |
57 | /*
58 | |--------------------------------------------------------------------------
59 | | Cache Minutes
60 | |--------------------------------------------------------------------------
61 | |
62 | | Time of expiration cache
63 | |
64 | */
65 | 'minutes' => 30,
66 |
67 | /*
68 | |--------------------------------------------------------------------------
69 | | Cache Repository
70 | |--------------------------------------------------------------------------
71 | |
72 | | Instance of Illuminate\Contracts\Cache\Repository
73 | |
74 | */
75 | 'repository' => 'cache',
76 |
77 | /*
78 | |--------------------------------------------------------------------------
79 | | Cache Clean Listener
80 | |--------------------------------------------------------------------------
81 | |
82 | |
83 | |
84 | */
85 | 'clean' => [
86 |
87 | /*
88 | |--------------------------------------------------------------------------
89 | | Enable clear cache on repository changes
90 | |--------------------------------------------------------------------------
91 | |
92 | */
93 | 'enabled' => true,
94 |
95 | /*
96 | |--------------------------------------------------------------------------
97 | | Actions in Repository
98 | |--------------------------------------------------------------------------
99 | |
100 | | create : Clear Cache on create Entry in repository
101 | | update : Clear Cache on update Entry in repository
102 | | delete : Clear Cache on delete Entry in repository
103 | |
104 | */
105 | 'on' => [
106 | 'create' => true,
107 | 'update' => true,
108 | 'delete' => true,
109 | ]
110 | ],
111 |
112 | 'params' => [
113 | /*
114 | |--------------------------------------------------------------------------
115 | | Skip Cache Params
116 | |--------------------------------------------------------------------------
117 | |
118 | |
119 | | Ex: http://prettus.local/?search=lorem&skipCache=true
120 | |
121 | */
122 | 'skipCache' => 'skipCache'
123 | ],
124 |
125 | /*
126 | |--------------------------------------------------------------------------
127 | | Methods Allowed
128 | |--------------------------------------------------------------------------
129 | |
130 | | methods cacheable : all, paginate, find, findByField, findWhere, getByCriteria
131 | |
132 | | Ex:
133 | |
134 | | 'only' =>['all','paginate'],
135 | |
136 | | or
137 | |
138 | | 'except' =>['find'],
139 | */
140 | 'allowed' => [
141 | 'only' => null,
142 | 'except' => null
143 | ]
144 | ],
145 |
146 | /*
147 | |--------------------------------------------------------------------------
148 | | Criteria Config
149 | |--------------------------------------------------------------------------
150 | |
151 | | Settings of request parameters names that will be used by Criteria
152 | |
153 | */
154 | 'criteria' => [
155 | /*
156 | |--------------------------------------------------------------------------
157 | | Accepted Conditions
158 | |--------------------------------------------------------------------------
159 | |
160 | | Conditions accepted in consultations where the Criteria
161 | |
162 | | Ex:
163 | |
164 | | 'acceptedConditions'=>['=','like']
165 | |
166 | | $query->where('foo','=','bar')
167 | | $query->where('foo','like','bar')
168 | |
169 | */
170 | 'acceptedConditions' => [
171 | '=',
172 | 'like'
173 | ],
174 | /*
175 | |--------------------------------------------------------------------------
176 | | Request Params
177 | |--------------------------------------------------------------------------
178 | |
179 | | Request parameters that will be used to filter the query in the repository
180 | |
181 | | Params :
182 | |
183 | | - search : Searched value
184 | | Ex: http://prettus.local/?search=lorem
185 | |
186 | | - searchFields : Fields in which research should be carried out
187 | | Ex:
188 | | http://prettus.local/?search=lorem&searchFields=name;email
189 | | http://prettus.local/?search=lorem&searchFields=name:like;email
190 | | http://prettus.local/?search=lorem&searchFields=name:like
191 | |
192 | | - filter : Fields that must be returned to the response object
193 | | Ex:
194 | | http://prettus.local/?search=lorem&filter=id,name
195 | |
196 | | - orderBy : Order By
197 | | Ex:
198 | | http://prettus.local/?search=lorem&orderBy=id
199 | |
200 | | - sortedBy : Sort
201 | | Ex:
202 | | http://prettus.local/?search=lorem&orderBy=id&sortedBy=asc
203 | | http://prettus.local/?search=lorem&orderBy=id&sortedBy=desc
204 | |
205 | */
206 | 'params' => [
207 | 'search' => 'search',
208 | 'searchFields' => 'searchFields',
209 | 'filter' => 'filter',
210 | 'orderBy' => 'orderBy',
211 | 'sortedBy' => 'sortedBy',
212 | 'with' => 'with'
213 | ]
214 | ],
215 | /*
216 | |--------------------------------------------------------------------------
217 | | Generator Config
218 | |--------------------------------------------------------------------------
219 | |
220 | */
221 | 'generator' => [
222 | 'basePath' => app_path(),
223 | 'rootNamespace' => 'App\\',
224 | 'paths' => [
225 | 'models' => 'Entities',
226 | 'repositories' => 'Repositories',
227 | 'interfaces' => 'Repositories',
228 | 'transformers' => 'Transformers',
229 | 'presenters' => 'Presenters',
230 | 'validators' => 'Validators',
231 | 'controllers' => 'Http/Controllers',
232 | 'provider' => 'RepositoryServiceProvider',
233 | ]
234 | ]
235 | ];
236 |
--------------------------------------------------------------------------------
/config/services.php:
--------------------------------------------------------------------------------
1 | [
18 | 'domain' => env('MAILGUN_DOMAIN'),
19 | 'secret' => env('MAILGUN_SECRET'),
20 | ],
21 |
22 | 'ses' => [
23 | 'key' => env('SES_KEY'),
24 | 'secret' => env('SES_SECRET'),
25 | 'region' => 'us-east-1',
26 | ],
27 |
28 | 'sparkpost' => [
29 | 'secret' => env('SPARKPOST_SECRET'),
30 | ],
31 |
32 | 'stripe' => [
33 | 'model' => App\User::class,
34 | 'key' => env('STRIPE_KEY'),
35 | 'secret' => env('STRIPE_SECRET'),
36 | ],
37 |
38 | ];
39 |
--------------------------------------------------------------------------------
/config/session.php:
--------------------------------------------------------------------------------
1 | env('SESSION_DRIVER', 'file'),
20 |
21 | /*
22 | |--------------------------------------------------------------------------
23 | | Session Lifetime
24 | |--------------------------------------------------------------------------
25 | |
26 | | Here you may specify the number of minutes that you wish the session
27 | | to be allowed to remain idle before it expires. If you want them
28 | | to immediately expire on the browser closing, set that option.
29 | |
30 | */
31 |
32 | 'lifetime' => 120,
33 |
34 | 'expire_on_close' => false,
35 |
36 | /*
37 | |--------------------------------------------------------------------------
38 | | Session Encryption
39 | |--------------------------------------------------------------------------
40 | |
41 | | This option allows you to easily specify that all of your session data
42 | | should be encrypted before it is stored. All encryption will be run
43 | | automatically by Laravel and you can use the Session like normal.
44 | |
45 | */
46 |
47 | 'encrypt' => false,
48 |
49 | /*
50 | |--------------------------------------------------------------------------
51 | | Session File Location
52 | |--------------------------------------------------------------------------
53 | |
54 | | When using the native session driver, we need a location where session
55 | | files may be stored. A default has been set for you but a different
56 | | location may be specified. This is only needed for file sessions.
57 | |
58 | */
59 |
60 | 'files' => storage_path('framework/sessions'),
61 |
62 | /*
63 | |--------------------------------------------------------------------------
64 | | Session Database Connection
65 | |--------------------------------------------------------------------------
66 | |
67 | | When using the "database" or "redis" session drivers, you may specify a
68 | | connection that should be used to manage these sessions. This should
69 | | correspond to a connection in your database configuration options.
70 | |
71 | */
72 |
73 | 'connection' => null,
74 |
75 | /*
76 | |--------------------------------------------------------------------------
77 | | Session Database Table
78 | |--------------------------------------------------------------------------
79 | |
80 | | When using the "database" session driver, you may specify the table we
81 | | should use to manage the sessions. Of course, a sensible default is
82 | | provided for you; however, you are free to change this as needed.
83 | |
84 | */
85 |
86 | 'table' => 'sessions',
87 |
88 | /*
89 | |--------------------------------------------------------------------------
90 | | Session Sweeping Lottery
91 | |--------------------------------------------------------------------------
92 | |
93 | | Some session drivers must manually sweep their storage location to get
94 | | rid of old sessions from storage. Here are the chances that it will
95 | | happen on a given request. By default, the odds are 2 out of 100.
96 | |
97 | */
98 |
99 | 'lottery' => [2, 100],
100 |
101 | /*
102 | |--------------------------------------------------------------------------
103 | | Session Cookie Name
104 | |--------------------------------------------------------------------------
105 | |
106 | | Here you may change the name of the cookie used to identify a session
107 | | instance by ID. The name specified here will get used every time a
108 | | new session cookie is created by the framework for every driver.
109 | |
110 | */
111 |
112 | 'cookie' => 'laravel_session',
113 |
114 | /*
115 | |--------------------------------------------------------------------------
116 | | Session Cookie Path
117 | |--------------------------------------------------------------------------
118 | |
119 | | The session cookie path determines the path for which the cookie will
120 | | be regarded as available. Typically, this will be the root path of
121 | | your application but you are free to change this when necessary.
122 | |
123 | */
124 |
125 | 'path' => '/',
126 |
127 | /*
128 | |--------------------------------------------------------------------------
129 | | Session Cookie Domain
130 | |--------------------------------------------------------------------------
131 | |
132 | | Here you may change the domain of the cookie used to identify a session
133 | | in your application. This will determine which domains the cookie is
134 | | available to in your application. A sensible default has been set.
135 | |
136 | */
137 |
138 | 'domain' => null,
139 |
140 | /*
141 | |--------------------------------------------------------------------------
142 | | HTTPS Only Cookies
143 | |--------------------------------------------------------------------------
144 | |
145 | | By setting this option to true, session cookies will only be sent back
146 | | to the server if the browser has a HTTPS connection. This will keep
147 | | the cookie from being sent to you if it can not be done securely.
148 | |
149 | */
150 |
151 | 'secure' => false,
152 |
153 | /*
154 | |--------------------------------------------------------------------------
155 | | HTTP Access Only
156 | |--------------------------------------------------------------------------
157 | |
158 | | Setting this value to true will prevent JavaScript from accessing the
159 | | value of the cookie and the cookie will only be accessible through
160 | | the HTTP protocol. You are free to modify this option if needed.
161 | |
162 | */
163 |
164 | 'http_only' => true,
165 |
166 | ];
167 |
--------------------------------------------------------------------------------
/config/view.php:
--------------------------------------------------------------------------------
1 | [
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 | ];
34 |
--------------------------------------------------------------------------------
/database/.gitignore:
--------------------------------------------------------------------------------
1 | *.sqlite
2 |
--------------------------------------------------------------------------------
/database/factories/ModelFactory.php:
--------------------------------------------------------------------------------
1 | define(App\User::class, function (Faker\Generator $faker) {
15 | return [
16 | 'name' => $faker->name,
17 | 'email' => $faker->safeEmail,
18 | 'password' => bcrypt(str_random(10)),
19 | 'remember_token' => str_random(10),
20 | ];
21 | });
22 |
--------------------------------------------------------------------------------
/database/migrations/.gitkeep:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/database/migrations/2014_10_12_000000_create_users_table.php:
--------------------------------------------------------------------------------
1 | increments('id');
17 | $table->string('name');
18 | $table->string('email')->unique();
19 | $table->string('password');
20 | $table->rememberToken();
21 | $table->timestamps();
22 | });
23 | }
24 |
25 | /**
26 | * Reverse the migrations.
27 | *
28 | * @return void
29 | */
30 | public function down()
31 | {
32 | Schema::drop('users');
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/database/migrations/2014_10_12_100000_create_password_resets_table.php:
--------------------------------------------------------------------------------
1 | string('email')->index();
17 | $table->string('token')->index();
18 | $table->timestamp('created_at');
19 | });
20 | }
21 |
22 | /**
23 | * Reverse the migrations.
24 | *
25 | * @return void
26 | */
27 | public function down()
28 | {
29 | Schema::drop('password_resets');
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/database/seeds/.gitkeep:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/database/seeds/DatabaseSeeder.php:
--------------------------------------------------------------------------------
1 | call(UsersTableSeeder::class);
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/gulpfile.js:
--------------------------------------------------------------------------------
1 | var elixir = require('laravel-elixir');
2 |
3 | /*
4 | |--------------------------------------------------------------------------
5 | | Elixir Asset Management
6 | |--------------------------------------------------------------------------
7 | |
8 | | Elixir provides a clean, fluent API for defining some basic Gulp tasks
9 | | for your Laravel application. By default, we are compiling the Sass
10 | | file for our application, as well as publishing vendor resources.
11 | |
12 | */
13 |
14 | elixir(function(mix) {
15 | mix.sass('app.scss');
16 | });
17 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "private": true,
3 | "scripts": {
4 | "prod": "gulp --production",
5 | "dev": "gulp watch"
6 | },
7 | "devDependencies": {
8 | "gulp": "^3.9.1",
9 | "laravel-elixir": "^5.0.0",
10 | "bootstrap-sass": "^3.0.0"
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/phpunit.xml:
--------------------------------------------------------------------------------
1 |
2 |