├── .editorconfig
├── .env.example
├── .gitattributes
├── .gitignore
├── LICENSE.md
├── README.md
├── SECURITY.md
├── TRADEMARKS.md
├── app
├── Http
│ ├── Controllers
│ │ └── Controller.php
│ └── Middleware
│ │ └── TrustProxies.php
├── Models
│ └── User.php
└── Providers
│ └── AppServiceProvider.php
├── artisan
├── bootstrap
├── app.php
├── cache
│ └── .gitignore
└── providers.php
├── composer.json
├── composer.lock
├── config
├── app.php
├── auth.php
├── broadcasting.php
├── cache.php
├── cachet.php
├── concurrency.php
├── cors.php
├── database.php
├── filesystems.php
├── hashing.php
├── logging.php
├── mail.php
├── queue.php
├── sanctum.php
├── services.php
├── session.php
└── view.php
├── database
├── .gitignore
├── factories
│ └── UserFactory.php
├── migrations
│ ├── 2014_10_12_000000_create_users_table.php
│ ├── 2014_10_12_100000_create_password_reset_tokens_table.php
│ ├── 2019_08_19_000000_create_failed_jobs_table.php
│ ├── 2019_12_14_000001_create_personal_access_tokens_table.php
│ ├── 2025_01_18_114009_create_cache_table.php
│ └── 2025_01_18_114012_create_sessions_table.php
└── seeders
│ └── DatabaseSeeder.php
├── phpunit.xml
├── public
├── .htaccess
├── favicon.ico
├── index.php
└── robots.txt
├── resources
└── views
│ └── .gitkeep
├── routes
├── console.php
├── middleware.php
└── web.php
└── storage
├── app
├── .gitignore
└── public
│ └── .gitignore
├── framework
├── .gitignore
├── cache
│ ├── .gitignore
│ └── data
│ │ └── .gitignore
├── sessions
│ └── .gitignore
├── testing
│ └── .gitignore
└── views
│ └── .gitignore
├── logs
└── .gitignore
└── pail
└── .gitignore
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | end_of_line = lf
6 | indent_size = 4
7 | indent_style = space
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
11 | [*.md]
12 | trim_trailing_whitespace = false
13 |
14 | [*.{yml,yaml}]
15 | indent_size = 2
16 |
17 | [docker-compose.yml]
18 | indent_size = 4
19 |
--------------------------------------------------------------------------------
/.env.example:
--------------------------------------------------------------------------------
1 | APP_NAME=Cachet
2 | APP_ENV=local
3 | APP_KEY=
4 | APP_DEBUG=true
5 | APP_TIMEZONE=UTC
6 | APP_URL=http://cachet.test
7 |
8 | APP_LOCALE=en
9 | APP_FALLBACK_LOCALE=en
10 | APP_FAKER_LOCALE=en_US
11 |
12 | APP_MAINTENANCE_DRIVER=file
13 | # APP_MAINTENANCE_STORE=database
14 |
15 | BCRYPT_ROUNDS=12
16 |
17 | LOG_CHANNEL=stack
18 | LOG_STACK=single
19 | LOG_DEPRECATIONS_CHANNEL=null
20 | LOG_LEVEL=debug
21 |
22 | DB_CONNECTION=sqlite
23 | # DB_HOST=127.0.0.1
24 | # DB_PORT=3306
25 | # DB_DATABASE=laravel
26 | # DB_USERNAME=root
27 | # DB_PASSWORD=
28 |
29 | SESSION_DRIVER=database
30 | SESSION_LIFETIME=120
31 | SESSION_ENCRYPT=false
32 | SESSION_PATH=/
33 | SESSION_DOMAIN=null
34 |
35 | BROADCAST_CONNECTION=log
36 | FILESYSTEM_DISK=local
37 | QUEUE_CONNECTION=database
38 |
39 | CACHE_STORE=database
40 | CACHE_PREFIX=
41 |
42 | MEMCACHED_HOST=127.0.0.1
43 |
44 | REDIS_CLIENT=phpredis
45 | REDIS_HOST=127.0.0.1
46 | REDIS_PASSWORD=null
47 | REDIS_PORT=6379
48 |
49 | MAIL_MAILER=log
50 | MAIL_HOST=127.0.0.1
51 | MAIL_PORT=2525
52 | MAIL_USERNAME=null
53 | MAIL_PASSWORD=null
54 | MAIL_ENCRYPTION=null
55 | MAIL_FROM_ADDRESS="hello@example.com"
56 | MAIL_FROM_NAME="${APP_NAME}"
57 |
58 | AWS_ACCESS_KEY_ID=
59 | AWS_SECRET_ACCESS_KEY=
60 | AWS_DEFAULT_REGION=us-east-1
61 | AWS_BUCKET=
62 | AWS_USE_PATH_STYLE_ENDPOINT=false
63 |
64 | VITE_APP_NAME="${APP_NAME}"
65 |
66 | CACHET_BEACON=false
67 | CACHET_EMOJI=false
68 | CACHET_AUTO_TWITTER=true
69 | CACHET_PATH=/
70 | CACHET_TRUSTED_PROXIES=""
71 |
72 | NIGHTWATCH_ENABLED=false
73 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | * text=auto
2 | *.css linguist-vendored
3 | *.scss linguist-vendored
4 | /.github export-ignore
5 | /tests export-ignore
6 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | /.phpunit.cache
2 | /node_modules
3 | /public/build
4 | /public/hot
5 | /public/storage
6 | /public/css/filament
7 | /public/js/filament
8 | /public/vendor/cachethq/cachet
9 | /storage/*.key
10 | /vendor
11 | .env
12 | .env.backup
13 | .env.production
14 | .phpunit.result.cache
15 | Homestead.json
16 | Homestead.yaml
17 | auth.json
18 | npm-debug.log
19 | yarn-error.log
20 | /.fleet
21 | /.idea
22 | /.vscode
23 |
--------------------------------------------------------------------------------
/LICENSE.md:
--------------------------------------------------------------------------------
1 | # Cachet license
2 |
3 | This License from Alt Three Services Limited. (“Cachet”) governs your use of the accompanying Software. By using the Software, you accept the terms of this License. The Cachet software is copyrighted by Alt Three Services Limited.
4 |
5 | ## Permissions
6 |
7 | Subject to the following conditions, you are permitted to:
8 |
9 | - Use the Software in your commercial or non-commercial projects.
10 | - Modify the Software to suit your needs.
11 | - Bundle the Software with your own projects.
12 | - Submit modifications of the Software to Cachet.
13 |
14 | ## Conditions
15 |
16 | In exchange for these permissions, you agree:
17 |
18 | - Not to remove any copyright or other notices from the Software.
19 | - Not to make the Software available under a license that supersedes or negates the effect of this License.
20 | - Not to distribute the Software or modifications of the Software as a standalone product, but only as part of another application.
21 | - To include a verbatim copy of this License in any distribution of the Software.
22 | - To comply with Cachet's [trademark policy](https://github.com/cachethq/core/blob/main/TRADEMARKS.md).
23 |
24 | ### Termination
25 |
26 | Your license to use the Software will terminate automatically if you breach any terms of this License or initiate a copyright, trade secret, or patent claim against Cachet, any of its affiliates, or any user of the Software (including as modified by you).
27 |
28 | ### Disclaimer of Warranties
29 |
30 | The Software is provided "AS IS," without any warranties. This includes any implied warranties of merchantability, fitness for a particular purpose, or non-infringement. You must pass this disclaimer on whenever you distribute the Software or derivative works.
31 |
32 | ### Limitation of Liability
33 |
34 | Cachet is not liable for any damages related to the Software or this License, including direct, indirect, special, or incidental damages, to the fullest extent permitted by law. You must pass this limitation of liability on whenever you distribute the Software or derivative works.
35 |
36 | ### Governing Law
37 |
38 | This License is governed by the laws of Delaware, and the parties consent to exclusive jurisdiction in Delaware courts. The parties waive all defenses of lack of personal jurisdiction and forum non-conveniens.
39 |
40 | ### Entire Agreement / Assignment
41 |
42 | This License is the entire agreement between the parties, and supersedes any and all prior agreements, understandings or communications, written or oral, between the parties relating to the subject matter hereof. This License may be assigned by Cachet without your prior consent.
43 |
44 | ### Reservation of Rights
45 |
46 | Alt Three Services Limited reserves all rights not expressly granted to you in this License. Alt Three Services Limited owns all right, title, and interest in and to the Software.
47 |
48 | ## Alternative License
49 |
50 | For alternative licensing, please contact support@cachethq.io.
51 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | Cachet, the open-source self-hosted status page system.
9 |
10 | ## Cachet 3.x Announcement
11 |
12 | For more information on the Cachet rebuild and our plans for 3.x, you can read the announcement [here](https://github.com/CachetHQ/Cachet/discussions/4342).
13 |
14 | ## Requirements
15 |
16 | - PHP 8.2 or later
17 | - [Composer](https://getcomposer.org)
18 | - A supported database: MariaDB, MySQL, PostgreSQL or SQLite
19 |
20 | ## Installation, Upgrades and Documentation
21 |
22 | You can find documentation at [https://docs.cachethq.io](https://docs.cachethq.io).
23 |
24 | Here are some useful quick links:
25 |
26 | - [Installing Cachet](https://docs.cachethq.io/installation/)
27 | - [Getting started with Docker](https://docs.cachethq.io/installation/docker)
28 |
29 | ### Demo
30 |
31 | To test out the v3 demo, you can log in to the [Cachet dashboard](https://v3.cachethq.io/dashboard) with the following credentials:
32 |
33 | - **Email:** `test@test.com`
34 | - **Password:** `test123`
35 |
36 | > **Note**
37 | > The demo will automatically reset every 30 minutes.
38 | >
39 | ## Sponsors
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 | ## Security Vulnerabilities
50 |
51 | If you discover a security vulnerability within Cachet, please send an e-mail to [support@cachethq.io](mailto:support@cachethq.io?Cachet%20Security%20Vulnerability). All security vulnerabilities are reviewed on a case-by-case basis.
52 |
--------------------------------------------------------------------------------
/SECURITY.md:
--------------------------------------------------------------------------------
1 | # Security Policy
2 |
3 | **PLEASE DON'T DISCLOSE SECURITY-RELATED ISSUES PUBLICLY, [SEE BELOW](#reporting-a-vulnerability).**
4 |
5 | ## Supported Versions
6 |
7 | Use this section to tell people about which versions of your project are
8 | currently being supported with security updates.
9 |
10 | | Version | Supported |
11 | | ------- | ------------------ |
12 | | 2.4 | :white_check_mark: |
13 | | < 2.4 | :x: |
14 |
15 | ## Reporting a Vulnerability
16 |
17 | If you discover a security vulnerability within Cachet, please email James Brooks at james@cachethq.io. All security vulnerabilities will be promptly addressed.
18 |
--------------------------------------------------------------------------------
/TRADEMARKS.md:
--------------------------------------------------------------------------------
1 | # Cachet Trademark Guidelines
2 |
3 | This trademark policy was prepared to help you understand how to use the Cachet trademarks, service marks and logos.
4 |
5 | While the copyright to our open source software is licensed under the Cachet license, our trademarks appearing in or on the open source software are the exclusive property of Cachet Inc. This means that our open source license does not include a license to use our trademarks.
6 |
7 | Because we make some of our code available to download and modify, proper use of our trademarks is essential to inform people whether or not Cachet stands behind a product or service. When using Cachet trademarks, you must comply with these Cachet Trademark Guidelines.
8 |
9 | This policy is intended to explain how to use our trademarks in a way that is consistent with background law and community expectations. This policy covers:
10 |
11 | 1. Our word trademarks and service marks: Cachet
12 | 2. Our logos: The Cachet logos
13 |
14 | This policy encompasses all trademarks and service marks, whether they are registered or not.
15 |
16 | ## General guidelines
17 |
18 | Whenever you use one of our marks, you must always do so in a way that does not mislead anyone about what they are getting and from whom.
19 |
20 | Do not use the Cachet marks in any way that could mistakenly imply that Cachet has reviewed, approved or guaranteed your goods or services. You also cannot use our logo on your website in a way that suggests that your website is an official website or that we endorse your website. You can, though, say you like the Cachet software, that you use Cachet, that the analytics are powered by Cachet or that you participate in the Cachet community.
21 |
22 | Do not use the "Cachet" prefix in a way that could mistakenly imply that your product is related to Cachet. For example, an analytics product that uses Cachet should not use the name "cachetanalytics".
23 |
24 | You may not use or register our marks or variations of them as part of your trademark, business, product, service, app, domain name, social media account or business indicator. You may not use our marks as a part of an advertising campaign. You may not display Cachet trademarks more prominently than your product, service or company name. You may not use Cachet trademarks on merchandise for sale (e.g., selling t-shirts, mugs, etc).
25 |
26 | Trademark law does not allow your use of names or trademarks that are too similar to ours. You therefore may not use an obvious variation of any of our marks or any phonetic equivalent, foreign language equivalent, takeoff, or abbreviation for a similar or compatible product or service.
27 |
28 | ## Acceptable uses
29 |
30 | You can use the Cachet name to truthfully and accurately refer to or identify Cachet and its products and services in the following instances:
31 |
32 | - To refer to Cachet and its products and services in news articles and other content without alteration
33 | - To discuss Cachet and its products in a fair and honest manner that does not suggest sponsorship or endorsement by or affiliation with Cachet
34 | - To refer to and/or to link to the products and services hosted on Cachet’s servers and website
35 | - To indicate if your product, service or solution integrates, or is interoperable or compatible, with Cachet, for example, “we offer a simple integration with Cachet”, provided that doing so does not create a likelihood of confusion as to the origin of such product, service, or solution
36 | - You may use our word marks as part of a public subdomain solely for the purpose of serving as the URL for your self-managed Cachet instance, for example, cachethq.iopanyname.com
37 |
38 | ## Prohibited uses
39 |
40 | Unless you have express written permission from Cachet, or your use is permitted pursuant to the acceptable uses set forth above, the use of Cachet trademarks is strictly prohibited. Here is a short, non-exhaustive list of the kinds of uses that are not permitted without Cachet’s express written permission but that Cachet may consider granting you the right to do should you request permission:
41 |
42 | - Use of Cachet trademarks in connection with the provision of a public website that makes Cachet software available for installation and use on a server (rather than directing users to the official Cachet site)
43 | - Use of Cachet trademarks in connection with versions of Cachet products made publicly available or made available in the cloud on a managed service provider, resale or other commercial basis
44 | - Use of Cachet trademarks in connection with Cachet product bundled with other software
45 |
46 | In the above cases:
47 |
48 | - You must follow the terms of the open source license for Cachet software products and code
49 | - You must remove all of our logos from it and choose your branding, logos and trademarks that denote your unique identity to clearly signal to users that there is no affiliation with or endorsement by Cachet
50 | - You must not use any Cachet trademark in connection with the user-facing name, branding or marketing materials of your project
51 | - You may use word marks, but not our logos, in truthful statements that describe the relationship between your software and ours, for example, “this software is derived from the source code of the Cachet software”, as long as you also include a statement that your project is not officially associated with Cachet or its products
52 | - Cachet reserves the right in its sole discretion to (i) terminate, revoke, modify, or otherwise change permission to use the trademarks at any time and; (ii) object to any use or misuse of the trademarks in any jurisdiction worldwide. All changes to these guidelines are effective immediately when posted and your continued use of the trademarks following the posting of revised guidelines signifies your acceptance of such revision.
53 |
54 | ## To request the use of the trademarks
55 |
56 | Anyone wishing to use any of Cachet’s trademarks in a manner other than the acceptable uses listed above, including but not limited to marketing, promotion or advertising, or on software derivative of Cachet software, must obtain Cachet’s express, written permission in advance.
57 |
58 | To request the use of the trademarks in a manner or for a purpose not expressly permitted in these guidelines, including use for any purpose of the logos, please email [hello@cachethq.io](mailto:hello@cachethq.io) to discuss. If you need clarification on whether your use qualifies, please ask.
59 |
60 | ## To report misuse
61 |
62 | If you want to report misuse of a Cachet trademark, please email [hello@cachethq.io](mailto:hello@cachethq.io).
63 |
64 | Last updated: November 25 2024
65 |
66 | These guidelines are based on the Model Trademark Guidelines, available at http://www.modeltrademarkguidelines.org., used under a Creative Commons Attribution 3.0 Unported license: https://creativecommons.org/licenses/by/3.0/deed.en_US
67 |
--------------------------------------------------------------------------------
/app/Http/Controllers/Controller.php:
--------------------------------------------------------------------------------
1 |
30 | */
31 | protected $fillable = [
32 | 'name',
33 | 'email',
34 | 'password',
35 | ];
36 |
37 | /**
38 | * The attributes that should be hidden for serialization.
39 | *
40 | * @var array
41 | */
42 | protected $hidden = [
43 | 'password',
44 | 'remember_token',
45 | ];
46 |
47 | /**
48 | * Get the attributes that should be cast.
49 | *
50 | * @return array
51 | */
52 | protected function casts(): array
53 | {
54 | return [
55 | 'email_verified_at' => 'datetime',
56 | 'password' => 'hashed',
57 | ];
58 | }
59 |
60 | public function canAccessPanel(Panel $panel): bool
61 | {
62 | return true;
63 | }
64 |
65 | /**
66 | * Determine if the user is an admin.
67 | */
68 | public function isAdmin(): bool
69 | {
70 | return $this->is_admin;
71 | }
72 | }
73 |
--------------------------------------------------------------------------------
/app/Providers/AppServiceProvider.php:
--------------------------------------------------------------------------------
1 | bootRoute();
46 | }
47 |
48 | public function bootRoute(): void
49 | {
50 | RateLimiter::for('api', function (Request $request) {
51 | return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip());
52 | });
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/artisan:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env php
2 | handleCommand(new ArgvInput);
14 |
15 | exit($status);
16 |
--------------------------------------------------------------------------------
/bootstrap/app.php:
--------------------------------------------------------------------------------
1 | withProviders()
20 | ->withRouting(
21 | web: __DIR__.'/../routes/web.php',
22 | // api: __DIR__.'/../routes/api.php',
23 | commands: __DIR__.'/../routes/console.php',
24 | // channels: __DIR__.'/../routes/channels.php',
25 | health: '/up',
26 | )
27 | ->withMiddleware(function (Middleware $middleware) {
28 | $middleware->redirectGuestsTo(fn () => route('login'));
29 | $middleware->redirectUsersTo(AppServiceProvider::HOME);
30 | $middleware->append(TrustProxies::class);
31 |
32 | $middleware->throttleApi();
33 | })
34 | ->withExceptions(function (Exceptions $exceptions) {
35 | //
36 | })->create();
37 |
--------------------------------------------------------------------------------
/bootstrap/cache/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/bootstrap/providers.php:
--------------------------------------------------------------------------------
1 | env('APP_NAME', 'Cachet'),
26 |
27 | /*
28 | |--------------------------------------------------------------------------
29 | | Application Environment
30 | |--------------------------------------------------------------------------
31 | |
32 | | This value determines the "environment" your application is currently
33 | | running in. This may determine how you prefer to configure various
34 | | services the application utilizes. Set this in your ".env" file.
35 | |
36 | */
37 |
38 | 'env' => env('APP_ENV', 'production'),
39 |
40 | /*
41 | |--------------------------------------------------------------------------
42 | | Application Debug Mode
43 | |--------------------------------------------------------------------------
44 | |
45 | | When your application is in debug mode, detailed error messages with
46 | | stack traces will be shown on every error that occurs within your
47 | | application. If disabled, a simple generic error page is shown.
48 | |
49 | */
50 |
51 | 'debug' => (bool) env('APP_DEBUG', false),
52 |
53 | /*
54 | |--------------------------------------------------------------------------
55 | | Application URL
56 | |--------------------------------------------------------------------------
57 | |
58 | | This URL is used by the console to properly generate URLs when using
59 | | the Artisan command line tool. You should set this to the root of
60 | | the application so that it's available within Artisan commands.
61 | |
62 | */
63 |
64 | 'url' => env('APP_URL', 'http://localhost'),
65 |
66 | /*
67 | |--------------------------------------------------------------------------
68 | | Application Timezone
69 | |--------------------------------------------------------------------------
70 | |
71 | | Here you may specify the default timezone for your application, which
72 | | will be used by the PHP date and date-time functions. The timezone
73 | | is set to "UTC" by default as it is suitable for most use cases.
74 | |
75 | */
76 |
77 | 'timezone' => env('APP_TIMEZONE', 'UTC'),
78 |
79 | /*
80 | |--------------------------------------------------------------------------
81 | | Application Locale Configuration
82 | |--------------------------------------------------------------------------
83 | |
84 | | The application locale determines the default locale that will be used
85 | | by Laravel's translation / localization methods. This option can be
86 | | set to any locale for which you plan to have translation strings.
87 | |
88 | */
89 |
90 | 'locale' => env('APP_LOCALE', 'en'),
91 |
92 | 'fallback_locale' => env('APP_FALLBACK_LOCALE', 'en'),
93 |
94 | 'faker_locale' => env('APP_FAKER_LOCALE', 'en_US'),
95 |
96 | /*
97 | |--------------------------------------------------------------------------
98 | | Encryption Key
99 | |--------------------------------------------------------------------------
100 | |
101 | | This key is utilized by Laravel's encryption services and should be set
102 | | to a random, 32 character string to ensure that all encrypted values
103 | | are secure. You should do this prior to deploying the application.
104 | |
105 | */
106 |
107 | 'cipher' => 'AES-256-CBC',
108 |
109 | 'key' => env('APP_KEY'),
110 |
111 | 'previous_keys' => [
112 | ...array_filter(
113 | explode(',', env('APP_PREVIOUS_KEYS', ''))
114 | ),
115 | ],
116 |
117 | /*
118 | |--------------------------------------------------------------------------
119 | | Maintenance Mode Driver
120 | |--------------------------------------------------------------------------
121 | |
122 | | These configuration options determine the driver used to determine and
123 | | manage Laravel's "maintenance mode" status. The "cache" driver will
124 | | allow maintenance mode to be controlled across multiple machines.
125 | |
126 | | Supported drivers: "file", "cache"
127 | |
128 | */
129 |
130 | 'maintenance' => [
131 | 'driver' => env('APP_MAINTENANCE_DRIVER', 'file'),
132 | 'store' => env('APP_MAINTENANCE_STORE', 'database'),
133 | ],
134 |
135 | ];
136 |
--------------------------------------------------------------------------------
/config/auth.php:
--------------------------------------------------------------------------------
1 | [
26 | 'guard' => env('AUTH_GUARD', 'web'),
27 | 'passwords' => env('AUTH_PASSWORD_BROKER', 'users'),
28 | ],
29 |
30 | /*
31 | |--------------------------------------------------------------------------
32 | | Authentication Guards
33 | |--------------------------------------------------------------------------
34 | |
35 | | Next, you may define every authentication guard for your application.
36 | | Of course, a great default configuration has been defined for you
37 | | which utilizes session storage plus the Eloquent user provider.
38 | |
39 | | All authentication guards have a user provider, which defines how the
40 | | users are actually retrieved out of your database or other storage
41 | | system used by the application. Typically, Eloquent is utilized.
42 | |
43 | | Supported: "session"
44 | |
45 | */
46 |
47 | 'guards' => [
48 | 'web' => [
49 | 'driver' => 'session',
50 | 'provider' => 'users',
51 | ],
52 | ],
53 |
54 | /*
55 | |--------------------------------------------------------------------------
56 | | User Providers
57 | |--------------------------------------------------------------------------
58 | |
59 | | All authentication guards have a user provider, which defines how the
60 | | users are actually retrieved out of your database or other storage
61 | | system used by the application. Typically, Eloquent is utilized.
62 | |
63 | | If you have multiple user tables or models you may configure multiple
64 | | providers to represent the model / table. These providers 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' => 'eloquent',
74 | 'model' => env('AUTH_MODEL', App\Models\User::class),
75 | ],
76 |
77 | // 'users' => [
78 | // 'driver' => 'database',
79 | // 'table' => 'users',
80 | // ],
81 | ],
82 |
83 | /*
84 | |--------------------------------------------------------------------------
85 | | Resetting Passwords
86 | |--------------------------------------------------------------------------
87 | |
88 | | These configuration options specify the behavior of Laravel's password
89 | | reset functionality, including the table utilized for token storage
90 | | and the user provider that is invoked to actually retrieve users.
91 | |
92 | | The expiry time is the number of minutes that each reset token will 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 | | The throttle setting is the number of seconds a user must wait before
97 | | generating more password reset tokens. This prevents the user from
98 | | quickly generating a very large amount of password reset tokens.
99 | |
100 | */
101 |
102 | 'passwords' => [
103 | 'users' => [
104 | 'provider' => 'users',
105 | 'table' => env('AUTH_PASSWORD_RESET_TOKEN_TABLE', 'password_reset_tokens'),
106 | 'expire' => 60,
107 | 'throttle' => 60,
108 | ],
109 | ],
110 |
111 | /*
112 | |--------------------------------------------------------------------------
113 | | Password Confirmation Timeout
114 | |--------------------------------------------------------------------------
115 | |
116 | | Here you may define the amount of seconds before a password confirmation
117 | | window expires and users are asked to re-enter their password via the
118 | | confirmation screen. By default, the timeout lasts for three hours.
119 | |
120 | */
121 |
122 | 'password_timeout' => env('AUTH_PASSWORD_TIMEOUT', 10800),
123 |
124 | ];
125 |
--------------------------------------------------------------------------------
/config/broadcasting.php:
--------------------------------------------------------------------------------
1 | env('BROADCAST_CONNECTION', 'null'),
28 |
29 | /*
30 | |--------------------------------------------------------------------------
31 | | Broadcast Connections
32 | |--------------------------------------------------------------------------
33 | |
34 | | Here you may define all of the broadcast connections that will be used
35 | | to broadcast events to other systems or over WebSockets. Samples of
36 | | each available type of connection are provided inside this array.
37 | |
38 | */
39 |
40 | 'connections' => [
41 |
42 | 'reverb' => [
43 | 'driver' => 'reverb',
44 | 'key' => env('REVERB_APP_KEY'),
45 | 'secret' => env('REVERB_APP_SECRET'),
46 | 'app_id' => env('REVERB_APP_ID'),
47 | 'options' => [
48 | 'host' => env('REVERB_HOST'),
49 | 'port' => env('REVERB_PORT', 443),
50 | 'scheme' => env('REVERB_SCHEME', 'https'),
51 | 'useTLS' => env('REVERB_SCHEME', 'https') === 'https',
52 | ],
53 | 'client_options' => [
54 | // Guzzle client options: https://docs.guzzlephp.org/en/stable/request-options.html
55 | ],
56 | ],
57 |
58 | 'pusher' => [
59 | 'driver' => 'pusher',
60 | 'key' => env('PUSHER_APP_KEY'),
61 | 'secret' => env('PUSHER_APP_SECRET'),
62 | 'app_id' => env('PUSHER_APP_ID'),
63 | 'options' => [
64 | 'cluster' => env('PUSHER_APP_CLUSTER'),
65 | 'host' => env('PUSHER_HOST') ?: 'api-'.env('PUSHER_APP_CLUSTER', 'mt1').'.pusher.com',
66 | 'port' => env('PUSHER_PORT', 443),
67 | 'scheme' => env('PUSHER_SCHEME', 'https'),
68 | 'encrypted' => true,
69 | 'useTLS' => env('PUSHER_SCHEME', 'https') === 'https',
70 | ],
71 | 'client_options' => [
72 | // Guzzle client options: https://docs.guzzlephp.org/en/stable/request-options.html
73 | ],
74 | ],
75 |
76 | 'ably' => [
77 | 'driver' => 'ably',
78 | 'key' => env('ABLY_KEY'),
79 | ],
80 |
81 | 'log' => [
82 | 'driver' => 'log',
83 | ],
84 |
85 | 'null' => [
86 | 'driver' => 'null',
87 | ],
88 |
89 | ],
90 |
91 | ];
92 |
--------------------------------------------------------------------------------
/config/cache.php:
--------------------------------------------------------------------------------
1 | env('CACHE_STORE', 'database'),
28 |
29 | /*
30 | |--------------------------------------------------------------------------
31 | | Cache Stores
32 | |--------------------------------------------------------------------------
33 | |
34 | | Here you may define all of the cache "stores" for your application as
35 | | well as their drivers. You may even define multiple stores for the
36 | | same cache driver to group types of items stored in your caches.
37 | |
38 | | Supported drivers: "array", "database", "file", "memcached",
39 | | "redis", "dynamodb", "octane", "null"
40 | |
41 | */
42 |
43 | 'stores' => [
44 |
45 | 'array' => [
46 | 'driver' => 'array',
47 | 'serialize' => false,
48 | ],
49 |
50 | 'database' => [
51 | 'driver' => 'database',
52 | 'connection' => env('DB_CACHE_CONNECTION'),
53 | 'table' => env('DB_CACHE_TABLE', 'cache'),
54 | 'lock_connection' => env('DB_CACHE_LOCK_CONNECTION'),
55 | 'lock_table' => env('DB_CACHE_LOCK_TABLE'),
56 | ],
57 |
58 | 'file' => [
59 | 'driver' => 'file',
60 | 'path' => storage_path('framework/cache/data'),
61 | 'lock_path' => storage_path('framework/cache/data'),
62 | ],
63 |
64 | 'memcached' => [
65 | 'driver' => 'memcached',
66 | 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
67 | 'sasl' => [
68 | env('MEMCACHED_USERNAME'),
69 | env('MEMCACHED_PASSWORD'),
70 | ],
71 | 'options' => [
72 | // Memcached::OPT_CONNECT_TIMEOUT => 2000,
73 | ],
74 | 'servers' => [
75 | [
76 | 'host' => env('MEMCACHED_HOST', '127.0.0.1'),
77 | 'port' => env('MEMCACHED_PORT', 11211),
78 | 'weight' => 100,
79 | ],
80 | ],
81 | ],
82 |
83 | 'redis' => [
84 | 'driver' => 'redis',
85 | 'connection' => env('REDIS_CACHE_CONNECTION', 'cache'),
86 | 'lock_connection' => env('REDIS_CACHE_LOCK_CONNECTION', 'default'),
87 | ],
88 |
89 | 'dynamodb' => [
90 | 'driver' => 'dynamodb',
91 | 'key' => env('AWS_ACCESS_KEY_ID'),
92 | 'secret' => env('AWS_SECRET_ACCESS_KEY'),
93 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
94 | 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'),
95 | 'endpoint' => env('DYNAMODB_ENDPOINT'),
96 | ],
97 |
98 | 'octane' => [
99 | 'driver' => 'octane',
100 | ],
101 |
102 | ],
103 |
104 | /*
105 | |--------------------------------------------------------------------------
106 | | Cache Key Prefix
107 | |--------------------------------------------------------------------------
108 | |
109 | | When utilizing the APC, database, memcached, Redis, and DynamoDB cache
110 | | stores, there might be other applications using the same cache. For
111 | | that reason, you may prefix every cache key to avoid collisions.
112 | |
113 | */
114 |
115 | 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache_'),
116 |
117 | ];
118 |
--------------------------------------------------------------------------------
/config/cachet.php:
--------------------------------------------------------------------------------
1 | env('CACHET_ENABLED', true),
25 |
26 | /*
27 | |--------------------------------------------------------------------------
28 | | Cachet Path
29 | |--------------------------------------------------------------------------
30 | |
31 | | This is the URI path where Cachet will be accessible from.
32 | */
33 | 'path' => env('CACHET_PATH', '/'),
34 |
35 | 'guard' => env('CACHET_GUARD', null),
36 |
37 | /*
38 | |--------------------------------------------------------------------------
39 | | The User Model.
40 | |--------------------------------------------------------------------------
41 | |
42 | | This is the model that will be used to authenticate users. This model
43 | | must be an instance of Illuminate\Foundation\Auth\User.
44 | */
45 | 'user_model' => env('CACHET_USER_MODEL', \App\Models\User::class),
46 |
47 | 'user_migrations' => env('CACHET_USER_MIGRATIONS', true),
48 |
49 | /*
50 | |--------------------------------------------------------------------------
51 | | Cachet Domain
52 | |--------------------------------------------------------------------------
53 | |
54 | | This is the domain where Cachet will be accessible from.
55 | |
56 | */
57 | 'domain' => env('CACHET_DOMAIN'),
58 |
59 | /*
60 | |--------------------------------------------------------------------------
61 | | Cachet Title
62 | |--------------------------------------------------------------------------
63 | |
64 | | This is the title of the status page. By default, this will be the name
65 | | of your application.
66 | |
67 | */
68 | 'title' => env('CACHET_TITLE', env('APP_NAME').' - Status'),
69 |
70 | /*
71 | |--------------------------------------------------------------------------
72 | | Cachet Middleware
73 | |--------------------------------------------------------------------------
74 | |
75 | | This is the middleware that will be applied to the status page. By
76 | | default, the "web" middleware group will be applied, which means
77 | | that the status page will be accessible by anyone.
78 | |
79 | */
80 | 'middleware' => [
81 | 'web',
82 | ],
83 |
84 | 'api_middleware' => [
85 | 'api',
86 | ],
87 |
88 | 'trusted_proxies' => env('CACHET_TRUSTED_PROXIES', ''),
89 |
90 | /*
91 | |--------------------------------------------------------------------------
92 | | Cachet API Rate Limit (attempts per minute)
93 | |--------------------------------------------------------------------------
94 | |
95 | | This is the rate limit for the Cachet API. By default, the API is rate
96 | | limited to 300 requests a minute (or 5 requests a second). You can
97 | | adjust the limit as needed by your application.
98 | |
99 | */
100 | 'api_rate_limit' => env('CACHET_API_RATE_LIMIT', 300),
101 |
102 | /*
103 | |--------------------------------------------------------------------------
104 | | Cachet Beacon
105 | |--------------------------------------------------------------------------
106 | |
107 | | Enable Cachet's telemetry. Cachet will only ever send anonymous data
108 | | to the cachethq.io domain. This enables us to understand how Cachet
109 | | is used.
110 | |
111 | */
112 | 'beacon' => env('CACHET_BEACON', true),
113 |
114 | /*
115 | |--------------------------------------------------------------------------
116 | | Cachet Docker
117 | |--------------------------------------------------------------------------
118 | |
119 | | Determines whether Cachet is running from within a Docker instance.
120 | |
121 | */
122 | 'docker' => env('CACHET_DOCKER', false),
123 |
124 | /*
125 | |--------------------------------------------------------------------------
126 | | Cachet Webhooks
127 | |--------------------------------------------------------------------------
128 | |
129 | | Configure how Cachet sends webhooks for events.
130 | |
131 | */
132 | 'webhooks' => [
133 | 'queue_connection' => env('CACHET_WEBHOOK_QUEUE_CONNECTION', 'default'),
134 | 'queue_name' => env('CACHET_WEBHOOK_QUEUE_NAME', 'webhooks'),
135 |
136 | 'logs' => [
137 | 'prune_logs_after_days' => 30,
138 | ],
139 | ],
140 |
141 | /*
142 | |--------------------------------------------------------------------------
143 | | Cachet Supported Locales
144 | |--------------------------------------------------------------------------
145 | |
146 | | Configure which locales are supported by Cachet.
147 | |
148 | */
149 | 'supported_locales' => [
150 | 'de' => 'Deutsch (DE)',
151 | 'de_AT' => 'Deutsch (AT)',
152 | 'de_CH' => 'Deutsch (CH)',
153 | 'en' => 'English',
154 | 'en_GB' => 'English (UK)',
155 | 'es_ES' => 'Spanish (ES)',
156 | 'ko' => '한국어',
157 | 'nl' => 'Nederlands',
158 | 'ph' => 'Filipino',
159 | 'pt_BR' => 'Português (BR)',
160 | 'zh_CN' => '简体中文',
161 | 'zh_TW' => '繁體中文',
162 | ],
163 |
164 | /*
165 | |--------------------------------------------------------------------------
166 | | Cachet Demo Mode
167 | |--------------------------------------------------------------------------
168 | |
169 | | Whether to run Cachet in demo mode. This will adjust some of the default
170 | | settings to allow Cachet to run in a demo environment.
171 | |
172 | */
173 | 'demo_mode' => env('CACHET_DEMO_MODE', false),
174 |
175 | /*
176 | |--------------------------------------------------------------------------
177 | | Cachet Blog Feed
178 | |--------------------------------------------------------------------------
179 | |
180 | | This is the URI to the Cachet blog feed. This is used to display
181 | | the latest blog posts on the status page. By default, this is
182 | | set to the public Cachet blog feed.
183 | |
184 | */
185 | 'feed' => [
186 | 'uri' => env('CACHET_FEED_URI', 'https://blog.cachethq.io/rss'),
187 | 'cache' => env('CACHET_FEED_CACHE', 3600),
188 | ],
189 |
190 | ];
191 |
--------------------------------------------------------------------------------
/config/concurrency.php:
--------------------------------------------------------------------------------
1 | env('CONCURRENCY_DRIVER', 'process'),
28 |
29 | ];
30 |
--------------------------------------------------------------------------------
/config/cors.php:
--------------------------------------------------------------------------------
1 | ['api/*', 'sanctum/csrf-cookie'],
28 |
29 | 'allowed_methods' => ['*'],
30 |
31 | 'allowed_origins' => ['*'],
32 |
33 | 'allowed_origins_patterns' => [],
34 |
35 | 'allowed_headers' => ['*'],
36 |
37 | 'exposed_headers' => [],
38 |
39 | 'max_age' => 0,
40 |
41 | 'supports_credentials' => false,
42 |
43 | ];
44 |
--------------------------------------------------------------------------------
/config/database.php:
--------------------------------------------------------------------------------
1 | env('DB_CONNECTION', 'sqlite'),
29 |
30 | /*
31 | |--------------------------------------------------------------------------
32 | | Database Connections
33 | |--------------------------------------------------------------------------
34 | |
35 | | Below are all of the database connections defined for your application.
36 | | An example configuration is provided for each database system which
37 | | is supported by Laravel. You're free to add / remove connections.
38 | |
39 | */
40 |
41 | 'connections' => [
42 |
43 | 'sqlite' => [
44 | 'driver' => 'sqlite',
45 | 'url' => env('DB_URL'),
46 | 'database' => env('DB_DATABASE', database_path('database.sqlite')),
47 | 'prefix' => '',
48 | 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
49 | 'busy_timeout' => null,
50 | 'journal_mode' => null,
51 | 'synchronous' => null,
52 | ],
53 |
54 | 'mysql' => [
55 | 'driver' => 'mysql',
56 | 'url' => env('DB_URL'),
57 | 'host' => env('DB_HOST', '127.0.0.1'),
58 | 'port' => env('DB_PORT', '3306'),
59 | 'database' => env('DB_DATABASE', 'laravel'),
60 | 'username' => env('DB_USERNAME', 'root'),
61 | 'password' => env('DB_PASSWORD', ''),
62 | 'unix_socket' => env('DB_SOCKET', ''),
63 | 'charset' => env('DB_CHARSET', 'utf8mb4'),
64 | 'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'),
65 | 'prefix' => '',
66 | 'prefix_indexes' => true,
67 | 'strict' => true,
68 | 'engine' => null,
69 | 'options' => extension_loaded('pdo_mysql') ? array_filter([
70 | PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
71 | ]) : [],
72 | ],
73 |
74 | 'mariadb' => [
75 | 'driver' => 'mariadb',
76 | 'url' => env('DB_URL'),
77 | 'host' => env('DB_HOST', '127.0.0.1'),
78 | 'port' => env('DB_PORT', '3306'),
79 | 'database' => env('DB_DATABASE', 'laravel'),
80 | 'username' => env('DB_USERNAME', 'root'),
81 | 'password' => env('DB_PASSWORD', ''),
82 | 'unix_socket' => env('DB_SOCKET', ''),
83 | 'charset' => env('DB_CHARSET', 'utf8mb4'),
84 | 'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'),
85 | 'prefix' => '',
86 | 'prefix_indexes' => true,
87 | 'strict' => true,
88 | 'engine' => null,
89 | 'options' => extension_loaded('pdo_mysql') ? array_filter([
90 | PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
91 | ]) : [],
92 | ],
93 |
94 | 'pgsql' => [
95 | 'driver' => 'pgsql',
96 | 'url' => env('DB_URL'),
97 | 'host' => env('DB_HOST', '127.0.0.1'),
98 | 'port' => env('DB_PORT', '5432'),
99 | 'database' => env('DB_DATABASE', 'laravel'),
100 | 'username' => env('DB_USERNAME', 'root'),
101 | 'password' => env('DB_PASSWORD', ''),
102 | 'charset' => env('DB_CHARSET', 'utf8'),
103 | 'prefix' => '',
104 | 'prefix_indexes' => true,
105 | 'search_path' => 'public',
106 | 'sslmode' => 'prefer',
107 | ],
108 |
109 | 'sqlsrv' => [
110 | 'driver' => 'sqlsrv',
111 | 'url' => env('DB_URL'),
112 | 'host' => env('DB_HOST', 'localhost'),
113 | 'port' => env('DB_PORT', '1433'),
114 | 'database' => env('DB_DATABASE', 'laravel'),
115 | 'username' => env('DB_USERNAME', 'root'),
116 | 'password' => env('DB_PASSWORD', ''),
117 | 'charset' => env('DB_CHARSET', 'utf8'),
118 | 'prefix' => '',
119 | 'prefix_indexes' => true,
120 | // 'encrypt' => env('DB_ENCRYPT', 'yes'),
121 | // 'trust_server_certificate' => env('DB_TRUST_SERVER_CERTIFICATE', 'false'),
122 | ],
123 |
124 | ],
125 |
126 | /*
127 | |--------------------------------------------------------------------------
128 | | Migration Repository Table
129 | |--------------------------------------------------------------------------
130 | |
131 | | This table keeps track of all the migrations that have already run for
132 | | your application. Using this information, we can determine which of
133 | | the migrations on disk haven't actually been run on the database.
134 | |
135 | */
136 |
137 | 'migrations' => [
138 | 'table' => 'migrations',
139 | 'update_date_on_publish' => true,
140 | ],
141 |
142 | /*
143 | |--------------------------------------------------------------------------
144 | | Redis Databases
145 | |--------------------------------------------------------------------------
146 | |
147 | | Redis is an open source, fast, and advanced key-value store that also
148 | | provides a richer body of commands than a typical key-value system
149 | | such as Memcached. You may define your connection settings here.
150 | |
151 | */
152 |
153 | 'redis' => [
154 |
155 | 'client' => env('REDIS_CLIENT', 'phpredis'),
156 |
157 | 'options' => [
158 | 'cluster' => env('REDIS_CLUSTER', 'redis'),
159 | 'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'),
160 | ],
161 |
162 | 'default' => [
163 | 'url' => env('REDIS_URL'),
164 | 'host' => env('REDIS_HOST', '127.0.0.1'),
165 | 'username' => env('REDIS_USERNAME'),
166 | 'password' => env('REDIS_PASSWORD'),
167 | 'port' => env('REDIS_PORT', '6379'),
168 | 'database' => env('REDIS_DB', '0'),
169 | ],
170 |
171 | 'cache' => [
172 | 'url' => env('REDIS_URL'),
173 | 'host' => env('REDIS_HOST', '127.0.0.1'),
174 | 'username' => env('REDIS_USERNAME'),
175 | 'password' => env('REDIS_PASSWORD'),
176 | 'port' => env('REDIS_PORT', '6379'),
177 | 'database' => env('REDIS_CACHE_DB', '1'),
178 | ],
179 |
180 | ],
181 |
182 | ];
183 |
--------------------------------------------------------------------------------
/config/filesystems.php:
--------------------------------------------------------------------------------
1 | env('FILESYSTEM_DISK', 'local'),
26 |
27 | /*
28 | |--------------------------------------------------------------------------
29 | | Filesystem Disks
30 | |--------------------------------------------------------------------------
31 | |
32 | | Below you may configure as many filesystem disks as necessary, and you
33 | | may even configure multiple disks for the same driver. Examples for
34 | | most supported storage drivers are configured here for reference.
35 | |
36 | | Supported drivers: "local", "ftp", "sftp", "s3"
37 | |
38 | */
39 |
40 | 'disks' => [
41 |
42 | 'local' => [
43 | 'driver' => 'local',
44 | 'root' => storage_path('app'),
45 | 'throw' => false,
46 | ],
47 |
48 | 'public' => [
49 | 'driver' => 'local',
50 | 'root' => storage_path('app/public'),
51 | 'url' => env('APP_URL').'/storage',
52 | 'visibility' => 'public',
53 | 'throw' => false,
54 | ],
55 |
56 | 's3' => [
57 | 'driver' => 's3',
58 | 'key' => env('AWS_ACCESS_KEY_ID'),
59 | 'secret' => env('AWS_SECRET_ACCESS_KEY'),
60 | 'region' => env('AWS_DEFAULT_REGION'),
61 | 'bucket' => env('AWS_BUCKET'),
62 | 'url' => env('AWS_URL'),
63 | 'endpoint' => env('AWS_ENDPOINT'),
64 | 'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),
65 | 'throw' => false,
66 | ],
67 |
68 | ],
69 |
70 | /*
71 | |--------------------------------------------------------------------------
72 | | Symbolic Links
73 | |--------------------------------------------------------------------------
74 | |
75 | | Here you may configure the symbolic links that will be created when the
76 | | `storage:link` Artisan command is executed. The array keys should be
77 | | the locations of the links and the values should be their targets.
78 | |
79 | */
80 |
81 | 'links' => [
82 | public_path('storage') => storage_path('app/public'),
83 | ],
84 |
85 | ];
86 |
--------------------------------------------------------------------------------
/config/hashing.php:
--------------------------------------------------------------------------------
1 | env('HASH_DRIVER', 'bcrypt'),
28 |
29 | /*
30 | |--------------------------------------------------------------------------
31 | | Bcrypt Options
32 | |--------------------------------------------------------------------------
33 | |
34 | | Here you may specify the configuration options that should be used when
35 | | passwords are hashed using the Bcrypt algorithm. This will allow you
36 | | to control the amount of time it takes to hash the given password.
37 | |
38 | */
39 |
40 | 'bcrypt' => [
41 | 'rounds' => env('BCRYPT_ROUNDS', 12),
42 | 'verify' => env('HASH_VERIFY', true),
43 | ],
44 |
45 | /*
46 | |--------------------------------------------------------------------------
47 | | Argon Options
48 | |--------------------------------------------------------------------------
49 | |
50 | | Here you may specify the configuration options that should be used when
51 | | passwords are hashed using the Argon algorithm. These will allow you
52 | | to control the amount of time it takes to hash the given password.
53 | |
54 | */
55 |
56 | 'argon' => [
57 | 'memory' => env('ARGON_MEMORY', 65536),
58 | 'threads' => env('ARGON_THREADS', 1),
59 | 'time' => env('ARGON_TIME', 4),
60 | 'verify' => env('HASH_VERIFY', true),
61 | ],
62 |
63 | /*
64 | |--------------------------------------------------------------------------
65 | | Rehash On Login
66 | |--------------------------------------------------------------------------
67 | |
68 | | Setting this option to true will tell Laravel to automatically rehash
69 | | the user's password during login if the configured work factor for
70 | | the algorithm has changed, allowing graceful upgrades of hashes.
71 | |
72 | */
73 |
74 | 'rehash_on_login' => true,
75 |
76 | ];
77 |
--------------------------------------------------------------------------------
/config/logging.php:
--------------------------------------------------------------------------------
1 | env('LOG_CHANNEL', 'stack'),
31 |
32 | /*
33 | |--------------------------------------------------------------------------
34 | | Deprecations Log Channel
35 | |--------------------------------------------------------------------------
36 | |
37 | | This option controls the log channel that should be used to log warnings
38 | | regarding deprecated PHP and library features. This allows you to get
39 | | your application ready for upcoming major versions of dependencies.
40 | |
41 | */
42 |
43 | 'deprecations' => [
44 | 'channel' => env('LOG_DEPRECATIONS_CHANNEL', 'null'),
45 | 'trace' => env('LOG_DEPRECATIONS_TRACE', false),
46 | ],
47 |
48 | /*
49 | |--------------------------------------------------------------------------
50 | | Log Channels
51 | |--------------------------------------------------------------------------
52 | |
53 | | Here you may configure the log channels for your application. Laravel
54 | | utilizes the Monolog PHP logging library, which includes a variety
55 | | of powerful log handlers and formatters that you're free to use.
56 | |
57 | | Available drivers: "single", "daily", "slack", "syslog",
58 | | "errorlog", "monolog", "custom", "stack"
59 | |
60 | */
61 |
62 | 'channels' => [
63 |
64 | 'stack' => [
65 | 'driver' => 'stack',
66 | 'channels' => explode(',', env('LOG_STACK', 'single')),
67 | 'ignore_exceptions' => false,
68 | ],
69 |
70 | 'single' => [
71 | 'driver' => 'single',
72 | 'path' => storage_path('logs/laravel.log'),
73 | 'level' => env('LOG_LEVEL', 'debug'),
74 | 'replace_placeholders' => true,
75 | ],
76 |
77 | 'daily' => [
78 | 'driver' => 'daily',
79 | 'path' => storage_path('logs/laravel.log'),
80 | 'level' => env('LOG_LEVEL', 'debug'),
81 | 'days' => env('LOG_DAILY_DAYS', 14),
82 | 'replace_placeholders' => true,
83 | ],
84 |
85 | 'slack' => [
86 | 'driver' => 'slack',
87 | 'url' => env('LOG_SLACK_WEBHOOK_URL'),
88 | 'username' => env('LOG_SLACK_USERNAME', 'Laravel Log'),
89 | 'emoji' => env('LOG_SLACK_EMOJI', ':boom:'),
90 | 'level' => env('LOG_LEVEL', 'critical'),
91 | 'replace_placeholders' => true,
92 | ],
93 |
94 | 'papertrail' => [
95 | 'driver' => 'monolog',
96 | 'level' => env('LOG_LEVEL', 'debug'),
97 | 'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class),
98 | 'handler_with' => [
99 | 'host' => env('PAPERTRAIL_URL'),
100 | 'port' => env('PAPERTRAIL_PORT'),
101 | 'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'),
102 | ],
103 | 'processors' => [PsrLogMessageProcessor::class],
104 | ],
105 |
106 | 'stderr' => [
107 | 'driver' => 'monolog',
108 | 'level' => env('LOG_LEVEL', 'debug'),
109 | 'handler' => StreamHandler::class,
110 | 'formatter' => env('LOG_STDERR_FORMATTER'),
111 | 'with' => [
112 | 'stream' => 'php://stderr',
113 | ],
114 | 'processors' => [PsrLogMessageProcessor::class],
115 | ],
116 |
117 | 'syslog' => [
118 | 'driver' => 'syslog',
119 | 'level' => env('LOG_LEVEL', 'debug'),
120 | 'facility' => env('LOG_SYSLOG_FACILITY', LOG_USER),
121 | 'replace_placeholders' => true,
122 | ],
123 |
124 | 'errorlog' => [
125 | 'driver' => 'errorlog',
126 | 'level' => env('LOG_LEVEL', 'debug'),
127 | 'replace_placeholders' => true,
128 | ],
129 |
130 | 'null' => [
131 | 'driver' => 'monolog',
132 | 'handler' => NullHandler::class,
133 | ],
134 |
135 | 'emergency' => [
136 | 'path' => storage_path('logs/laravel.log'),
137 | ],
138 |
139 | ],
140 |
141 | ];
142 |
--------------------------------------------------------------------------------
/config/mail.php:
--------------------------------------------------------------------------------
1 | env('MAIL_MAILER', 'log'),
27 |
28 | /*
29 | |--------------------------------------------------------------------------
30 | | Mailer Configurations
31 | |--------------------------------------------------------------------------
32 | |
33 | | Here you may configure all of the mailers used by your application plus
34 | | their respective settings. Several examples have been configured for
35 | | you and you are free to add your own as your application requires.
36 | |
37 | | Laravel supports a variety of mail "transport" drivers that can be used
38 | | when delivering an email. You may specify which one you're using for
39 | | your mailers below. You may also add additional mailers if needed.
40 | |
41 | | Supported: "smtp", "sendmail", "mailgun", "ses", "ses-v2",
42 | | "postmark", "resend", "log", "array",
43 | | "failover", "roundrobin"
44 | |
45 | */
46 |
47 | 'mailers' => [
48 |
49 | 'smtp' => [
50 | 'transport' => 'smtp',
51 | 'url' => env('MAIL_URL'),
52 | 'host' => env('MAIL_HOST', '127.0.0.1'),
53 | 'port' => env('MAIL_PORT', 2525),
54 | 'encryption' => env('MAIL_ENCRYPTION', 'tls'),
55 | 'username' => env('MAIL_USERNAME'),
56 | 'password' => env('MAIL_PASSWORD'),
57 | 'timeout' => null,
58 | 'local_domain' => env('MAIL_EHLO_DOMAIN', parse_url(env('APP_URL', 'http://localhost'), PHP_URL_HOST)),
59 | ],
60 |
61 | 'ses' => [
62 | 'transport' => 'ses',
63 | ],
64 |
65 | 'postmark' => [
66 | 'transport' => 'postmark',
67 | // 'message_stream_id' => env('POSTMARK_MESSAGE_STREAM_ID'),
68 | // 'client' => [
69 | // 'timeout' => 5,
70 | // ],
71 | ],
72 |
73 | 'resend' => [
74 | 'transport' => 'resend',
75 | ],
76 |
77 | 'sendmail' => [
78 | 'transport' => 'sendmail',
79 | 'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'),
80 | ],
81 |
82 | 'log' => [
83 | 'transport' => 'log',
84 | 'channel' => env('MAIL_LOG_CHANNEL'),
85 | ],
86 |
87 | 'array' => [
88 | 'transport' => 'array',
89 | ],
90 |
91 | 'failover' => [
92 | 'transport' => 'failover',
93 | 'mailers' => [
94 | 'smtp',
95 | 'log',
96 | ],
97 | ],
98 |
99 | 'roundrobin' => [
100 | 'transport' => 'roundrobin',
101 | 'mailers' => [
102 | 'ses',
103 | 'postmark',
104 | ],
105 | ],
106 |
107 | ],
108 |
109 | /*
110 | |--------------------------------------------------------------------------
111 | | Global "From" Address
112 | |--------------------------------------------------------------------------
113 | |
114 | | You may wish for all emails sent by your application to be sent from
115 | | the same address. Here you may specify a name and address that is
116 | | used globally for all emails that are sent by your application.
117 | |
118 | */
119 |
120 | 'from' => [
121 | 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
122 | 'name' => env('MAIL_FROM_NAME', 'Example'),
123 | ],
124 |
125 | /*
126 | |--------------------------------------------------------------------------
127 | | Markdown Mail Settings
128 | |--------------------------------------------------------------------------
129 | |
130 | | If you are using Markdown based email rendering, you may configure your
131 | | theme and component paths here, allowing you to customize the design
132 | | of the emails. Or, you may simply stick with the Laravel defaults!
133 | |
134 | */
135 |
136 | 'markdown' => [
137 | 'theme' => env('MAIL_MARKDOWN_THEME', 'default'),
138 |
139 | 'paths' => [
140 | resource_path('views/vendor/mail'),
141 | ],
142 | ],
143 |
144 | ];
145 |
--------------------------------------------------------------------------------
/config/queue.php:
--------------------------------------------------------------------------------
1 | env('QUEUE_CONNECTION', 'database'),
26 |
27 | /*
28 | |--------------------------------------------------------------------------
29 | | Queue Connections
30 | |--------------------------------------------------------------------------
31 | |
32 | | Here you may configure the connection options for every queue backend
33 | | used by your application. An example configuration is provided for
34 | | each backend supported by Laravel. You're also free to add more.
35 | |
36 | | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null"
37 | |
38 | */
39 |
40 | 'connections' => [
41 |
42 | 'sync' => [
43 | 'driver' => 'sync',
44 | ],
45 |
46 | 'database' => [
47 | 'driver' => 'database',
48 | 'connection' => env('DB_QUEUE_CONNECTION'),
49 | 'table' => env('DB_QUEUE_TABLE', 'jobs'),
50 | 'queue' => env('DB_QUEUE', 'default'),
51 | 'retry_after' => (int) env('DB_QUEUE_RETRY_AFTER', 90),
52 | 'after_commit' => false,
53 | ],
54 |
55 | 'beanstalkd' => [
56 | 'driver' => 'beanstalkd',
57 | 'host' => env('BEANSTALKD_QUEUE_HOST', 'localhost'),
58 | 'queue' => env('BEANSTALKD_QUEUE', 'default'),
59 | 'retry_after' => (int) env('BEANSTALKD_QUEUE_RETRY_AFTER', 90),
60 | 'block_for' => 0,
61 | 'after_commit' => false,
62 | ],
63 |
64 | 'sqs' => [
65 | 'driver' => 'sqs',
66 | 'key' => env('AWS_ACCESS_KEY_ID'),
67 | 'secret' => env('AWS_SECRET_ACCESS_KEY'),
68 | 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
69 | 'queue' => env('SQS_QUEUE', 'default'),
70 | 'suffix' => env('SQS_SUFFIX'),
71 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
72 | 'after_commit' => false,
73 | ],
74 |
75 | 'redis' => [
76 | 'driver' => 'redis',
77 | 'connection' => env('REDIS_QUEUE_CONNECTION', 'default'),
78 | 'queue' => env('REDIS_QUEUE', 'default'),
79 | 'retry_after' => (int) env('REDIS_QUEUE_RETRY_AFTER', 90),
80 | 'block_for' => null,
81 | 'after_commit' => false,
82 | ],
83 |
84 | ],
85 |
86 | /*
87 | |--------------------------------------------------------------------------
88 | | Job Batching
89 | |--------------------------------------------------------------------------
90 | |
91 | | The following options configure the database and table that store job
92 | | batching information. These options can be updated to any database
93 | | connection and table which has been defined by your application.
94 | |
95 | */
96 |
97 | 'batching' => [
98 | 'database' => env('DB_CONNECTION', 'sqlite'),
99 | 'table' => 'job_batches',
100 | ],
101 |
102 | /*
103 | |--------------------------------------------------------------------------
104 | | Failed Queue Jobs
105 | |--------------------------------------------------------------------------
106 | |
107 | | These options configure the behavior of failed queue job logging so you
108 | | can control how and where failed jobs are stored. Laravel ships with
109 | | support for storing failed jobs in a simple file or in a database.
110 | |
111 | | Supported drivers: "database-uuids", "dynamodb", "file", "null"
112 | |
113 | */
114 |
115 | 'failed' => [
116 | 'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'),
117 | 'database' => env('DB_CONNECTION', 'sqlite'),
118 | 'table' => 'failed_jobs',
119 | ],
120 |
121 | ];
122 |
--------------------------------------------------------------------------------
/config/sanctum.php:
--------------------------------------------------------------------------------
1 | explode(',', env('SANCTUM_STATEFUL_DOMAINS', sprintf(
28 | '%s%s',
29 | 'localhost,localhost:3000,127.0.0.1,127.0.0.1:8000,::1',
30 | Sanctum::currentApplicationUrlWithPort()
31 | ))),
32 |
33 | /*
34 | |--------------------------------------------------------------------------
35 | | Sanctum Guards
36 | |--------------------------------------------------------------------------
37 | |
38 | | This array contains the authentication guards that will be checked when
39 | | Sanctum is trying to authenticate a request. If none of these guards
40 | | are able to authenticate the request, Sanctum will use the bearer
41 | | token that's present on an incoming request for authentication.
42 | |
43 | */
44 |
45 | 'guard' => ['web'],
46 |
47 | /*
48 | |--------------------------------------------------------------------------
49 | | Expiration Minutes
50 | |--------------------------------------------------------------------------
51 | |
52 | | This value controls the number of minutes until an issued token will be
53 | | considered expired. This will override any values set in the token's
54 | | "expires_at" attribute, but first-party sessions are not affected.
55 | |
56 | */
57 |
58 | 'expiration' => null,
59 |
60 | /*
61 | |--------------------------------------------------------------------------
62 | | Token Prefix
63 | |--------------------------------------------------------------------------
64 | |
65 | | Sanctum can prefix new tokens in order to take advantage of numerous
66 | | security scanning initiatives maintained by open source platforms
67 | | that notify developers if they commit tokens into repositories.
68 | |
69 | | See: https://docs.github.com/en/code-security/secret-scanning/about-secret-scanning
70 | |
71 | */
72 |
73 | 'token_prefix' => env('SANCTUM_TOKEN_PREFIX', ''),
74 |
75 | /*
76 | |--------------------------------------------------------------------------
77 | | Sanctum Middleware
78 | |--------------------------------------------------------------------------
79 | |
80 | | When authenticating your first-party SPA with Sanctum you may need to
81 | | customize some of the middleware Sanctum uses while processing the
82 | | request. You may change the middleware listed below as required.
83 | |
84 | */
85 |
86 | 'middleware' => [
87 | 'authenticate_session' => Laravel\Sanctum\Http\Middleware\AuthenticateSession::class,
88 | 'encrypt_cookies' => Illuminate\Cookie\Middleware\EncryptCookies::class,
89 | 'validate_csrf_token' => Illuminate\Foundation\Http\Middleware\ValidateCsrfToken::class,
90 | ],
91 |
92 | ];
93 |
--------------------------------------------------------------------------------
/config/services.php:
--------------------------------------------------------------------------------
1 | [
27 | 'token' => env('POSTMARK_TOKEN'),
28 | ],
29 |
30 | 'ses' => [
31 | 'key' => env('AWS_ACCESS_KEY_ID'),
32 | 'secret' => env('AWS_SECRET_ACCESS_KEY'),
33 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
34 | ],
35 |
36 | 'resend' => [
37 | 'key' => env('RESEND_KEY'),
38 | ],
39 |
40 | 'slack' => [
41 | 'notifications' => [
42 | 'bot_user_oauth_token' => env('SLACK_BOT_USER_OAUTH_TOKEN'),
43 | 'channel' => env('SLACK_BOT_USER_DEFAULT_CHANNEL'),
44 | ],
45 | ],
46 |
47 | ];
48 |
--------------------------------------------------------------------------------
/config/session.php:
--------------------------------------------------------------------------------
1 | env('SESSION_DRIVER', 'database'),
31 |
32 | /*
33 | |--------------------------------------------------------------------------
34 | | Session Lifetime
35 | |--------------------------------------------------------------------------
36 | |
37 | | Here you may specify the number of minutes that you wish the session
38 | | to be allowed to remain idle before it expires. If you want them
39 | | to expire immediately when the browser is closed then you may
40 | | indicate that via the expire_on_close configuration option.
41 | |
42 | */
43 |
44 | 'lifetime' => env('SESSION_LIFETIME', 120),
45 |
46 | 'expire_on_close' => env('SESSION_EXPIRE_ON_CLOSE', false),
47 |
48 | /*
49 | |--------------------------------------------------------------------------
50 | | Session Encryption
51 | |--------------------------------------------------------------------------
52 | |
53 | | This option allows you to easily specify that all of your session data
54 | | should be encrypted before it's stored. All encryption is performed
55 | | automatically by Laravel and you may use the session like normal.
56 | |
57 | */
58 |
59 | 'encrypt' => env('SESSION_ENCRYPT', false),
60 |
61 | /*
62 | |--------------------------------------------------------------------------
63 | | Session File Location
64 | |--------------------------------------------------------------------------
65 | |
66 | | When utilizing the "file" session driver, the session files are placed
67 | | on disk. The default storage location is defined here; however, you
68 | | are free to provide another location where they should be stored.
69 | |
70 | */
71 |
72 | 'files' => storage_path('framework/sessions'),
73 |
74 | /*
75 | |--------------------------------------------------------------------------
76 | | Session Database Connection
77 | |--------------------------------------------------------------------------
78 | |
79 | | When using the "database" or "redis" session drivers, you may specify a
80 | | connection that should be used to manage these sessions. This should
81 | | correspond to a connection in your database configuration options.
82 | |
83 | */
84 |
85 | 'connection' => env('SESSION_CONNECTION'),
86 |
87 | /*
88 | |--------------------------------------------------------------------------
89 | | Session Database Table
90 | |--------------------------------------------------------------------------
91 | |
92 | | When using the "database" session driver, you may specify the table to
93 | | be used to store sessions. Of course, a sensible default is defined
94 | | for you; however, you're welcome to change this to another table.
95 | |
96 | */
97 |
98 | 'table' => env('SESSION_TABLE', 'sessions'),
99 |
100 | /*
101 | |--------------------------------------------------------------------------
102 | | Session Cache Store
103 | |--------------------------------------------------------------------------
104 | |
105 | | When using one of the framework's cache driven session backends, you may
106 | | define the cache store which should be used to store the session data
107 | | between requests. This must match one of your defined cache stores.
108 | |
109 | | Affects: "apc", "dynamodb", "memcached", "redis"
110 | |
111 | */
112 |
113 | 'store' => env('SESSION_STORE'),
114 |
115 | /*
116 | |--------------------------------------------------------------------------
117 | | Session Sweeping Lottery
118 | |--------------------------------------------------------------------------
119 | |
120 | | Some session drivers must manually sweep their storage location to get
121 | | rid of old sessions from storage. Here are the chances that it will
122 | | happen on a given request. By default, the odds are 2 out of 100.
123 | |
124 | */
125 |
126 | 'lottery' => [2, 100],
127 |
128 | /*
129 | |--------------------------------------------------------------------------
130 | | Session Cookie Name
131 | |--------------------------------------------------------------------------
132 | |
133 | | Here you may change the name of the session cookie that is created by
134 | | the framework. Typically, you should not need to change this value
135 | | since doing so does not grant a meaningful security improvement.
136 | |
137 | */
138 |
139 | 'cookie' => env(
140 | 'SESSION_COOKIE',
141 | Str::slug(env('APP_NAME', 'laravel'), '_').'_session'
142 | ),
143 |
144 | /*
145 | |--------------------------------------------------------------------------
146 | | Session Cookie Path
147 | |--------------------------------------------------------------------------
148 | |
149 | | The session cookie path determines the path for which the cookie will
150 | | be regarded as available. Typically, this will be the root path of
151 | | your application, but you're free to change this when necessary.
152 | |
153 | */
154 |
155 | 'path' => env('SESSION_PATH', '/'),
156 |
157 | /*
158 | |--------------------------------------------------------------------------
159 | | Session Cookie Domain
160 | |--------------------------------------------------------------------------
161 | |
162 | | This value determines the domain and subdomains the session cookie is
163 | | available to. By default, the cookie will be available to the root
164 | | domain and all subdomains. Typically, this shouldn't be changed.
165 | |
166 | */
167 |
168 | 'domain' => env('SESSION_DOMAIN'),
169 |
170 | /*
171 | |--------------------------------------------------------------------------
172 | | HTTPS Only Cookies
173 | |--------------------------------------------------------------------------
174 | |
175 | | By setting this option to true, session cookies will only be sent back
176 | | to the server if the browser has a HTTPS connection. This will keep
177 | | the cookie from being sent to you when it can't be done securely.
178 | |
179 | */
180 |
181 | 'secure' => env('SESSION_SECURE_COOKIE'),
182 |
183 | /*
184 | |--------------------------------------------------------------------------
185 | | HTTP Access Only
186 | |--------------------------------------------------------------------------
187 | |
188 | | Setting this value to true will prevent JavaScript from accessing the
189 | | value of the cookie and the cookie will only be accessible through
190 | | the HTTP protocol. It's unlikely you should disable this option.
191 | |
192 | */
193 |
194 | 'http_only' => env('SESSION_HTTP_ONLY', true),
195 |
196 | /*
197 | |--------------------------------------------------------------------------
198 | | Same-Site Cookies
199 | |--------------------------------------------------------------------------
200 | |
201 | | This option determines how your cookies behave when cross-site requests
202 | | take place, and can be used to mitigate CSRF attacks. By default, we
203 | | will set this value to "lax" to permit secure cross-site requests.
204 | |
205 | | See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#samesitesamesite-value
206 | |
207 | | Supported: "lax", "strict", "none", null
208 | |
209 | */
210 |
211 | 'same_site' => env('SESSION_SAME_SITE', 'lax'),
212 |
213 | /*
214 | |--------------------------------------------------------------------------
215 | | Partitioned Cookies
216 | |--------------------------------------------------------------------------
217 | |
218 | | Setting this value to true will tie the cookie to the top-level site for
219 | | a cross-site context. Partitioned cookies are accepted by the browser
220 | | when flagged "secure" and the Same-Site attribute is set to "none".
221 | |
222 | */
223 |
224 | 'partitioned' => env('SESSION_PARTITIONED_COOKIE', false),
225 |
226 | ];
227 |
--------------------------------------------------------------------------------
/config/view.php:
--------------------------------------------------------------------------------
1 | [
26 | resource_path('views'),
27 | ],
28 |
29 | /*
30 | |--------------------------------------------------------------------------
31 | | Compiled View Path
32 | |--------------------------------------------------------------------------
33 | |
34 | | This option determines where all the compiled Blade templates will be
35 | | stored for your application. Typically, this is within the storage
36 | | directory. However, as usual, you are free to change this value.
37 | |
38 | */
39 |
40 | 'compiled' => env(
41 | 'VIEW_COMPILED_PATH',
42 | realpath(storage_path('framework/views'))
43 | ),
44 |
45 | ];
46 |
--------------------------------------------------------------------------------
/database/.gitignore:
--------------------------------------------------------------------------------
1 | *.sqlite*
2 |
--------------------------------------------------------------------------------
/database/factories/UserFactory.php:
--------------------------------------------------------------------------------
1 |
20 | */
21 | class UserFactory extends Factory
22 | {
23 | /**
24 | * The current password being used by the factory.
25 | */
26 | protected static ?string $password;
27 |
28 | /**
29 | * Define the model's default state.
30 | *
31 | * @return array
32 | */
33 | public function definition(): array
34 | {
35 | return [
36 | 'name' => fake()->name(),
37 | 'email' => fake()->unique()->safeEmail(),
38 | 'email_verified_at' => now(),
39 | 'password' => static::$password ??= Hash::make('password'),
40 | 'remember_token' => Str::random(10),
41 | ];
42 | }
43 |
44 | /**
45 | * Indicate that the model's email address should be unverified.
46 | */
47 | public function unverified(): static
48 | {
49 | return $this->state(fn (array $attributes) => [
50 | 'email_verified_at' => null,
51 | ]);
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/database/migrations/2014_10_12_000000_create_users_table.php:
--------------------------------------------------------------------------------
1 | id();
24 | $table->string('name');
25 | $table->string('email')->unique();
26 | $table->timestamp('email_verified_at')->nullable();
27 | $table->string('password');
28 | $table->rememberToken();
29 | $table->timestamps();
30 | });
31 | }
32 |
33 | /**
34 | * Reverse the migrations.
35 | */
36 | public function down(): void
37 | {
38 | Schema::dropIfExists('users');
39 | }
40 | };
41 |
--------------------------------------------------------------------------------
/database/migrations/2014_10_12_100000_create_password_reset_tokens_table.php:
--------------------------------------------------------------------------------
1 | string('email')->primary();
24 | $table->string('token');
25 | $table->timestamp('created_at')->nullable();
26 | });
27 | }
28 |
29 | /**
30 | * Reverse the migrations.
31 | */
32 | public function down(): void
33 | {
34 | Schema::dropIfExists('password_reset_tokens');
35 | }
36 | };
37 |
--------------------------------------------------------------------------------
/database/migrations/2019_08_19_000000_create_failed_jobs_table.php:
--------------------------------------------------------------------------------
1 | id();
24 | $table->string('uuid')->unique();
25 | $table->text('connection');
26 | $table->text('queue');
27 | $table->longText('payload');
28 | $table->longText('exception');
29 | $table->timestamp('failed_at')->useCurrent();
30 | });
31 | }
32 |
33 | /**
34 | * Reverse the migrations.
35 | */
36 | public function down(): void
37 | {
38 | Schema::dropIfExists('failed_jobs');
39 | }
40 | };
41 |
--------------------------------------------------------------------------------
/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php:
--------------------------------------------------------------------------------
1 | id();
24 | $table->morphs('tokenable');
25 | $table->string('name');
26 | $table->string('token', 64)->unique();
27 | $table->text('abilities')->nullable();
28 | $table->timestamp('last_used_at')->nullable();
29 | $table->timestamp('expires_at')->nullable();
30 | $table->timestamps();
31 | });
32 | }
33 |
34 | /**
35 | * Reverse the migrations.
36 | */
37 | public function down(): void
38 | {
39 | Schema::dropIfExists('personal_access_tokens');
40 | }
41 | };
42 |
--------------------------------------------------------------------------------
/database/migrations/2025_01_18_114009_create_cache_table.php:
--------------------------------------------------------------------------------
1 | string('key')->primary();
27 | $table->mediumText('value');
28 | $table->integer('expiration');
29 | });
30 |
31 | Schema::create('cache_locks', function (Blueprint $table) {
32 | $table->string('key')->primary();
33 | $table->string('owner');
34 | $table->integer('expiration');
35 | });
36 | }
37 |
38 | /**
39 | * Reverse the migrations.
40 | */
41 | public function down(): void
42 | {
43 | Schema::dropIfExists('cache');
44 | Schema::dropIfExists('cache_locks');
45 | }
46 | };
47 |
--------------------------------------------------------------------------------
/database/migrations/2025_01_18_114012_create_sessions_table.php:
--------------------------------------------------------------------------------
1 | string('id')->primary();
26 | $table->foreignId('user_id')->nullable()->index();
27 | $table->string('ip_address', 45)->nullable();
28 | $table->text('user_agent')->nullable();
29 | $table->longText('payload');
30 | $table->integer('last_activity')->index();
31 | });
32 | }
33 |
34 | /**
35 | * Reverse the migrations.
36 | */
37 | public function down(): void
38 | {
39 | Schema::dropIfExists('sessions');
40 | }
41 | };
42 |
--------------------------------------------------------------------------------
/database/seeders/DatabaseSeeder.php:
--------------------------------------------------------------------------------
1 | create();
25 |
26 | \App\Models\User::factory()->create([
27 | // 'name' => 'Test User',
28 | 'email' => 'test@test.com',
29 | 'password' => bcrypt('test123'),
30 | ]);
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/phpunit.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 | tests/Unit
10 |
11 |
12 | tests/Feature
13 |
14 |
15 |
16 |
17 | app
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/public/.htaccess:
--------------------------------------------------------------------------------
1 |
2 |
3 | Options -MultiViews -Indexes
4 |
5 |
6 | RewriteEngine On
7 |
8 | # Handle Authorization Header
9 | RewriteCond %{HTTP:Authorization} .
10 | RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
11 |
12 | # Redirect Trailing Slashes If Not A Folder...
13 | RewriteCond %{REQUEST_FILENAME} !-d
14 | RewriteCond %{REQUEST_URI} (.+)/$
15 | RewriteRule ^ %1 [L,R=301]
16 |
17 | # Send Requests To Front Controller...
18 | RewriteCond %{REQUEST_FILENAME} !-d
19 | RewriteCond %{REQUEST_FILENAME} !-f
20 | RewriteRule ^ index.php [L]
21 |
22 |
--------------------------------------------------------------------------------
/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cachethq/cachet/6bf8a58a8376e6d3f33aa1a91cc0f9c240428ee6/public/favicon.ico
--------------------------------------------------------------------------------
/public/index.php:
--------------------------------------------------------------------------------
1 | handleRequest(Request::capture());
27 |
--------------------------------------------------------------------------------
/public/robots.txt:
--------------------------------------------------------------------------------
1 | User-agent: *
2 | Disallow:
3 |
--------------------------------------------------------------------------------
/resources/views/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cachethq/cachet/6bf8a58a8376e6d3f33aa1a91cc0f9c240428ee6/resources/views/.gitkeep
--------------------------------------------------------------------------------
/routes/console.php:
--------------------------------------------------------------------------------
1 | comment(Inspiring::quote());
28 | })->purpose('Display an inspiring quote');
29 |
--------------------------------------------------------------------------------
/routes/middleware.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cachethq/cachet/6bf8a58a8376e6d3f33aa1a91cc0f9c240428ee6/routes/middleware.php
--------------------------------------------------------------------------------
/routes/web.php:
--------------------------------------------------------------------------------
1 |