in this article, I will share with you how to write PHP code in laravel blade files. there is two ways you should be written PHP code in laravel's blade files. one if laravel provides one his framework method and the second one is the traditional method of write PHP code in laravel blade file. I will share with you both of example here.
@php
$Categories = explode(',', $value->category_name);
$CategoriesSlug = explode(',', $value->category_slug);
@endphp
Example : 2
category_name);
$CategoriesSlug = explode(',', $value->category_slug);
?>
i hope it will help you.
Hi, My name is Harsukh Makwana. i have been work with many programming language like php, python, javascript, node, react, anguler, etc.. since last 5 year. if you have any issue or want me hire then contact me on [email protected]
Django 3 Authentication with MySql | Login Logout
In this tutorial, you'll learn how t...Install Adminer In Laravel 8
When accessing database, command line ac...Start Applications Automatically on Login in Ubuntu
Many of us need to open certain applicat...How to Find the Sum of an Array of Numbers in JavaScript
Use the JavaScript reduce() Method Yo...Best Image Editor Software for Linux
In recent times, Linux has become more r...