Create remove and add more inputs functionality with input type file and text in Laravel Blade file code <form action="{{ route('storeDocuments') }}" method="post" enctype="multipart/form-data"> @csrf <div id="inputFields"> @if(!empty($documents[0])) @php $counter = 1000; @endphp @foreach($documents as $document) <input type="hidden" id="document_id" name="documents[{{$counter}}][document_id]" value="{{$document->id}}"> <div class="field"> <label for="title">Title:</label> <input type="text" id="title" class="title_input" name="documents[{{$counter}}][title]" value="{{$document->title}}" required> <label for=&
Show shape file (.shp)(map) on map with shape file Include gasparesganga package in php code https://gasparesganga.com/labs/php-shapefile/ <?php // Register autoloader require_once('vendor/gasparesganga/php-shapefile/src/Shapefile/ShapefileAutoloader.php'); Shapefile\ShapefileAutoloader::register(); // Import classes use Shapefile\Shapefile; use Shapefile\ShapefileException; use Shapefile\ShapefileReader; try { // Open Shapefile $Shapefile = new ShapefileReader('filepath/shapefile.shp'); // $json_data = $Shapefile->fetchRecord()->getGeoJSON(); $geoJsonArray = []; while ($Geometry = $Shapefile->fetchRecord()) { // Skip the record if marked as "deleted" if ($Geometry->isDeleted()) { continue; } // Print Geometry as an Array /* print_r($Geometry->getArray()); // Print Geometry as WKT print_r($Geometry->getWKT()); //