Dynamic title on every page laravel blade
<html>
<head>
<title>App Name - @yield('title')</title>
</head>
<body>
@section('sidebar')
This is the master sidebar.
@show
<div class="container">
@yield('content')
</div>
</body>
<!-- Then you can extend pages using code below as guide -->
@extends('layouts.master')
@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
Also in PHP:
- Get the content of a specific page (by ID)
- display the date and time in php
- encode and decode int to base64 using php
- echo console.log
- error out of length in php
- artisan laravel install
- autoload file in laravel
- ReactPHP
- array reverce php
- PHP Html-Optimizer on github
- convert base64 to image php
- encode image to base64 in php
- clear laravel.log
- array length php
- check lenght phph
- adjacent post sort order by post title
- create table modal and seeder at once in laravel
- display all php erros
- array splice php
- catch exception php of spetie
- codeigniter get last insert
- echo foreach
- current date function in php
- error text encode php json