Merge branch 'master' into develop
This commit is contained in:
10
README.md
10
README.md
@@ -31,15 +31,22 @@ If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Lar
|
|||||||
|
|
||||||
We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel [Patreon page](https://patreon.com/taylorotwell).
|
We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel [Patreon page](https://patreon.com/taylorotwell).
|
||||||
|
|
||||||
|
### Premium Partners
|
||||||
|
|
||||||
- **[Vehikl](https://vehikl.com/)**
|
- **[Vehikl](https://vehikl.com/)**
|
||||||
- **[Tighten Co.](https://tighten.co)**
|
- **[Tighten Co.](https://tighten.co)**
|
||||||
- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)**
|
- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)**
|
||||||
- **[64 Robots](https://64robots.com)**
|
- **[64 Robots](https://64robots.com)**
|
||||||
- **[Cubet Techno Labs](https://cubettech.com)**
|
- **[Cubet Techno Labs](https://cubettech.com)**
|
||||||
- **[Cyber-Duck](https://cyber-duck.co.uk)**
|
- **[Cyber-Duck](https://cyber-duck.co.uk)**
|
||||||
- **[British Software Development](https://www.britishsoftware.co)**
|
- **[Many](https://www.many.co.uk)**
|
||||||
- **[Webdock, Fast VPS Hosting](https://www.webdock.io/en)**
|
- **[Webdock, Fast VPS Hosting](https://www.webdock.io/en)**
|
||||||
- **[DevSquad](https://devsquad.com)**
|
- **[DevSquad](https://devsquad.com)**
|
||||||
|
|
||||||
|
### Community Sponsors
|
||||||
|
|
||||||
|
<a href="https://op.gg"><img src="http://opgg-static.akamaized.net/icon/t.rectangle.png" width="150"></a>
|
||||||
|
|
||||||
- [UserInsights](https://userinsights.com)
|
- [UserInsights](https://userinsights.com)
|
||||||
- [Fragrantica](https://www.fragrantica.com)
|
- [Fragrantica](https://www.fragrantica.com)
|
||||||
- [SOFTonSOFA](https://softonsofa.com/)
|
- [SOFTonSOFA](https://softonsofa.com/)
|
||||||
@@ -59,7 +66,6 @@ We would like to extend our thanks to the following sponsors for funding Laravel
|
|||||||
- [Abdel Elrafa](https://abdelelrafa.com)
|
- [Abdel Elrafa](https://abdelelrafa.com)
|
||||||
- [Hyper Host](https://hyper.host)
|
- [Hyper Host](https://hyper.host)
|
||||||
- [Appoly](https://www.appoly.co.uk)
|
- [Appoly](https://www.appoly.co.uk)
|
||||||
- [OP.GG](https://op.gg)
|
|
||||||
- [云软科技](http://www.yunruan.ltd/)
|
- [云软科技](http://www.yunruan.ltd/)
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ class Kernel extends HttpKernel
|
|||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $middleware = [
|
protected $middleware = [
|
||||||
|
// \App\Http\Middleware\TrustHosts::class,
|
||||||
\App\Http\Middleware\TrustProxies::class,
|
\App\Http\Middleware\TrustProxies::class,
|
||||||
\Fruitcake\Cors\HandleCors::class,
|
\Fruitcake\Cors\HandleCors::class,
|
||||||
\App\Http\Middleware\CheckForMaintenanceMode::class,
|
\App\Http\Middleware\CheckForMaintenanceMode::class,
|
||||||
|
|||||||
20
app/Http/Middleware/TrustHosts.php
Normal file
20
app/Http/Middleware/TrustHosts.php
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Middleware;
|
||||||
|
|
||||||
|
use Illuminate\Http\Middleware\TrustHosts as Middleware;
|
||||||
|
|
||||||
|
class TrustHosts extends Middleware
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Get the host patterns that should be trusted.
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function hosts()
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
$this->allSubdomainsOfApplicationUrl(),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -10,7 +10,7 @@ class TrustProxies extends Middleware
|
|||||||
/**
|
/**
|
||||||
* The trusted proxies for this application.
|
* The trusted proxies for this application.
|
||||||
*
|
*
|
||||||
* @var array|string
|
* @var array|string|null
|
||||||
*/
|
*/
|
||||||
protected $proxies;
|
protected $proxies;
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
"require": {
|
"require": {
|
||||||
"php": "^7.2.5",
|
"php": "^7.2.5",
|
||||||
"fideloper/proxy": "^4.2",
|
"fideloper/proxy": "^4.2",
|
||||||
"fruitcake/laravel-cors": "^1.0",
|
"fruitcake/laravel-cors": "^2.0",
|
||||||
"guzzlehttp/guzzle": "^6.3",
|
"guzzlehttp/guzzle": "^6.3",
|
||||||
"laravel/framework": "^8.0",
|
"laravel/framework": "^8.0",
|
||||||
"laravel/tinker": "^2.0"
|
"laravel/tinker": "^2.0"
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ return [
|
|||||||
'username' => env('MAIL_USERNAME'),
|
'username' => env('MAIL_USERNAME'),
|
||||||
'password' => env('MAIL_PASSWORD'),
|
'password' => env('MAIL_PASSWORD'),
|
||||||
'timeout' => null,
|
'timeout' => null,
|
||||||
|
'auth_mode' => null,
|
||||||
],
|
],
|
||||||
|
|
||||||
'ses' => [
|
'ses' => [
|
||||||
|
|||||||
@@ -92,10 +92,12 @@ return [
|
|||||||
| Session Cache Store
|
| Session Cache Store
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| When using the "apc", "memcached", or "dynamodb" session drivers you may
|
| While using one of the framework's cache driven session backends you may
|
||||||
| list a cache store that should be used for these sessions. This value
|
| list a cache store that should be used for these sessions. This value
|
||||||
| must match with one of the application's configured cache "stores".
|
| must match with one of the application's configured cache "stores".
|
||||||
|
|
|
|
||||||
|
| Affects: "apc", "dynamodb", "memcached", "redis"
|
||||||
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'store' => env('SESSION_STORE', null),
|
'store' => env('SESSION_STORE', null),
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
class CreatePasswordResetsTable extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::create('password_resets', function (Blueprint $table) {
|
||||||
|
$table->string('email')->index();
|
||||||
|
$table->string('token');
|
||||||
|
$table->timestamp('created_at')->nullable();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('password_resets');
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -21,8 +21,8 @@
|
|||||||
<server name="APP_ENV" value="testing"/>
|
<server name="APP_ENV" value="testing"/>
|
||||||
<server name="BCRYPT_ROUNDS" value="4"/>
|
<server name="BCRYPT_ROUNDS" value="4"/>
|
||||||
<server name="CACHE_DRIVER" value="array"/>
|
<server name="CACHE_DRIVER" value="array"/>
|
||||||
<server name="DB_CONNECTION" value="sqlite"/>
|
<!-- <server name="DB_CONNECTION" value="sqlite"/> -->
|
||||||
<server name="DB_DATABASE" value=":memory:"/>
|
<!-- <server name="DB_DATABASE" value=":memory:"/> -->
|
||||||
<server name="MAIL_MAILER" value="array"/>
|
<server name="MAIL_MAILER" value="array"/>
|
||||||
<server name="QUEUE_CONNECTION" value="sync"/>
|
<server name="QUEUE_CONNECTION" value="sync"/>
|
||||||
<server name="SESSION_DRIVER" value="array"/>
|
<server name="SESSION_DRIVER" value="array"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user