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]
How to randomize the order of an array in PHP
Use the PHP shuffle() function...Laravel 5.6 - Google Firebase Notification In Android
Today, We are going to share with you gu...Laravel 8 - CRUD application tutorial with Example
In this article, i will share with you h...PHP do while loop Statement Example
You have already known how loops in any...Laravel 7 - Column sorting with pagination example
In this article, I will share with you h...