question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Laravel @php Helper

See original GitHub issue

Instead of just removing code like @php $bg = rand(1, 13); $bgchange = $bg.".jpg"; @endphp from a view wouldn’t it be better to just throw a warning that using @php tag in views is frowned upon to avoid breaking views?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
shufocommented, Nov 9, 2019

Published 1.1.3 with fixed this issue. https://www.npmjs.com/package/blade-formatter/v/1.1.3

1reaction
vielhubercommented, Nov 8, 2019

Same here. Please leave the php content inside available; I just unintentionally broke my template.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Helper Functions - The PHP Framework For Web Artisans
Laravel includes a variety of "helper" PHP functions. Many of these functions are used by the framework itself; however, you are free to...
Read more >
Creating Your Own PHP Helpers in a Laravel Project
Laravel provides many excellent helper functions that are convenient for doing things like working with arrays, file paths, strings, ...
Read more >
How to create Helpers function in Laravel 8 (Global function)
Step 1: create a helper file · Step 2: Write the helper function · Step 3: Include it in our composer.json · Step...
Read more >
Laravel IDE Helper Generator - GitHub
Automatic PHPDoc generation for Laravel Facades. You can now re-generate the docs yourself (for future updates). php artisan ide-helper:generate.
Read more >
How to create custom helper functions in Laravel
You should create a folder called Helpers under the app folder, then create file called whatever.php inside and add the string whatever inside ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found