Add title for each view - Laravel Quickie
8 years ago
Quickie on how to add a unique title for each of your views in Laravel.
Thanks to Zeckdude http://stackoverflow.com/users/83916/zeckdude
master.blade.php
<!DOCTYPE html>
<html lang="en">
<head>
<title>@yield('title')</title>
<meta name="description" content="@yield('description')">
</head>
individual page
@extends('layouts.master')
@section('title')
This is an individual page title
@stop
@section('description')
This is a description
@stop
@section('content')
or if you want to shorten that some more, alternately do this:
Link: