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]
Laravel 8 Simple pagination example
In this article, we will show list of pr...Angular 12 Owl Carousel Tutorial Example
I will expound step by step tutorial ang...Class 'Form' not found in Laravel 7
In Laravel 5 earlier versions, Laravel F...How to Setup 404 Page in Angular 12
In this article, we will create 404 erro...How to Install Latest Version of Nodejs in Ubuntu
Node js is one of the most popular progr...