I want to get the override attributes in factory which are defined in seeder at the time of using factories.
For example, in Laravel 7 it was possible to get them as the third parameter
$factory->define(Menu::class, function (Faker $faker, $params) {
/* here params have the override attributes, which can be used to specify other attributes based on it's value, for example menu_type */
}
Now when upgrading to laravel 8, is there anyway to get those attributes in definition method?
Any ideas would be helpful. Thanks!