<?php

use Spatie\Seeders\Faker;

function faker(): Faker
{
    return app(Faker::class);
}

<?php

use Spatie\Seeders\Faker;

/** @return \Faker\Generator|Spatie\Seeders\Faker */
function faker(): Faker
{
    return app(Faker::class);
}

Add fake docblock to help with IDE method completion
Add fake docblock to help with IDE method completion