├── .editorconfig
├── .env.example
├── .gitattributes
├── .gitignore
├── app
├── Console
│ └── Kernel.php
├── Exceptions
│ └── Handler.php
├── Http
│ ├── Controllers
│ │ ├── Admin
│ │ │ └── .gitkeep
│ │ ├── Controller.php
│ │ ├── HomeController.php
│ │ └── WelcomeController.php
│ ├── Kernel.php
│ ├── Middleware
│ │ ├── Authenticate.php
│ │ ├── CheckForMaintenanceMode.php
│ │ ├── EncryptCookies.php
│ │ ├── RedirectIfAuthenticated.php
│ │ ├── TrimStrings.php
│ │ ├── TrustHosts.php
│ │ ├── TrustProxies.php
│ │ └── VerifyCsrfToken.php
│ └── Requests
│ │ └── Request.php
├── Providers
│ ├── AppServiceProvider.php
│ ├── AuthServiceProvider.php
│ ├── BroadcastServiceProvider.php
│ ├── EventServiceProvider.php
│ ├── ExtensionServiceProvider.php
│ ├── InstallerServiceProvider.php
│ └── RouteServiceProvider.php
└── User.php
├── artisan
├── bootstrap
├── app.php
└── cache
│ └── .gitignore
├── composer.json
├── config
├── app.php
├── auth.php
├── broadcasting.php
├── cache.php
├── cors.php
├── database.php
├── filesystems.php
├── hashing.php
├── local
│ └── app.php
├── logging.php
├── mail.php
├── packages
│ └── .gitkeep
├── queue.php
├── services.php
├── session.php
└── view.php
├── database
├── .gitignore
├── factories
│ └── UserFactory.php
├── migrations
│ ├── .gitkeep
│ └── 2019_08_19_000000_create_failed_jobs_table.php
├── orchestra
│ └── installer.php
└── seeds
│ ├── .gitkeep
│ └── DatabaseSeeder.php
├── package.json
├── phpunit.xml
├── public
├── .htaccess
├── favicon.ico
├── index.php
├── packages
│ └── .gitignore
├── robots.txt
├── themes
│ └── default
│ │ ├── screenshot.png
│ │ └── theme.json
└── web.config
├── resources
├── js
│ ├── app.js
│ └── bootstrap.js
├── lang
│ └── en
│ │ ├── auth.php
│ │ ├── pagination.php
│ │ ├── passwords.php
│ │ └── validation.php
├── sass
│ └── app.scss
├── themes
│ └── .gitkeep
└── views
│ ├── app.blade.php
│ ├── emails
│ └── notification.blade.php
│ ├── errors
│ └── 503.blade.php
│ ├── home.blade.php
│ └── welcome.blade.php
├── routes
├── admin.php
├── channels.php
├── console.php
└── web.php
├── server.php
├── storage
├── app
│ └── .gitignore
├── artifact
│ └── .gitignore
├── framework
│ ├── .gitignore
│ ├── cache
│ │ ├── .gitignore
│ │ └── data
│ │ │ └── .gitignore
│ ├── sessions
│ │ └── .gitignore
│ ├── testing
│ │ └── .gitignore
│ └── views
│ │ └── .gitignore
├── logs
│ └── .gitignore
└── public
│ └── .gitignore
├── tests
├── CreatesApplication.php
├── Feature
│ └── ExampleTest.php
├── TestCase.php
└── Unit
│ └── ExampleTest.php
├── webpack.mix.js
└── workbench
└── .gitkeep
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | end_of_line = lf
6 | insert_final_newline = true
7 | indent_style = space
8 | indent_size = 4
9 | trim_trailing_whitespace = true
10 |
11 | [*.md]
12 | trim_trailing_whitespace = false
13 |
14 | [*.{yml,yaml}]
15 | indent_size = 2
16 |
--------------------------------------------------------------------------------
/.env.example:
--------------------------------------------------------------------------------
1 | APP_NAME="Orchestra Platform"
2 | APP_ENV=local
3 | APP_KEY=
4 | APP_DEBUG=true
5 | APP_URL=http://localhost
6 |
7 | LOG_CHANNEL=stack
8 |
9 | EXTENSION_MODE=normal
10 |
11 | DB_CONNECTION=mysql
12 | DB_HOST=127.0.0.1
13 | DB_PORT=3306
14 | DB_DATABASE=laravel
15 | DB_USERNAME=root
16 | DB_PASSWORD=
17 |
18 | BROADCAST_DRIVER=log
19 | CACHE_DRIVER=file
20 | QUEUE_CONNECTION=sync
21 | SESSION_DRIVER=file
22 | SESSION_LIFETIME=120
23 |
24 | REDIS_HOST=127.0.0.1
25 | REDIS_PASSWORD=null
26 | REDIS_PORT=6379
27 |
28 | MAIL_MAILER=smtp
29 | MAIL_HOST=smtp.mailtrap.io
30 | MAIL_PORT=2525
31 | MAIL_USERNAME=null
32 | MAIL_PASSWORD=null
33 | MAIL_ENCRYPTION=null
34 | MAIL_FROM_ADDRESS=null
35 | MAIL_FROM_NAME="${APP_NAME}"
36 |
37 | AWS_ACCESS_KEY_ID=
38 | AWS_SECRET_ACCESS_KEY=
39 | AWS_DEFAULT_REGION=us-east-1
40 | AWS_BUCKET=
41 |
42 | PUSHER_APP_ID=
43 | PUSHER_APP_KEY=
44 | PUSHER_APP_SECRET=
45 | PUSHER_APP_CLUSTER=mt1
46 |
47 | MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
48 | MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
49 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | * text=auto
2 | *.css linguist-vendored
3 | *.js linguist-vendored
4 | *.scss linguist-vendored
5 |
6 | # Ignore following folder/file.
7 | /docs export-ignore
8 | /.travis.yml export-ignore
9 | /.php_cs export-ignore
10 | /readme.md export-ignore
11 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | /node_modules
2 | /public/hot
3 | /public/storage
4 | /storage/*.key
5 | /vendor
6 | /.idea
7 | /.vagrant
8 | .env
9 | .php_cs.cache
10 | .phpunit.result.cache
11 | Homestead.json
12 | Homestead.yaml
13 | npm-debug.log
14 | yarn-error.log
15 |
--------------------------------------------------------------------------------
/app/Console/Kernel.php:
--------------------------------------------------------------------------------
1 | command('inspire')->hourly();
29 | }
30 |
31 | /**
32 | * Register the commands for the application.
33 | *
34 | * @return void
35 | */
36 | protected function commands()
37 | {
38 | // $this->load(__DIR__.'/Commands');
39 |
40 | require \base_path('routes/console.php');
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/app/Exceptions/Handler.php:
--------------------------------------------------------------------------------
1 | middleware('auth');
13 | }
14 |
15 | /**
16 | * Show the application welcome screen to the user.
17 | *
18 | * @return mixed
19 | */
20 | public function index()
21 | {
22 | return \view('home');
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/app/Http/Controllers/WelcomeController.php:
--------------------------------------------------------------------------------
1 | middleware('guest');
24 | }
25 |
26 | /**
27 | * Show the application welcome screen to the user.
28 | *
29 | * @return mixed
30 | */
31 | public function index()
32 | {
33 | return \view('welcome');
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/app/Http/Kernel.php:
--------------------------------------------------------------------------------
1 | [
33 | Middleware\EncryptCookies::class,
34 | \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
35 | \Illuminate\Session\Middleware\StartSession::class,
36 | // \Illuminate\Session\Middleware\AuthenticateSession::class,
37 | \Illuminate\View\Middleware\ShareErrorsFromSession::class,
38 | Middleware\VerifyCsrfToken::class,
39 | \Illuminate\Routing\Middleware\SubstituteBindings::class,
40 | ],
41 |
42 | 'orchestra' => [
43 | 'web',
44 | 'backend',
45 | \Orchestra\Foundation\Http\Middleware\LoginAs::class,
46 | ],
47 |
48 | 'api' => [
49 | 'throttle:60,1',
50 | \Illuminate\Routing\Middleware\SubstituteBindings::class,
51 | ],
52 | ];
53 |
54 | /**
55 | * The application's route middleware.
56 | *
57 | * These middleware may be assigned to groups or used individually.
58 | *
59 | * @var array
60 | */
61 | protected $routeMiddleware = [
62 | 'auth' => Middleware\Authenticate::class,
63 | 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
64 | 'authorize' => \Illuminate\Auth\Middleware\Authorize::class,
65 | 'backend' => \Orchestra\Foundation\Http\Middleware\UseBackendTheme::class,
66 | 'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
67 | 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
68 | 'can' => \Orchestra\Foundation\Http\Middleware\Can::class,
69 | 'guest' => Middleware\RedirectIfAuthenticated::class,
70 | 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class,
71 | 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
72 | 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
73 | 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
74 | ];
75 | }
76 |
--------------------------------------------------------------------------------
/app/Http/Middleware/Authenticate.php:
--------------------------------------------------------------------------------
1 | expectsJson()) {
19 | return route('login');
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/app/Http/Middleware/CheckForMaintenanceMode.php:
--------------------------------------------------------------------------------
1 | check()) {
22 | return redirect(handles('app::home'));
23 | }
24 |
25 | return $next($request);
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/app/Http/Middleware/TrimStrings.php:
--------------------------------------------------------------------------------
1 | allSubdomainsOfApplicationUrl(),
18 | ];
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/app/Http/Middleware/TrustProxies.php:
--------------------------------------------------------------------------------
1 | 'App\Policies\ModelPolicy',
17 | ];
18 |
19 | /**
20 | * Register any authentication / authorization services.
21 | *
22 | * @return void
23 | */
24 | public function boot()
25 | {
26 | $this->registerPolicies();
27 |
28 | //
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/app/Providers/BroadcastServiceProvider.php:
--------------------------------------------------------------------------------
1 | [
18 | MigrateDatabaseSchema::class,
19 | ],
20 | ];
21 |
22 | /**
23 | * Register any events for your application.
24 | *
25 | * @return void
26 | */
27 | public function boot()
28 | {
29 | parent::boot();
30 |
31 | //
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/app/Providers/ExtensionServiceProvider.php:
--------------------------------------------------------------------------------
1 | loadFrontendRoutesFrom(\base_path('routes/web.php'));
48 | $this->loadBackendRoutesFrom(\base_path('routes/admin.php'), 'Admin');
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/app/User.php:
--------------------------------------------------------------------------------
1 | getAttribute('fullname');
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/artisan:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env php
2 | make(Illuminate\Contracts\Console\Kernel::class);
34 |
35 | $status = $kernel->handle(
36 | $input = new Symfony\Component\Console\Input\ArgvInput,
37 | new Symfony\Component\Console\Output\ConsoleOutput
38 | );
39 |
40 | /*
41 | |--------------------------------------------------------------------------
42 | | Shutdown The Application
43 | |--------------------------------------------------------------------------
44 | |
45 | | Once Artisan has finished running, we will fire off the shutdown events
46 | | so that any final work may be done by the application before we shut
47 | | down the process. This is the last thing to happen to the request.
48 | |
49 | */
50 |
51 | $kernel->terminate($input, $status);
52 |
53 | exit($status);
54 |
--------------------------------------------------------------------------------
/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/cache/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "orchestra/platform",
3 | "description": "Orchestra Platform",
4 | "homepage": "http://orchestraplatform.com/docs/latest/",
5 | "keywords": ["framework", "laravel", "orchestra-platform", "orchestral"],
6 | "license": "MIT",
7 | "type": "project",
8 | "require": {
9 | "php": ">=7.2.5",
10 | "fideloper/proxy": "^4.2",
11 | "fruitcake/laravel-cors": "^2.0",
12 | "guzzlehttp/guzzle": "^6.3.1",
13 | "laravel/tinker": "^2.0",
14 | "orchestra/avatar": "^5.0",
15 | "orchestra/control": "^5.0",
16 | "orchestra/foundation": "^5.0",
17 | "orchestra/installer": "^5.0"
18 | },
19 | "require-dev": {
20 | "facade/ignition": "^2.0",
21 | "mockery/mockery": "^1.3.1",
22 | "nunomaduro/collision": "^4.1",
23 | "orchestra/testing": "^5.0",
24 | "phpunit/phpunit": "^8.5"
25 | },
26 | "autoload": {
27 | "classmap": [
28 | "database/factories",
29 | "database/seeds"
30 | ],
31 | "psr-4": {
32 | "App\\": "app/"
33 | }
34 | },
35 | "autoload-dev": {
36 | "psr-4": {
37 | "Tests\\": "tests/"
38 | }
39 | },
40 | "extra": {
41 | "laravel": {
42 | "dont-discover": []
43 | },
44 | "config-cache": []
45 | },
46 | "scripts": {
47 | "post-root-package-install": [
48 | "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
49 | ],
50 | "post-create-project-cmd": [
51 | "@php artisan key:generate --ansi"
52 | ],
53 | "post-autoload-dump": [
54 | "Orchestra\\Foundation\\ComposerScripts::postAutoloadDump",
55 | "@php artisan package:discover --ansi",
56 | "@php artisan orchestra:assemble"
57 | ]
58 | },
59 | "config": {
60 | "optimize-autoloader": true,
61 | "preferred-install": "dist",
62 | "sort-packages": true
63 | },
64 | "prefer-stable": true,
65 | "minimum-stability": "dev"
66 | }
67 |
--------------------------------------------------------------------------------
/config/app.php:
--------------------------------------------------------------------------------
1 | env('APP_NAME', 'My Application'),
16 |
17 | /*
18 | |--------------------------------------------------------------------------
19 | | Application Environment
20 | |--------------------------------------------------------------------------
21 | |
22 | | This value determines the "environment" your application is currently
23 | | running in. This may determine how you prefer to configure various
24 | | services the application utilizes. Set this in your ".env" file.
25 | |
26 | */
27 |
28 | 'env' => env('APP_ENV', 'production'),
29 |
30 | /*
31 | |--------------------------------------------------------------------------
32 | | Application Debug Mode
33 | |--------------------------------------------------------------------------
34 | |
35 | | When your application is in debug mode, detailed error messages with
36 | | stack traces will be shown on every error that occurs within your
37 | | application. If disabled, a simple generic error page is shown.
38 | |
39 | */
40 |
41 | 'debug' => (bool) env('APP_DEBUG', false),
42 |
43 | /*
44 | |--------------------------------------------------------------------------
45 | | Application URL
46 | |--------------------------------------------------------------------------
47 | |
48 | | This URL is used by the console to properly generate URLs when using
49 | | the Artisan command line tool. You should set this to the root of
50 | | your application so that it is used when running Artisan tasks.
51 | |
52 | */
53 |
54 | 'url' => env('APP_URL', 'http://localhost'),
55 |
56 | 'api' => env('API_DOMAIN', 'http://localhost'),
57 |
58 | 'asset_url' => env('ASSET_URL', null),
59 |
60 | /*
61 | |--------------------------------------------------------------------------
62 | | Application Timezone
63 | |--------------------------------------------------------------------------
64 | |
65 | | Here you may specify the default timezone for your application, which
66 | | will be used by the PHP date and date-time functions. We have gone
67 | | ahead and set this to a sensible default for you out of the box.
68 | |
69 | */
70 |
71 | 'timezone' => 'UTC',
72 |
73 | /*
74 | |--------------------------------------------------------------------------
75 | | Application Locale Configuration
76 | |--------------------------------------------------------------------------
77 | |
78 | | The application locale determines the default locale that will be used
79 | | by the translation service provider. You are free to set this value
80 | | to any of the locales which will be supported by the application.
81 | |
82 | */
83 |
84 | 'locale' => 'en',
85 |
86 | /*
87 | |--------------------------------------------------------------------------
88 | | Application Fallback Locale
89 | |--------------------------------------------------------------------------
90 | |
91 | | The fallback locale determines the locale to use when the current one
92 | | is not available. You may change the value to correspond to any of
93 | | the language folders that are provided through your application.
94 | |
95 | */
96 |
97 | 'fallback_locale' => 'en',
98 |
99 | /*
100 | |--------------------------------------------------------------------------
101 | | Faker Locale
102 | |--------------------------------------------------------------------------
103 | |
104 | | This locale will be used by the Faker PHP library when generating fake
105 | | data for your database seeds. For example, this will be used to get
106 | | localized telephone numbers, street address information and more.
107 | |
108 | */
109 |
110 | 'faker_locale' => 'en_US',
111 |
112 | /*
113 | |--------------------------------------------------------------------------
114 | | Encryption Key
115 | |--------------------------------------------------------------------------
116 | |
117 | | This key is used by the Illuminate encrypter service and should be set
118 | | to a random, 32 character string, otherwise these encrypted strings
119 | | will not be safe. Please do this before deploying an application!
120 | |
121 | */
122 |
123 | 'key' => env('APP_KEY'),
124 |
125 | 'cipher' => 'AES-256-CBC',
126 |
127 | /*
128 | |--------------------------------------------------------------------------
129 | | Autoloaded Service Providers
130 | |--------------------------------------------------------------------------
131 | |
132 | | The service providers listed here will be automatically loaded on the
133 | | request to your application. Feel free to add your own services to
134 | | this array to grant expanded functionality to your applications.
135 | |
136 | */
137 |
138 | 'providers' => [
139 | /*
140 | * Laravel Framework Service Providers...
141 | */
142 | Illuminate\Broadcasting\BroadcastServiceProvider::class,
143 | Illuminate\Bus\BusServiceProvider::class,
144 | Illuminate\Cache\CacheServiceProvider::class,
145 | Illuminate\Cookie\CookieServiceProvider::class,
146 | Illuminate\Database\DatabaseServiceProvider::class,
147 | Illuminate\Encryption\EncryptionServiceProvider::class,
148 | Illuminate\Filesystem\FilesystemServiceProvider::class,
149 | Illuminate\Foundation\Providers\FoundationServiceProvider::class,
150 | Illuminate\Hashing\HashServiceProvider::class,
151 | Illuminate\Pagination\PaginationServiceProvider::class,
152 | Illuminate\Pipeline\PipelineServiceProvider::class,
153 | Illuminate\Queue\QueueServiceProvider::class,
154 | Illuminate\Redis\RedisServiceProvider::class,
155 | Illuminate\Session\SessionServiceProvider::class,
156 | Illuminate\Validation\ValidationServiceProvider::class,
157 |
158 | /*
159 | * Orchestra Platform Service Providers...
160 | */
161 | Orchestra\Asset\AssetServiceProvider::class,
162 | Orchestra\Auth\AuthServiceProvider::class,
163 | Orchestra\Authorization\AuthorizationServiceProvider::class,
164 | Orchestra\View\DecoratorServiceProvider::class,
165 | Orchestra\Extension\ExtensionServiceProvider::class,
166 | Orchestra\Html\HtmlServiceProvider::class,
167 | Orchestra\Notifier\MailServiceProvider::class,
168 | Orchestra\Memory\MemoryServiceProvider::class,
169 | Orchestra\Messages\MessagesServiceProvider::class,
170 | Orchestra\Notifications\NotificationServiceProvider::class,
171 | Orchestra\Notifier\NotifierServiceProvider::class,
172 | Orchestra\Auth\Passwords\PasswordResetServiceProvider::class,
173 | Orchestra\Publisher\PublisherServiceProvider::class,
174 | Orchestra\Foundation\Providers\SupportServiceProvider::class,
175 | Orchestra\Translation\TranslationServiceProvider::class,
176 | Orchestra\View\ViewServiceProvider::class,
177 | Orchestra\Widget\WidgetServiceProvider::class,
178 |
179 | Orchestra\Foundation\Providers\ConsoleSupportServiceProvider::class,
180 | Orchestra\Foundation\Providers\FoundationServiceProvider::class,
181 | Orchestra\Foundation\Providers\RouteServiceProvider::class,
182 |
183 | /*
184 | * Orchestra Platform Optional Service Providers...
185 | */
186 | Orchestra\Avatar\AvatarServiceProvider::class,
187 |
188 | /*
189 | * Application Service Providers...
190 | */
191 | App\Providers\AppServiceProvider::class,
192 | App\Providers\AuthServiceProvider::class,
193 | // App\Providers\BroadcastServiceProvider::class,
194 | App\Providers\EventServiceProvider::class,
195 | App\Providers\ExtensionServiceProvider::class,
196 | App\Providers\InstallerServiceProvider::class,
197 | App\Providers\RouteServiceProvider::class,
198 | ],
199 |
200 | /*
201 | |--------------------------------------------------------------------------
202 | | Class Aliases
203 | |--------------------------------------------------------------------------
204 | |
205 | | This array of class aliases will be registered when this application
206 | | is started. However, feel free to register as many as you wish as
207 | | the aliases are "lazy" loaded so they don't hinder performance.
208 | |
209 | */
210 |
211 | 'aliases' => [
212 | 'App' => Illuminate\Support\Facades\App::class,
213 | 'ACL' => Orchestra\Support\Facades\ACL::class,
214 | 'Arr' => Orchestra\Support\Arr::class,
215 | 'Artisan' => Illuminate\Support\Facades\Artisan::class,
216 | 'Asset' => Orchestra\Support\Facades\Asset::class,
217 | 'Auth' => Illuminate\Support\Facades\Auth::class,
218 | 'Blade' => Illuminate\Support\Facades\Blade::class,
219 | 'Broadcast' => Illuminate\Support\Facades\Broadcast::class,
220 | 'Bus' => Illuminate\Support\Facades\Bus::class,
221 | 'Cache' => Illuminate\Support\Facades\Cache::class,
222 | 'Config' => Illuminate\Support\Facades\Config::class,
223 | 'Cookie' => Illuminate\Support\Facades\Cookie::class,
224 | 'Crypt' => Illuminate\Support\Facades\Crypt::class,
225 | 'DB' => Illuminate\Support\Facades\DB::class,
226 | 'Eloquent' => Illuminate\Database\Eloquent\Model::class,
227 | 'Event' => Illuminate\Support\Facades\Event::class,
228 | 'File' => Illuminate\Support\Facades\File::class,
229 | 'Form' => Orchestra\Support\Facades\Form::class,
230 | 'Foundation' => Orchestra\Support\Facades\Foundation::class,
231 | 'Gate' => Illuminate\Support\Facades\Gate::class,
232 | 'Hash' => Illuminate\Support\Facades\Hash::class,
233 | 'Http' => Illuminate\Support\Facades\Http::class,
234 | 'HTML' => Orchestra\Support\Facades\HTML::class,
235 | 'Lang' => Illuminate\Support\Facades\Lang::class,
236 | 'Log' => Illuminate\Support\Facades\Log::class,
237 | 'Mail' => Illuminate\Support\Facades\Mail::class,
238 | 'Mailer' => Orchestra\Support\Facades\Mail::class,
239 | 'Memory' => Orchestra\Support\Facades\Memory::class,
240 | 'Messages' => Orchestra\Support\Facades\Messages::class,
241 | 'Meta' => Orchestra\Support\Facades\Meta::class,
242 | 'Notification' => Illuminate\Support\Facades\Notification::class,
243 | 'Password' => Illuminate\Support\Facades\Password::class,
244 | 'Queue' => Illuminate\Support\Facades\Queue::class,
245 | 'Redirect' => Illuminate\Support\Facades\Redirect::class,
246 | 'RedisManager' => Illuminate\Support\Facades\Redis::class,
247 | 'Request' => Illuminate\Support\Facades\Request::class,
248 | 'Response' => Illuminate\Support\Facades\Response::class,
249 | 'Route' => Illuminate\Support\Facades\Route::class,
250 | 'Schema' => Illuminate\Support\Facades\Schema::class,
251 | 'Session' => Illuminate\Support\Facades\Session::class,
252 | 'Storage' => Illuminate\Support\Facades\Storage::class,
253 | 'Str' => Orchestra\Support\Str::class,
254 | 'Table' => Orchestra\Support\Facades\Table::class,
255 | 'Theme' => Orchestra\Support\Facades\Theme::class,
256 | 'URL' => Illuminate\Support\Facades\URL::class,
257 | 'Validator' => Illuminate\Support\Facades\Validator::class,
258 | 'View' => Illuminate\Support\Facades\View::class,
259 | ],
260 | ];
261 |
--------------------------------------------------------------------------------
/config/auth.php:
--------------------------------------------------------------------------------
1 | [
16 | 'guard' => 'web',
17 | 'passwords' => 'users',
18 | ],
19 |
20 | /*
21 | |--------------------------------------------------------------------------
22 | | Authentication Guards
23 | |--------------------------------------------------------------------------
24 | |
25 | | Next, you may define every authentication guard for your application.
26 | | Of course, a great default configuration has been defined for you
27 | | here which uses session storage and the Eloquent user provider.
28 | |
29 | | All authentication drivers have a user provider. This defines how the
30 | | users are actually retrieved out of your database or other storage
31 | | mechanisms used by this application to persist your user's data.
32 | |
33 | | Supported: "session", "token"
34 | |
35 | */
36 |
37 | 'guards' => [
38 | 'web' => [
39 | 'driver' => 'session',
40 | 'provider' => 'users',
41 | ],
42 |
43 | 'api' => [
44 | 'driver' => 'token',
45 | 'provider' => 'users',
46 | 'hash' => false,
47 | ],
48 |
49 | 'jwt' => [
50 | 'driver' => 'jwt',
51 | ],
52 | ],
53 |
54 | /*
55 | |--------------------------------------------------------------------------
56 | | User Providers
57 | |--------------------------------------------------------------------------
58 | |
59 | | All authentication drivers have a user provider. This defines how the
60 | | users are actually retrieved out of your database or other storage
61 | | mechanisms used by this application to persist your user's data.
62 | |
63 | | If you have multiple user tables or models you may configure multiple
64 | | sources which represent each model / table. These sources may then
65 | | be assigned to any extra authentication guards you have defined.
66 | |
67 | | Supported: "database", "eloquent"
68 | |
69 | */
70 |
71 | 'providers' => [
72 | 'users' => [
73 | 'driver' => 'authen',
74 | 'model' => App\User::class,
75 | ],
76 |
77 | // 'users' => [
78 | // 'driver' => 'database',
79 | // 'table' => 'users',
80 | // ],
81 | ],
82 |
83 | /*
84 | |--------------------------------------------------------------------------
85 | | Resetting Passwords
86 | |--------------------------------------------------------------------------
87 | |
88 | | Here you may set the options for resetting passwords including the view
89 | | that is your password reset e-mail. You may also set the name of the
90 | | table that maintains all of the reset tokens for your application.
91 | |
92 | | You may specify multiple password reset configurations if you have more
93 | | than one user table or model in the application and you want to have
94 | | separate password reset settings based on the specific user types.
95 | |
96 | | The expire time is the number of minutes that the reset token should be
97 | | considered valid. This security feature keeps tokens short-lived so
98 | | they have less time to be guessed. You may change this as needed.
99 | |
100 | */
101 |
102 | 'passwords' => [
103 | 'users' => [
104 | 'provider' => 'users',
105 | 'email' => 'emails.notification',
106 | 'table' => 'password_resets',
107 | 'expire' => 60,
108 | 'throttle' => 60,
109 | ],
110 | ],
111 |
112 | /*
113 | |--------------------------------------------------------------------------
114 | | User Register Settings
115 | |--------------------------------------------------------------------------
116 | |
117 | | Here you may set the options for registering user including the view
118 | | that is your welcome e-mail.
119 | */
120 |
121 | 'registers' => [
122 | 'email' => 'emails.notification',
123 | ],
124 |
125 | /*
126 | |--------------------------------------------------------------------------
127 | | Password Confirmation Timeout
128 | |--------------------------------------------------------------------------
129 | |
130 | | Here you may define the amount of seconds before a password confirmation
131 | | times out and the user is prompted to re-enter their password via the
132 | | confirmation screen. By default, the timeout lasts for three hours.
133 | |
134 | */
135 |
136 | 'password_timeout' => 10800,
137 | ];
138 |
--------------------------------------------------------------------------------
/config/broadcasting.php:
--------------------------------------------------------------------------------
1 | env('BROADCAST_DRIVER', 'null'),
18 |
19 | /*
20 | |--------------------------------------------------------------------------
21 | | Broadcast Connections
22 | |--------------------------------------------------------------------------
23 | |
24 | | Here you may define all of the broadcast connections that will be used
25 | | to broadcast events to other systems or over websockets. Samples of
26 | | each available type of connection are provided inside this array.
27 | |
28 | */
29 |
30 | 'connections' => [
31 | 'pusher' => [
32 | 'driver' => 'pusher',
33 | 'key' => env('PUSHER_APP_KEY'),
34 | 'secret' => env('PUSHER_APP_SECRET'),
35 | 'app_id' => env('PUSHER_APP_ID'),
36 | 'options' => [
37 | 'cluster' => env('PUSHER_APP_CLUSTER'),
38 | 'useTLS' => true,
39 | ],
40 | ],
41 |
42 | 'redis' => [
43 | 'driver' => 'redis',
44 | 'connection' => 'default',
45 | ],
46 |
47 | 'log' => [
48 | 'driver' => 'log',
49 | ],
50 |
51 | 'null' => [
52 | 'driver' => 'null',
53 | ],
54 | ],
55 | ];
56 |
--------------------------------------------------------------------------------
/config/cache.php:
--------------------------------------------------------------------------------
1 | env('CACHE_DRIVER', 'file'),
21 |
22 | /*
23 | |--------------------------------------------------------------------------
24 | | Cache Stores
25 | |--------------------------------------------------------------------------
26 | |
27 | | Here you may define all of the cache "stores" for your application as
28 | | well as their drivers. You may even define multiple stores for the
29 | | same cache driver to group types of items stored in your caches.
30 | |
31 | */
32 |
33 | 'stores' => [
34 | 'apc' => [
35 | 'driver' => 'apc',
36 | ],
37 |
38 | 'array' => [
39 | 'driver' => 'array',
40 | 'serialize' => false,
41 | ],
42 |
43 | 'database' => [
44 | 'driver' => 'database',
45 | 'table' => 'cache',
46 | 'connection' => null,
47 | ],
48 |
49 | 'file' => [
50 | 'driver' => 'file',
51 | 'path' => storage_path('framework/cache/data'),
52 | ],
53 |
54 | 'memcached' => [
55 | 'driver' => 'memcached',
56 | 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
57 | 'sasl' => [
58 | env('MEMCACHED_USERNAME'),
59 | env('MEMCACHED_PASSWORD'),
60 | ],
61 | 'options' => [
62 | // Memcached::OPT_CONNECT_TIMEOUT => 2000,
63 | ],
64 | 'servers' => [
65 | [
66 | 'host' => env('MEMCACHED_HOST', '127.0.0.1'),
67 | 'port' => env('MEMCACHED_PORT', 11211),
68 | 'weight' => 100,
69 | ],
70 | ],
71 | ],
72 |
73 | 'redis' => [
74 | 'driver' => 'redis',
75 | 'connection' => 'cache',
76 | ],
77 |
78 | 'dynamodb' => [
79 | 'driver' => 'dynamodb',
80 | 'key' => env('AWS_ACCESS_KEY_ID'),
81 | 'secret' => env('AWS_SECRET_ACCESS_KEY'),
82 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
83 | 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'),
84 | 'endpoint' => env('DYNAMODB_ENDPOINT'),
85 | ],
86 | ],
87 |
88 | /*
89 | |--------------------------------------------------------------------------
90 | | Cache Key Prefix
91 | |--------------------------------------------------------------------------
92 | |
93 | | When utilizing a RAM based store such as APC or Memcached, there might
94 | | be other applications utilizing the same cache. So, we'll specify a
95 | | value to get prefixed to all our keys so we can avoid collisions.
96 | |
97 | */
98 |
99 | 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache_'),
100 | ];
101 |
--------------------------------------------------------------------------------
/config/cors.php:
--------------------------------------------------------------------------------
1 | ['api/*'],
19 |
20 | 'allowed_methods' => ['*'],
21 |
22 | 'allowed_origins' => ['*'],
23 |
24 | 'allowed_origins_patterns' => [],
25 |
26 | 'allowed_headers' => ['*'],
27 |
28 | 'exposed_headers' => [],
29 |
30 | 'max_age' => 0,
31 |
32 | 'supports_credentials' => false,
33 |
34 | ];
35 |
--------------------------------------------------------------------------------
/config/database.php:
--------------------------------------------------------------------------------
1 | env('DB_CONNECTION', 'mysql'),
18 |
19 | /*
20 | |--------------------------------------------------------------------------
21 | | Database Connections
22 | |--------------------------------------------------------------------------
23 | |
24 | | Here are each of the database connections setup for your application.
25 | | Of course, examples of configuring each database platform that is
26 | | supported by Laravel is shown below to make development simple.
27 | |
28 | |
29 | | All database work in Laravel is done through the PHP PDO facilities
30 | | so make sure you have the driver for your particular database of
31 | | choice installed on your machine before you begin development.
32 | |
33 | */
34 |
35 | 'connections' => [
36 | 'testing' => [
37 | 'driver' => 'sqlite',
38 | 'database' => ':memory:',
39 | ],
40 |
41 | 'sqlite' => [
42 | 'driver' => 'sqlite',
43 | 'url' => env('DATABASE_URL'),
44 | 'database' => database_path(env('DB_DATABASE', 'database.sqlite')),
45 | 'prefix' => '',
46 | 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
47 | ],
48 |
49 | 'mysql' => [
50 | 'driver' => 'mysql',
51 | 'url' => env('DATABASE_URL'),
52 | 'host' => env('DB_HOST', '127.0.0.1'),
53 | 'port' => env('DB_PORT', '3306'),
54 | 'database' => env('DB_DATABASE', 'forge'),
55 | 'username' => env('DB_USERNAME', 'forge'),
56 | 'password' => env('DB_PASSWORD', ''),
57 | 'unix_socket' => env('DB_SOCKET', ''),
58 | 'charset' => 'utf8mb4',
59 | 'collation' => 'utf8mb4_unicode_ci',
60 | 'prefix' => '',
61 | 'prefix_indexes' => true,
62 | 'strict' => true,
63 | 'engine' => null,
64 | 'options' => extension_loaded('pdo_mysql') ? array_filter([
65 | PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
66 | ]) : [],
67 | ],
68 |
69 | 'pgsql' => [
70 | 'driver' => 'pgsql',
71 | 'url' => env('DATABASE_URL'),
72 | 'host' => env('DB_HOST', '127.0.0.1'),
73 | 'port' => env('DB_PORT', '5432'),
74 | 'database' => env('DB_DATABASE', 'forge'),
75 | 'username' => env('DB_USERNAME', 'forge'),
76 | 'password' => env('DB_PASSWORD', ''),
77 | 'charset' => 'utf8',
78 | 'prefix' => '',
79 | 'prefix_indexes' => true,
80 | 'schema' => 'public',
81 | 'sslmode' => 'prefer',
82 | ],
83 |
84 | 'sqlsrv' => [
85 | 'driver' => 'sqlsrv',
86 | 'url' => env('DATABASE_URL'),
87 | 'host' => env('DB_HOST', 'localhost'),
88 | 'port' => env('DB_PORT', '1433'),
89 | 'database' => env('DB_DATABASE', 'forge'),
90 | 'username' => env('DB_USERNAME', 'forge'),
91 | 'password' => env('DB_PASSWORD', ''),
92 | 'charset' => 'utf8',
93 | 'prefix' => '',
94 | 'prefix_indexes' => true,
95 | ],
96 | ],
97 |
98 | /*
99 | |--------------------------------------------------------------------------
100 | | Migration Repository Table
101 | |--------------------------------------------------------------------------
102 | |
103 | | This table keeps track of all the migrations that have already run for
104 | | your application. Using this information, we can determine which of
105 | | the migrations on disk haven't actually been run in the database.
106 | |
107 | */
108 |
109 | 'migrations' => 'migrations',
110 |
111 | /*
112 | |--------------------------------------------------------------------------
113 | | Redis Databases
114 | |--------------------------------------------------------------------------
115 | |
116 | | Redis is an open source, fast, and advanced key-value store that also
117 | | provides a richer body of commands than a typical key-value system
118 | | such as APC or Memcached. Laravel makes it easy to dig right in.
119 | |
120 | */
121 |
122 | 'redis' => [
123 | 'client' => env('REDIS_CLIENT', 'phpredis'),
124 |
125 | 'options' => [
126 | 'cluster' => env('REDIS_CLUSTER', 'redis'),
127 | // 'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'),
128 | ],
129 |
130 | 'default' => [
131 | 'url' => env('REDIS_URL'),
132 | 'host' => env('REDIS_HOST', '127.0.0.1'),
133 | 'password' => env('REDIS_PASSWORD', null),
134 | 'port' => env('REDIS_PORT', '6379'),
135 | 'database' => env('REDIS_DB', '0'),
136 | ],
137 |
138 | 'cache' => [
139 | 'url' => env('REDIS_URL'),
140 | 'host' => env('REDIS_HOST', '127.0.0.1'),
141 | 'password' => env('REDIS_PASSWORD', null),
142 | 'port' => env('REDIS_PORT', '6379'),
143 | 'database' => env('REDIS_CACHE_DB', '1'),
144 | ],
145 | ],
146 | ];
147 |
--------------------------------------------------------------------------------
/config/filesystems.php:
--------------------------------------------------------------------------------
1 | env('FILESYSTEM_DRIVER', 'local'),
18 |
19 | /*
20 | |--------------------------------------------------------------------------
21 | | Default Cloud Filesystem Disk
22 | |--------------------------------------------------------------------------
23 | |
24 | | Many applications store files both locally and in the cloud. For this
25 | | reason, you may specify a default "cloud" driver here. This driver
26 | | will be bound as the Cloud disk implementation in the container.
27 | |
28 | */
29 |
30 | 'cloud' => env('FILESYSTEM_CLOUD', 's3'),
31 |
32 | /*
33 | |--------------------------------------------------------------------------
34 | | Filesystem Disks
35 | |--------------------------------------------------------------------------
36 | |
37 | | Here you may configure as many filesystem "disks" as you wish, and you
38 | | may even configure multiple disks of the same driver. Defaults have
39 | | been setup for each driver as an example of the required options.
40 | |
41 | | Supported Drivers: "local", "ftp", "sftp", "s3",
42 | |
43 | */
44 |
45 | 'disks' => [
46 | 'local' => [
47 | 'driver' => 'local',
48 | 'root' => storage_path('app'),
49 | ],
50 |
51 | 'public' => [
52 | 'driver' => 'local',
53 | 'root' => storage_path('app/public'),
54 | 'url' => env('APP_URL').'/storage',
55 | 'visibility' => 'public',
56 | ],
57 |
58 | 's3' => [
59 | 'driver' => 's3',
60 | 'key' => env('AWS_ACCESS_KEY_ID'),
61 | 'secret' => env('AWS_SECRET_ACCESS_KEY'),
62 | 'region' => env('AWS_DEFAULT_REGION'),
63 | 'bucket' => env('AWS_BUCKET'),
64 | 'url' => env('AWS_URL'),
65 | 'endpoint' => env('AWS_ENDPOINT'),
66 | ],
67 | ],
68 |
69 | /*
70 | |--------------------------------------------------------------------------
71 | | Symbolic Links
72 | |--------------------------------------------------------------------------
73 | |
74 | | Here you may configure the symbolic links that will be created when the
75 | | `storage:link` Artisan command is executed. The array keys should be
76 | | the locations of the links and the values should be their targets.
77 | |
78 | */
79 |
80 | 'links' => [
81 | public_path('storage') => storage_path('app/public'),
82 | ],
83 |
84 | ];
85 |
--------------------------------------------------------------------------------
/config/hashing.php:
--------------------------------------------------------------------------------
1 | 'bcrypt',
18 |
19 | /*
20 | |--------------------------------------------------------------------------
21 | | Bcrypt Options
22 | |--------------------------------------------------------------------------
23 | |
24 | | Here you may specify the configuration options that should be used when
25 | | passwords are hashed using the Bcrypt algorithm. This will allow you
26 | | to control the amount of time it takes to hash the given password.
27 | |
28 | */
29 |
30 | 'bcrypt' => [
31 | 'rounds' => env('BCRYPT_ROUNDS', 10),
32 | ],
33 |
34 | /*
35 | |--------------------------------------------------------------------------
36 | | Argon Options
37 | |--------------------------------------------------------------------------
38 | |
39 | | Here you may specify the configuration options that should be used when
40 | | passwords are hashed using the Argon algorithm. These will allow you
41 | | to control the amount of time it takes to hash the given password.
42 | |
43 | */
44 |
45 | 'argon' => [
46 | 'memory' => 1024,
47 | 'threads' => 2,
48 | 'time' => 2,
49 | ],
50 | ];
51 |
--------------------------------------------------------------------------------
/config/local/app.php:
--------------------------------------------------------------------------------
1 | append_config([
5 | //
6 | ]),
7 | ];
8 |
--------------------------------------------------------------------------------
/config/logging.php:
--------------------------------------------------------------------------------
1 | env('LOG_CHANNEL', 'stack'),
20 |
21 | /*
22 | |--------------------------------------------------------------------------
23 | | Log Channels
24 | |--------------------------------------------------------------------------
25 | |
26 | | Here you may configure the log channels for your application. Out of
27 | | the box, Laravel uses the Monolog PHP logging library. This gives
28 | | you a variety of powerful log handlers / formatters to utilize.
29 | |
30 | | Available Drivers: "single", "daily", "slack", "syslog",
31 | | "errorlog", "monolog",
32 | | "custom", "stack"
33 | |
34 | */
35 |
36 | 'channels' => [
37 | 'stack' => [
38 | 'driver' => 'stack',
39 | 'channels' => ['single'],
40 | 'ignore_exceptions' => false,
41 | ],
42 |
43 | 'single' => [
44 | 'driver' => 'single',
45 | 'path' => storage_path('logs/laravel.log'),
46 | 'level' => 'debug',
47 | ],
48 |
49 | 'daily' => [
50 | 'driver' => 'daily',
51 | 'path' => storage_path('logs/laravel.log'),
52 | 'level' => 'debug',
53 | 'days' => 14,
54 | ],
55 |
56 | 'slack' => [
57 | 'driver' => 'slack',
58 | 'url' => env('LOG_SLACK_WEBHOOK_URL'),
59 | 'username' => 'Laravel Log',
60 | 'emoji' => ':boom:',
61 | 'level' => 'critical',
62 | ],
63 |
64 | 'papertrail' => [
65 | 'driver' => 'monolog',
66 | 'level' => 'debug',
67 | 'handler' => SyslogUdpHandler::class,
68 | 'handler_with' => [
69 | 'host' => env('PAPERTRAIL_URL'),
70 | 'port' => env('PAPERTRAIL_PORT'),
71 | ],
72 | ],
73 |
74 | 'stderr' => [
75 | 'driver' => 'monolog',
76 | 'handler' => StreamHandler::class,
77 | 'formatter' => env('LOG_STDERR_FORMATTER'),
78 | 'with' => [
79 | 'stream' => 'php://stderr',
80 | ],
81 | ],
82 |
83 | 'syslog' => [
84 | 'driver' => 'syslog',
85 | 'level' => 'debug',
86 | ],
87 |
88 | 'errorlog' => [
89 | 'driver' => 'errorlog',
90 | 'level' => 'debug',
91 | ],
92 |
93 | 'null' => [
94 | 'driver' => 'monolog',
95 | 'handler' => NullHandler::class,
96 | ],
97 |
98 | 'emergency' => [
99 | 'path' => storage_path('logs/laravel.log'),
100 | ],
101 | ],
102 | ];
103 |
--------------------------------------------------------------------------------
/config/mail.php:
--------------------------------------------------------------------------------
1 | env('MAIL_MAILER', 'smtp'),
17 |
18 | /*
19 | |--------------------------------------------------------------------------
20 | | Mailer Configurations
21 | |--------------------------------------------------------------------------
22 | |
23 | | Here you may configure all of the mailers used by your application plus
24 | | their respective settings. Several examples have been configured for
25 | | you and you are free to add your own as your application requires.
26 | |
27 | | Laravel supports a variety of mail "transport" drivers to be used while
28 | | sending an e-mail. You will specify which one you are using for your
29 | | mailers below. You are free to add additional mailers as required.
30 | |
31 | | Supported: "smtp", "sendmail", "mailgun", "ses",
32 | | "postmark", "log", "array"
33 | |
34 | */
35 |
36 | 'mailers' => [
37 | 'smtp' => [
38 | 'transport' => 'smtp',
39 | 'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
40 | 'port' => env('MAIL_PORT', 587),
41 | 'encryption' => env('MAIL_ENCRYPTION', 'tls'),
42 | 'username' => env('MAIL_USERNAME'),
43 | 'password' => env('MAIL_PASSWORD'),
44 | 'timeout' => null,
45 | 'auth_mode' => null,
46 | ],
47 |
48 | 'ses' => [
49 | 'transport' => 'ses',
50 | ],
51 |
52 | 'mailgun' => [
53 | 'transport' => 'mailgun',
54 | ],
55 |
56 | 'postmark' => [
57 | 'transport' => 'postmark',
58 | ],
59 |
60 | 'sendmail' => [
61 | 'transport' => 'sendmail',
62 | 'path' => '/usr/sbin/sendmail -bs',
63 | ],
64 |
65 | 'log' => [
66 | 'transport' => 'log',
67 | 'channel' => env('MAIL_LOG_CHANNEL'),
68 | ],
69 |
70 | 'array' => [
71 | 'transport' => 'array',
72 | ],
73 | ],
74 |
75 | /*
76 | |--------------------------------------------------------------------------
77 | | Global "From" Address
78 | |--------------------------------------------------------------------------
79 | |
80 | | You may wish for all e-mails sent by your application to be sent from
81 | | the same address. Here, you may specify a name and address that is
82 | | used globally for all e-mails that are sent by your application.
83 | |
84 | */
85 |
86 | 'from' => [
87 | 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
88 | 'name' => env('MAIL_FROM_NAME', 'Example'),
89 | ],
90 |
91 | /*
92 | |--------------------------------------------------------------------------
93 | | Markdown Mail Settings
94 | |--------------------------------------------------------------------------
95 | |
96 | | If you are using Markdown based email rendering, you may configure your
97 | | theme and component paths here, allowing you to customize the design
98 | | of the emails. Or, you may simply stick with the Laravel defaults!
99 | |
100 | */
101 |
102 | 'markdown' => [
103 | 'theme' => 'default',
104 |
105 | 'paths' => [
106 | resource_path('views/vendor/mail'),
107 | ],
108 | ],
109 |
110 | ];
111 |
--------------------------------------------------------------------------------
/config/packages/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/orchestral/platform/5cc7d1c0c24c7c4ba38548f12b5e936be00bebda/config/packages/.gitkeep
--------------------------------------------------------------------------------
/config/queue.php:
--------------------------------------------------------------------------------
1 | env('QUEUE_CONNECTION', 'sync'),
16 |
17 | /*
18 | |--------------------------------------------------------------------------
19 | | Queue Connections
20 | |--------------------------------------------------------------------------
21 | |
22 | | Here you may configure the connection information for each server that
23 | | is used by your application. A default configuration has been added
24 | | for each back-end shipped with Laravel. You are free to add more.
25 | |
26 | | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null"
27 | |
28 | */
29 |
30 | 'connections' => [
31 | 'sync' => [
32 | 'driver' => 'sync',
33 | ],
34 |
35 | 'database' => [
36 | 'driver' => 'database',
37 | 'table' => 'jobs',
38 | 'queue' => 'default',
39 | 'retry_after' => 90,
40 | ],
41 |
42 | 'beanstalkd' => [
43 | 'driver' => 'beanstalkd',
44 | 'host' => 'localhost',
45 | 'queue' => 'default',
46 | 'retry_after' => 90,
47 | 'block_for' => 0,
48 | ],
49 |
50 | 'sqs' => [
51 | 'driver' => 'sqs',
52 | 'key' => env('AWS_ACCESS_KEY_ID'),
53 | 'secret' => env('AWS_SECRET_ACCESS_KEY'),
54 | 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
55 | 'queue' => env('SQS_QUEUE', 'your-queue-name'),
56 | 'suffix' => env('SQS_SUFFIX'),
57 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
58 | ],
59 |
60 | 'redis' => [
61 | 'driver' => 'redis',
62 | 'connection' => 'default',
63 | 'queue' => env('REDIS_QUEUE', 'default'),
64 | 'retry_after' => 90,
65 | 'block_for' => null,
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 | 'driver' => env('QUEUE_FAILED_DRIVER', 'database'),
82 | 'database' => env('DB_CONNECTION', 'mysql'),
83 | 'table' => 'failed_jobs',
84 | ],
85 | ];
86 |
--------------------------------------------------------------------------------
/config/services.php:
--------------------------------------------------------------------------------
1 | [
17 | 'domain' => env('MAILGUN_DOMAIN'),
18 | 'secret' => env('MAILGUN_SECRET'),
19 | 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'),
20 | ],
21 |
22 | 'postmark' => [
23 | 'token' => env('POSTMARK_TOKEN'),
24 | ],
25 |
26 | 'ses' => [
27 | 'key' => env('AWS_ACCESS_KEY_ID'),
28 | 'secret' => env('AWS_SECRET_ACCESS_KEY'),
29 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
30 | ],
31 | ];
32 |
--------------------------------------------------------------------------------
/config/session.php:
--------------------------------------------------------------------------------
1 | env('SESSION_DRIVER', 'file'),
21 |
22 | /*
23 | |--------------------------------------------------------------------------
24 | | Session Lifetime
25 | |--------------------------------------------------------------------------
26 | |
27 | | Here you may specify the number of minutes that you wish the session
28 | | to be allowed to remain idle before it expires. If you want them
29 | | to immediately expire on the browser closing, set that option.
30 | |
31 | */
32 |
33 | 'lifetime' => env('SESSION_LIFETIME', 120),
34 |
35 | 'expire_on_close' => false,
36 |
37 | /*
38 | |--------------------------------------------------------------------------
39 | | Session Encryption
40 | |--------------------------------------------------------------------------
41 | |
42 | | This option allows you to easily specify that all of your session data
43 | | should be encrypted before it is stored. All encryption will be run
44 | | automatically by Laravel and you can use the Session like normal.
45 | |
46 | */
47 |
48 | 'encrypt' => false,
49 |
50 | /*
51 | |--------------------------------------------------------------------------
52 | | Session File Location
53 | |--------------------------------------------------------------------------
54 | |
55 | | When using the native session driver, we need a location where session
56 | | files may be stored. A default has been set for you but a different
57 | | location may be specified. This is only needed for file sessions.
58 | |
59 | */
60 |
61 | 'files' => storage_path('framework/sessions'),
62 |
63 | /*
64 | |--------------------------------------------------------------------------
65 | | Session Database Connection
66 | |--------------------------------------------------------------------------
67 | |
68 | | When using the "database" or "redis" session drivers, you may specify a
69 | | connection that should be used to manage these sessions. This should
70 | | correspond to a connection in your database configuration options.
71 | |
72 | */
73 |
74 | 'connection' => env('SESSION_CONNECTION', null),
75 |
76 | /*
77 | |--------------------------------------------------------------------------
78 | | Session Database Table
79 | |--------------------------------------------------------------------------
80 | |
81 | | When using the "database" session driver, you may specify the table we
82 | | should use to manage the sessions. Of course, a sensible default is
83 | | provided for you; however, you are free to change this as needed.
84 | |
85 | */
86 |
87 | 'table' => 'sessions',
88 |
89 | /*
90 | |--------------------------------------------------------------------------
91 | | Session Cache Store
92 | |--------------------------------------------------------------------------
93 | |
94 | | While using one of the framework's cache driven session backends you may
95 | | list a cache store that should be used for these sessions. This value
96 | | must match with one of the application's configured cache "stores".
97 | |
98 | | Affects: "apc", "dynamodb", "memcached", "redis"
99 | |
100 | */
101 |
102 | 'store' => env('SESSION_STORE', null),
103 |
104 | /*
105 | |--------------------------------------------------------------------------
106 | | Session Sweeping Lottery
107 | |--------------------------------------------------------------------------
108 | |
109 | | Some session drivers must manually sweep their storage location to get
110 | | rid of old sessions from storage. Here are the chances that it will
111 | | happen on a given request. By default, the odds are 2 out of 100.
112 | |
113 | */
114 |
115 | 'lottery' => [2, 100],
116 |
117 | /*
118 | |--------------------------------------------------------------------------
119 | | Session Cookie Name
120 | |--------------------------------------------------------------------------
121 | |
122 | | Here you may change the name of the cookie used to identify a session
123 | | instance by ID. The name specified here will get used every time a
124 | | new session cookie is created by the framework for every driver.
125 | |
126 | */
127 |
128 | 'cookie' => env(
129 | 'SESSION_COOKIE',
130 | Str::slug(env('APP_NAME', 'laravel'), '_').'_session'
131 | ),
132 |
133 | /*
134 | |--------------------------------------------------------------------------
135 | | Session Cookie Path
136 | |--------------------------------------------------------------------------
137 | |
138 | | The session cookie path determines the path for which the cookie will
139 | | be regarded as available. Typically, this will be the root path of
140 | | your application but you are free to change this when necessary.
141 | |
142 | */
143 |
144 | 'path' => '/',
145 |
146 | /*
147 | |--------------------------------------------------------------------------
148 | | Session Cookie Domain
149 | |--------------------------------------------------------------------------
150 | |
151 | | Here you may change the domain of the cookie used to identify a session
152 | | in your application. This will determine which domains the cookie is
153 | | available to in your application. A sensible default has been set.
154 | |
155 | */
156 |
157 | 'domain' => env('SESSION_DOMAIN', null),
158 |
159 | /*
160 | |--------------------------------------------------------------------------
161 | | HTTPS Only Cookies
162 | |--------------------------------------------------------------------------
163 | |
164 | | By setting this option to true, session cookies will only be sent back
165 | | to the server if the browser has a HTTPS connection. This will keep
166 | | the cookie from being sent to you if it can not be done securely.
167 | |
168 | */
169 |
170 | 'secure' => env('SESSION_SECURE_COOKIE'),
171 |
172 | /*
173 | |--------------------------------------------------------------------------
174 | | HTTP Access Only
175 | |--------------------------------------------------------------------------
176 | |
177 | | Setting this value to true will prevent JavaScript from accessing the
178 | | value of the cookie and the cookie will only be accessible through
179 | | the HTTP protocol. You are free to modify this option if needed.
180 | |
181 | */
182 |
183 | 'http_only' => true,
184 |
185 | /*
186 | |--------------------------------------------------------------------------
187 | | Same-Site Cookies
188 | |--------------------------------------------------------------------------
189 | |
190 | | This option determines how your cookies behave when cross-site requests
191 | | take place, and can be used to mitigate CSRF attacks. By default, we
192 | | do not enable this as other CSRF protection services are in place.
193 | |
194 | | Supported: "lax", "strict", "none", null
195 | |
196 | */
197 |
198 | 'same_site' => 'lax',
199 | ];
200 |
--------------------------------------------------------------------------------
/config/view.php:
--------------------------------------------------------------------------------
1 | [
16 | realpath(resource_path('views')),
17 | ],
18 |
19 | /*
20 | |--------------------------------------------------------------------------
21 | | Compiled View Path
22 | |--------------------------------------------------------------------------
23 | |
24 | | This option determines where all the compiled Blade templates will be
25 | | stored for your application. Typically, this is within the storage
26 | | directory. However, as usual, you are free to change this value.
27 | |
28 | */
29 |
30 | 'compiled' => env(
31 | 'VIEW_COMPILED_PATH',
32 | realpath(storage_path('framework/views'))
33 | ),
34 | ];
35 |
--------------------------------------------------------------------------------
/database/.gitignore:
--------------------------------------------------------------------------------
1 | *.sqlite
2 | *.sqlite-journal
3 |
--------------------------------------------------------------------------------
/database/factories/UserFactory.php:
--------------------------------------------------------------------------------
1 | define(User::class, function (Faker $faker) {
21 | return [
22 | 'fullname' => $faker->name,
23 | 'email' => $faker->unique()->safeEmail,
24 | 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
25 | 'email_verified_at' => now(),
26 | 'remember_token' => Str::random(10),
27 | 'status' => User::VERIFIED,
28 | ];
29 | });
30 |
31 | $factory->afterCreatingState(User::class, 'member', function (User $user, Faker $faker) {
32 | $user->roles()->sync([2]);
33 | });
34 |
35 | $factory->afterCreatingState(User::class, 'admin', function (User $user, Faker $faker) {
36 | $user->roles()->sync([1]);
37 | });
38 |
--------------------------------------------------------------------------------
/database/migrations/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/orchestral/platform/5cc7d1c0c24c7c4ba38548f12b5e936be00bebda/database/migrations/.gitkeep
--------------------------------------------------------------------------------
/database/migrations/2019_08_19_000000_create_failed_jobs_table.php:
--------------------------------------------------------------------------------
1 | bigIncrements('id');
18 | $table->text('connection');
19 | $table->text('queue');
20 | $table->longText('payload');
21 | $table->longText('exception');
22 | $table->timestamp('failed_at')->useCurrent();
23 | });
24 | }
25 |
26 | /**
27 | * Reverse the migrations.
28 | *
29 | * @return void
30 | */
31 | public function down()
32 | {
33 | Schema::dropIfExists('failed_jobs');
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/database/orchestra/installer.php:
--------------------------------------------------------------------------------
1 | seeders as $seeder) {
24 | $this->call($seeder);
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "private": true,
3 | "scripts": {
4 | "dev": "npm run development",
5 | "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
6 | "watch": "npm run development -- --watch",
7 | "watch-poll": "npm run watch -- --watch-poll",
8 | "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --disable-host-check --config=node_modules/laravel-mix/setup/webpack.config.js",
9 | "prod": "npm run production",
10 | "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
11 | },
12 | "devDependencies": {
13 | "axios": "^0.19",
14 | "cross-env": "^7.0",
15 | "laravel-mix": "^5.0.1",
16 | "lodash": "^4.17.19",
17 | "resolve-url-loader": "^3.1.0",
18 | "sass": "^1.15.2",
19 | "sass-loader": "^8.0.0"
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/phpunit.xml:
--------------------------------------------------------------------------------
1 |
2 |