Skip to content

Releases: barryvdh/laravel-ide-helper

v2.6.0: Add support for invokable classes as macro function (#765)

26 Feb 18:15

Choose a tag to compare

Macros can be used with invokable classes, like so.

```
<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Response;

class ResponseMacroServiceProvider extends ServiceProvider
{
    public function boot()
    {
        Response::macro('foo', new Foo());
    }
}

class Foo
{
    public function __invoke()
    {
        return 'foobar';
    }
}
```

When running `ide-helper:generate` the following fatal error was thrown.

```  Symfony\Component\Debug\Exception\FatalThrowableError  : ReflectionFunction::__construct() expects parameter 1 to be string, object given```

This commit fixes this error.

v2.5.3

19 Dec 12:12

Choose a tag to compare

prevent loading views if `view` class not in container (#691)

v2.5.2: Merge pull request #707 from crhg/fix_getAliases

07 Nov 13:27
981ff45

Choose a tag to compare

Fix alias class existence determination #698

v2.5.1

06 Sep 18:41
7db1843

Choose a tag to compare

Remove Eloquent mixin thing

Support Laravel 5.7

04 Sep 14:14
09db8c9

Choose a tag to compare

v2.5.0

Update composer.json

v2.4.3: Merge pull request #624 from iPaat/Fix/623

08 Feb 10:03
5c304db

Choose a tag to compare

Fixes a bug where a missing DocBlock caused errors

Support L5.6

07 Feb 08:31
387efb9

Choose a tag to compare

v2.4.2

Allow L5.6

v2.4.1: Fix for Laravel 5.5 (#540)

22 Jul 12:27

Choose a tag to compare

Command fire method is now handle

Laravel 5.5 support, new metadata format

22 Jun 14:11

Choose a tag to compare

v2.4.0

added L55-support (#525)

Add back Eloquent methods

22 Feb 12:31

Choose a tag to compare

v2.3.2

Add Eloquent methods back