Skip to content

Commit

Permalink
Update to laravel commit: ddb26fbc504cd64fb1b89511773aa8d03c758c6d
Browse files Browse the repository at this point in the history
  • Loading branch information
rappasoft committed Dec 13, 2020
1 parent 8cbb3f7 commit e760324
Show file tree
Hide file tree
Showing 14 changed files with 223 additions and 85 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -22,6 +22,7 @@ _ide_helper.php
.project
composer.phar
coverage.xml
docker-compose.override.yml
error.log
Homestead.json
Homestead.yaml
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Expand Up @@ -8,6 +8,9 @@ All notable changes to this project will be documented in this file.
## Changed

- Update dependencies
- Update to laravel commit: ddb26fbc504cd64fb1b89511773aa8d03c758c6d
- Update exception handling to match laravel
- Added sail docker file

## [8.0.0] - 2020-10-21

Expand Down
10 changes: 10 additions & 0 deletions app/Exceptions/Handler.php
Expand Up @@ -22,6 +22,16 @@ class Handler extends ExceptionHandler
GeneralException::class,
];

/**
* A list of the inputs that are never flashed for validation exceptions.
*
* @var array
*/
protected $dontFlash = [
'password',
'password_confirmation',
];

/**
* Report or log an exception.
*
Expand Down
2 changes: 1 addition & 1 deletion app/Providers/RouteServiceProvider.php
Expand Up @@ -71,7 +71,7 @@ public function boot()
protected function configureRateLimiting()
{
RateLimiter::for('api', function (Request $request) {
return Limit::perMinute(60);
return Limit::perMinute(60)->by(optional($request->user())->id ?: $request->ip());
});
}
}
17 changes: 9 additions & 8 deletions composer.json
Expand Up @@ -9,18 +9,18 @@
],
"license": "MIT",
"require": {
"php": "^7.3",
"php": "^7.3|^8.0",
"arcanedev/log-viewer": "8.x",
"darkghosthunter/laraguard": "dev-master",
"fideloper/proxy": "^4.2",
"fideloper/proxy": "^4.4",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.0.1",
"jamesmills/laravel-timezone": "^1.9",
"lab404/laravel-impersonate": "^1.6",
"langleyfoxall/laravel-nist-password-rules": "^4.1",
"laravel/framework": "^8.0",
"laravel/framework": "^8.12",
"laravel/socialite": "^5.0",
"laravel/tinker": "^2.0",
"laravel/tinker": "^2.5",
"laravel/ui": "^3.0",
"livewire/livewire": "^2.0",
"rappasoft/laravel-livewire-tables": "^0.3",
Expand All @@ -34,12 +34,13 @@
"barryvdh/laravel-debugbar": "^3.2",
"barryvdh/laravel-ide-helper": "^2.6",
"codedungeon/phpunit-result-printer": "^0.29",
"facade/ignition": "^2.3.6",
"facade/ignition": "^2.5",
"friendsofphp/php-cs-fixer": "^2.16",
"fzaninotto/faker": "^1.9.1",
"mockery/mockery": "^1.3.1",
"fakerphp/faker": "^1.9.1",
"laravel/sail": "^0.0.5",
"mockery/mockery": "^1.4.2",
"nunomaduro/collision": "^5.0",
"phpunit/phpunit": "^9.0"
"phpunit/phpunit": "^9.3.3"
},
"config": {
"optimize-autoloader": true,
Expand Down
170 changes: 113 additions & 57 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion config/app.php
Expand Up @@ -220,7 +220,7 @@
'Password' => Illuminate\Support\Facades\Password::class,
'Queue' => Illuminate\Support\Facades\Queue::class,
'Redirect' => Illuminate\Support\Facades\Redirect::class,
'Redis' => Illuminate\Support\Facades\Redis::class,
// 'Redis' => Illuminate\Support\Facades\Redis::class,
'Request' => Illuminate\Support\Facades\Request::class,
'Response' => Illuminate\Support\Facades\Response::class,
'Route' => Illuminate\Support\Facades\Route::class,
Expand Down
5 changes: 5 additions & 0 deletions config/broadcasting.php
Expand Up @@ -41,6 +41,11 @@
],
],

'ably' => [
'driver' => 'ably',
'key' => env('ABLY_KEY'),
],

'redis' => [
'driver' => 'redis',
'connection' => 'default',
Expand Down
4 changes: 2 additions & 2 deletions config/cache.php
Expand Up @@ -13,8 +13,8 @@
| using this caching library. This connection is used when another is
| not explicitly specified when executing a given caching function.
|
| Supported: "apc", "array", "database", "file",
| "memcached", "redis", "dynamodb"
| Supported drivers: "apc", "array", "database", "file",
| "memcached", "redis", "dynamodb", "null"
|
*/

Expand Down
2 changes: 1 addition & 1 deletion config/cors.php
Expand Up @@ -15,7 +15,7 @@
|
*/

'paths' => ['api/*'],
'paths' => ['api/*', 'sanctum/csrf-cookie'],

'allowed_methods' => ['*'],

Expand Down
13 changes: 0 additions & 13 deletions config/filesystems.php
Expand Up @@ -15,19 +15,6 @@

'default' => env('FILESYSTEM_DRIVER', 'local'),

/*
|--------------------------------------------------------------------------
| Default Cloud Filesystem Disk
|--------------------------------------------------------------------------
|
| Many applications store files both locally and in the cloud. For this
| reason, you may specify a default "cloud" driver here. This driver
| will be bound as the Cloud disk implementation in the container.
|
*/

'cloud' => env('FILESYSTEM_CLOUD', 's3'),

/*
|--------------------------------------------------------------------------
| Filesystem Disks
Expand Down

0 comments on commit e760324

Please sign in to comment.