Top "Laravel-blade" questions

Blade is the simple, yet powerful templating engine provided with Laravel.

How can I know the size of an array in Blade template?

I need something like this: @if ($array.length > 0) {{-- expr --}} @endif is this possible? Solution! @if (count($array) &…

laravel laravel-4 laravel-blade
Calculate difference between two dates using Carbon and Blade

Does anyone know how to pass a given variable instead the Carbon's default parameters ? The documentation of Carbon says: // CARBON …

php laravel laravel-blade php-carbon
laravel 5.2 How to get route parameter in blade?

this is my url http://project.dev/blogs/image-with-article so, here I need the parameter image-with-article in my blade to …

php laravel laravel-5.2 blade laravel-blade
Trying to get key in a foreach loop to work using blade

if I use {{$node[0]->url}} then Laravel's templating engine dislays the correct result but I can not figure …

php laravel blade laravel-blade
Load Blade assets with https in Laravel

I am loading my css using this format: <link href="{{ asset('assets/mdi/css/materialdesignicons.min.css') }}" media="all" …

php laravel http https laravel-blade
Laravel blade "old input or default variable"?

I want to show the old input in input value. If there isn't old input, than show other variable: value="{{ …

php laravel concatenation blade laravel-blade
Laravel, right way to import javascript into Blade Templates

I am using Laravel 5.6. This page did not work for me. pizza/index.blade.php looks like this: @extends('layouts.…

javascript php laravel laravel-blade
Best Practices for Laravel 4 Helpers and Basic Functions?

I'm trying to understand the best place to put a global function in Laravel 4. For example, date formatting. I don't …

laravel laravel-4 laravel-blade laravel-helper
How to Format Laravel Blade Codes in Visual Studio Code?

I have installed some Visual Studio Code extensions to handle Laravel Blade Codes like laravel-blade [ https://marketplace.visualstudio.com/items?…

php laravel visual-studio-code laravel-blade
Using JavaScript to display Laravel's Variable

In my code I am using typeahead.js. I use Laravel 5 and I need to replace the var states with …

javascript php laravel laravel-5 laravel-blade