azuradara/illumake

A (mostly) typesafe Laravel container resolver.

1.0.1 2024-10-25 11:17 UTC

This package is auto-updated.

Last update: 2024-10-25 11:21:33 UTC


README

A (mostly) typesafe Laravel container resolver.

Usage

// Provides autocomplete for the DatabaseManager

make(\Illuminate\Database\DatabaseManager::class)
    ->transaction(fn () => {});

Limitations

  • Does not work with non class-strings.
  • Parameters second argument is not type hinted.

Why

Laravel's app()->make() gives me the ick.