Laravel @push Directive

This directive is used to add content to the field created with the @stack directive. For example;

// layout.blade.php
<html>
<head>
    ..
    @stack('extra-information')
    ..
</head>

I created the field with the name extra-information on our Layout page. On each of my pages, I can add content to that field as I want.

// users.blade.php

@extends('layout')

@push('extra-information')
    ..
    <link href="{{ mix('css/app.css')}}">
    ..
@endpush
Comments

There are no comments, make the firs comment