Laravel @php Helper
See original GitHub issueInstead 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:
- Created 4 years ago
- Comments:8 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Published 1.1.3 with fixed this issue. https://www.npmjs.com/package/blade-formatter/v/1.1.3
Same here. Please leave the php content inside available; I just unintentionally broke my template.