azuradara/illumake

A (mostly) typesafe Laravel container resolver.

1.0.0 2024-02-19 07:45 UTC

This package is auto-updated.

Last update: 2024-05-19 08:37:56 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.