Answers for "laravel php inside blade"

PHP
2

laravel 5.4 forelse

@forelse ($users as $user)
    <li>{{ $user->name }}</li>
@empty
    <p>No users</p>
@endforelse
Posted by: Guest on September-29-2020
0

using get in laravel blade

{{ request()->has('faq') ? request()->get('faq') : '' }}
Posted by: Guest on September-24-2020
-1

include blade file in laravel

include with data passing
@include('view.name', ['status' => 'complete'])
Posted by: Guest on August-24-2021

Browse Popular Code Answers by Language