Laravel @extends Directive
Used to expand any view file. This will usually be a layout page. For example, you create a master page (layout) and create the necessary @yield and @stack fields in it. You then use other views by extending them from this layout page. That is to say;
// layout.blade.php
<html>
<head>
..
@stack('extra-information')
..
</head>
<div id="app">
@yield('content')
</div>
By expanding this layout page, it is ensured that the same structure is used in other subpages. Thus, it will be sufficient to add only the content and extra-information fields.
// users.blade.php
@extends('layout')
@push('extra-information')
<link href="{{ mix('css/users.css') }}">
@endpush
@section('content')
users
@endsection
Comments
Popular Articles
Popular Tags
- #directive
- #Function
- #React
- #Class
- #centOS
- #Json
- #Text
- #API
- #URL
- #Encrypting
- #Redirect
- #Form
- #Special Characters
- #Special
- #Random
- #Generating
- #SASS
- #Version
- #Installation
- #Show
- #
- #Ajax
- #method
- #Logic For Displaying Posts
- #Key
- #DDOS
- #Default Value
- #Comment Line
- #1364 Field
- #Error
- #Abbreviation
- #QR Code Generating
- #Date
- #timeAgo
- #cURL
- #Array
- #Arrays with Key Values to String Statement
- #Short Tag
- #Vite
- #Reading Excel Files
- #Activate
- #Reading
- #Composer
- #Autoloader
- #PSR-4
- #Insert
- #Record
- #Real Time
- #Characters
- #Socket.io
There are no comments, make the firs comment