Answers for "where in blade laravel"

PHP
0

using get in laravel blade

{{ request()->has('faq') ? request()->get('faq') : '' }}
Posted by: Guest on September-24-2020
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
0

laravel where and blade

// NOTE: all project with open and processed that you have not submitted an offer yet.

// NOTE 1 (Controller): all projects with open and processed
$projects = Project::whereIn('status_id', [2,3])->get();

// NOTE 2 (Blade):
@if (count($project->projectOffers->where('teacher_id',auth()->user()->id)) == 0)
// Your code
@endif
Posted by: Guest on April-28-2021

Browse Popular Code Answers by Language