furey / tinx

⛔️ Laravel Tinx is archived and no longer maintained.
449 stars 37 forks source link

re() doesn't reload route changes #63

Closed tmbenhura closed 5 years ago

tmbenhura commented 5 years ago

Using re() doesn't reload changes to the route list. If you are using a UrlGenerator the generator still references the old routing list.

furey commented 5 years ago

Hi @tmbenhura,

Thanks for reporting your issue!

Looking into it, I've worked out a solution, something like…

// vendor/ajthinking/tinx/src/Console/TinxCommand.php

do {
    // …
    app('App\Providers\RouteServiceProvider', ['app' => $this->laravel ])->boot();
    // …
} while (/* … */);

…but I'm currently unable to apply it while Tinx supports Laravel 5.2.

When we drop Laravel support for 5.2, I'll apply the patch.

Sorry I can't help further at the moment.

Cheers!