Cannot end a section without first starting one

You have to start the section in blade file before ending it. You got the error Cannot end a section without first starting one when you use @endsection without starting it with @section('content').

Answers 1
  • Start @section('content') in your blade file

    @section('content')
    //Your content
    @endsection
    
    
    0

    You have to start the section with @section('content') and end the section block with @endsection in your blade template file.

  • Back to code snippet queries related laravel