I am creating a dynamic laravel package in which blade files can be extended. My idea is to provide a base template and extend it multiple times with same name. Let’s simplify my saying
File:- package/views/index.blade.php
<h1>I am package</h1>
@stack('content)
Now Override this file as laravel documentation
File:- views/vendor/package/inde.blade.php
@push('content')
<h1>I am extended</h1>
@endpush
My desired result is
I am package
I am extended