TerrePorter / StringBladeCompiler

Render Blade templates from string
MIT License
175 stars 76 forks source link

laravel 9 support #80

Open 883 opened 2 years ago

883 commented 2 years ago

I have been very much helped by this library for some time. I also want to use string-blade-compiler in my laravel9 project. Do you have any plans for support?

erik-ropez commented 2 years ago

https://github.com/TerrePorter/StringBladeCompiler/pull/81

TerrePorter commented 2 years ago

@883 @erik-ropez laravel 9 has built in support for on the fly blade template string rendering. https://laracasts.com/series/whats-new-in-laravel-9/episodes/5

erik-ropez commented 2 years ago

@883 @erik-ropez laravel 9 has built in support for on the fly blade template string rendering. https://laracasts.com/series/whats-new-in-laravel-9/episodes/5

True, but I have a lot of code depending on your view(['template' => '...']) syntax. Migrating everything to Blade::render() is time consuming.

TerrePorter commented 2 years ago

@erik-ropez I see. that would be a lot of work. I have committed your pull request

erik-ropez commented 2 years ago

@TerrePorter Could you make a new version release with Laravel 9 support. The last version is https://packagist.org/packages/wpb/string-blade-compiler#6.0.3 and it doesn't support v9.

TerrePorter commented 1 year ago

@erik-ropez I made a new version, 7.0, that is for laravel 9.

Sorry for taking so long