Skip to content

[12.x] Avoid class name conflict #10470

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 5, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions container.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@ In addition to the `Storage` attribute, Laravel offers `Auth`, `Cache`, `Config`

namespace App\Http\Controllers;

use App\Contracts\UserRepository;
use App\Models\Photo;
use App\Contracts\Repository;
use App\Repositories\DatabaseRepository;
use Illuminate\Container\Attributes\Auth;
use Illuminate\Container\Attributes\Cache;
Expand All @@ -323,7 +323,7 @@ class PhotoController extends Controller
#[Config('app.timezone')] protected string $timezone,
#[Context('uuid')] protected string $uuid,
#[DB('mysql')] protected Connection $connection,
#[Give(DatabaseRepository::class)] protected Repository $users,
#[Give(DatabaseRepository::class)] protected UserRepository $users,
#[Log('daily')] protected LoggerInterface $log,
#[RouteParameter('photo')] protected Photo $photo,
#[Tag('reports')] protected iterable $reports,
Expand Down