Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
narai420 opened this issue Feb 19, 2020 · 3 comments
Open

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

narai420 opened this issue Feb 19, 2020 · 3 comments

Comments

@narai420
Copy link

$backupPath = str_finish(config('dotenveditor.backupPath'), '/');

@tomcrofty
Copy link

tomcrofty commented Mar 28, 2020

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

@narai420
Copy link
Author

narai420 commented Apr 7, 2020

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

@AlvinQinwen
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants