In laravel you can do this:
@section('metadescription')
description goes here...
@stop
But this results in:
<meta name="description" content=" XXXXXXXXX ">
I don't want those spaces. Is there a way to specify only a set of parameters that also get trimmed on being yielded?
If you're only passing simple strings to the section, you can pass the string as a second argument to the section
. For example:
@section('metadescription', 'Meta Description goes here')
This solved my problem:
@section('metadescription'){{ "Description goes here" }}@stop
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With