Relative Content

Tag Archive for phplaravellaravel-blade

How to hide a button in Laravel Blade?

I am working on a Laravel project, and I need to hide a specific button in the admin panel. The button is located in a Blade file that looks like this:

Why shortcode @php() interfere with @php and @endphp

I am looking for a reason why in blade files (Laravel) code with mixed @php() and @php ... @endphp fails, and works fine with consistent usage of those codes across the file. I’ve just learned that the hard way but can’t find the reason.