Answers for "include in laravel"

PHP
2

use if in laravel blade

@if($user->status =='active')         
      <td>{{ $user->name }}</td>         
@else
      <td> Guest </td>        
@endif
Posted by: Guest on August-15-2020
0

laravel include files

@include('foldername.filename')

@include('filename')
Posted by: Guest on October-05-2021
0

laravel blade section keep template

<!-- Stored in resources/views/child.blade.php -->

@extends('layouts.app')

@section('title', 'Page Title')

@section('sidebar')
    @parent

    <p>This is appended to the master sidebar.</p>
@endsection

@section('content')
    <p>This is my body content.</p>
@endsection
Posted by: Guest on September-20-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