Tag: Blade

loop variable in foreach in Laravel

Using the $loop variable in foreach loops in Laravel

Laravel blade has a foreach directive that we can use the same way as we use the foreach loop in PHP. @foreach directive is more powerful than a normal foreach loop because of the $loop variable that is available inside every...

/ March 29, 2018
Blade directives in laravel 5.6

Laravel 5.6 Two new blade directives

Laravel 5.6 will include two new blade directives. One for adding cross-site request forgery (CSRF) token in your forms and the other for defining form method. In Laravel 5.5 and below, you do the following at the top of the forms...

/ January 29, 2018