Answer the question
In order to leave comments, you need to log in
How to initialize Blade templates from a base field?
Hello! There is an ordinary view in which a field from the database is displayed, for example - description (in which the usual html code is inserted). I would like to use Blade templates inside this html code. How to implement it?
I found something similar - instead of a view, just a field from the database is displayed in which I write what should have been in the view.
@extends('frontend.layouts.main')
@section('title'){{$page->title}}@endsection
@section('meta_keywords'){{$page->meta_keywords}}@endsection
@section('meta_description'){{$page->meta_description}}@endsection
@section('content')
@widget('lastNews')
@endsection
@extends('frontend.layouts.main')
@section('title'){{$page->title}}@endsection
@section('meta_keywords'){{$page->meta_keywords}}@endsection
@section('meta_description'){{$page->meta_description}}@endsection
@section('content'){{$page->description}}}@endsection
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question