Open kapilace6 opened 2 years ago
composer.json
: https://laravel.com/docs/7.x/upgrade#updating-dependencies
laravel/framework
to ^7.0
nunomaduro/collision
to ^4.1
app/Exceptions/Handler.php
: https://laravel.com/docs/7.x/upgrade#symfony-5-related-upgrades
secure
option in config/session.php
fallback to null
composer.json
: https://laravel.com/docs/8.x/upgrade#updating-dependencies
laravel/framework
to ^8.0
nunomaduro/collision
to ^5.0
isset
method works in the opposite for collection null values: https://laravel.com/docs/8.x/upgrade#the-isset-methoddatabase/seeds
to database/seeders
classmap
block in composer.json
and add new namespaces--message
option in php artisan down
command does not work: https://laravel.com/docs/8.x/upgrade#maintenance-mode-updatesNew factories helper class for Laravel 8+ factories. Consider creating an abstract class ModelFactory to be extended by all Factories:
<?php
namespace Database\Factories;
use Closure;
use Illuminate\Support\Collection;
use Illuminate\Database\Eloquent\Factories\Factory;
abstract class ModelFactory extends Factory
{
protected function getAttributes()
{
return $this->states->pipe(function ($states) {
return $this->for->isEmpty() ? $states : new Collection(array_merge([function () {
return $this->parentResolvers();
}], $states->all()));
})->reduce(function ($carry, $state) {
if ($state instanceof Closure) {
$state = $state->bindTo($this);
}
return array_merge($carry, $state($carry));
}, []);
}
}
Dependencies in composer.json
: https://laravel.com/docs/9.x/upgrade#updating-dependencies
laravel/framework
to ^9
nunomaduro/collision
to `^6'fideloper/proxy
: https://laravel.com/docs/9.x/upgrade#the-assert-deleted-methodlaravel/ui
to ^3
spatie/laravel-activitylog
to ^4
masbug/flysystem-google-drive-ext
to ^2
Use laravel/legacy-factories
for backwards compatibility with the old factory classes and seeders
Rename schema
in Postgres Database config: https://laravel.com/docs/9.x/upgrade#postgres-schema-configuration
Changes to Flysystem: https://laravel.com/docs/9.x/upgrade#flysystem-3
https://github.com/indianracingcommunity/RLIProject/pull/80