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
Popular Articles
Popular Tags
- #directive
- #Function
- #Json
- #Class
- #SASS
- #Form
- #Redirect
- #API
- #Special Characters
- #Special
- #Random
- #Generating
- #
- #Text
- #Ajax
- #URL
- #Encrypting
- #React
- #Show
- #timeAgo
- #PSR-4
- #Hide
- #DDOS Protection
- #DDOS
- #cURL
- #Logic For Displaying Posts
- #Error
- #Key
- #General Error
- #1364 Field
- #Abbreviation
- #Blade
- #Version
- #QR
- #QR Code Generating
- #Array
- #Arrays with Key Values to String Statement
- #Short Tag
- #Activate
- #Real Time
- #Socket.io
- #301
- #Custom Directives
- #Iframe Detection
- #Date
- #Characters
- #Insert
- #Autoloader
- #Composer
- #Reading
There are no comments, make the firs comment