Pass parameter from controller to view
public function about() {
        $param1 = 'this is a parameter of about us page';
        return view('pages/about', compact('param1'));
    }
Content of
about
blade (the page receives and uses the passed parameter)
@section('cntnt')
    <h3>abt us {{$param1}}</h3>
@endsection
by Valeri Tandilashvili
4 years ago
Laravel
blade template
Laravel From Scratch
0
Pro tip: use ```triple backticks around text``` to write in code fences