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

[5.8] don't add the path if it's null or empty #27976

Merged
merged 3 commits into from
Mar 22, 2019
Merged

Conversation

bzixilu
Copy link
Contributor

@bzixilu bzixilu commented Mar 22, 2019

The pull-request relates to recent feature: #27544
As it's discussed in #27704 it makes sense to add the path to view only if it's specified and not empty.
Please take a look.

@driesvints
Copy link
Member

@bzixilu thanks for sending this in. I've pushed one more commit to style things a bit more but other than that it looks good to me.

@bzixilu
Copy link
Contributor Author

bzixilu commented Mar 22, 2019

Great, thank you!

@taylorotwell taylorotwell merged commit 5d459fa into laravel:5.8 Mar 22, 2019
taylorotwell pushed a commit to illuminate/view that referenced this pull request Apr 5, 2019
This re-adds the functionality that was added in laravel/framework#27544 and laravel/framework#27976 and removed again in laravel/framework@33ce7bb.

The main difference with this approach is that it takes into account the issue from laravel/framework#27996. By not introducing a newline it doesn't changes anything to the rendered view itself. The path is now applied as the final piece of code. This doesn't allows IDE's to rely on it being the last line though. Instead we use /**PATH and ENDPATH**/ to make sure we have an easy way for the IDE to pick up the path it needs.
taylorotwell pushed a commit to illuminate/view that referenced this pull request May 11, 2021
This re-adds the functionality that was added in laravel/framework#27544 and laravel/framework#27976 and removed again in laravel/framework@33ce7bb.

The main difference with this approach is that it takes into account the issue from laravel/framework#27996. By not introducing a newline it doesn't changes anything to the rendered view itself. The path is now applied as the final piece of code. This doesn't allows IDE's to rely on it being the last line though. Instead we use /**PATH and ENDPATH**/ to make sure we have an easy way for the IDE to pick up the path it needs.
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

Successfully merging this pull request may close these issues.

3 participants