Trying to apply an individual title and meta description to my websites pages, but I'm not sure if the way I'm attempting is very clean.
master.blade.php
<!DOCTYPE html>
<html lang="en">
<head>
<title>{{ $title }}</title>
<meta name="description" content="{{ $description }}">
</head>
individual page
@extends('layouts.master')
<?php $title = "This is an individual page title"; ?>
<?php $description = "This is a description"; ?>
@section('content')
我觉得这是一种又快又脏的方法来完成这项工作,有没有更干净的方法?