Define Variable In Blade Templates Laravel?

Blade did not provided a way to define variables.But you can extend blade by using extend method as shown below

How to use

That’s it.

I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.

0 0 vote
Article Rating
Subscribe
Notify of
guest
1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Daniel Saavedra
Daniel Saavedra
5 years ago

I used {{–*/ $i = 1 /*–}} and it works fine

DMCA.com Protection Status
1
0
Would love your thoughts, please comment.x
()
x