laravel-dotenv-editor icon indicating copy to clipboard operation
laravel-dotenv-editor copied to clipboard

Need Changes to str_finish to Str::finish in Laravel 6

Open narai420 opened this issue 5 years ago • 3 comments

https://github.com/Brotzka/laravel-dotenv-editor/blob/f84fbabef07c34a92af0f32e38a84e9ced087e64/src/DotenvEditor.php#L33

narai420 avatar Feb 19 '20 09:02 narai420

A bit of digging found out that Laravel 6 removed the str_finish function. Either an alternative function could be used or you can install the Laravel helpers package which fixed it for me.

composer require laravel/helpers

tomcrofty avatar Mar 28 '20 11:03 tomcrofty

Actually we need to use Str::finish in lieu of str_finish helper in Laravel 6 and 7

narai420 avatar Apr 07 '20 11:04 narai420

str_finish is undefined we need to use Str::finish to replace this function

AlvinQinwen avatar Sep 07 '20 02:09 AlvinQinwen