O
O
ortsuev332019-11-23 13:56:39
Laravel
ortsuev33, 2019-11-23 13:56:39

The template does not see the variable why?

Passing a variable to the template

return response()->view(Config('settings.theme').'.index')->with('content',$content);

@section('content')
    {!! $content !!}
@endsection

Says variable not found

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
ortsuev33, 2019-11-23
@ortsuev33

Passed the second parameter to the view as an array, it worked. Through with does not see

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question