X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/restate/vendor/maatwebsite/excel/src/Concerns
home
/
gfecatvj
/
sites
/
restate
/
vendor
/
maatwebsite
/
excel
/
src
/
Concerns
/
📁
..
📄
Exportable.php
(2.94 KB)
📄
FromArray.php
(143 B)
📄
FromCollection.php
(187 B)
📄
FromGenerator.php
(175 B)
📄
FromIterator.php
(170 B)
📄
FromQuery.php
(178 B)
📄
FromView.php
(176 B)
📄
Importable.php
(3.88 KB)
📄
MapsCsvSettings.php
(1.78 KB)
📄
OnEachRow.php
(174 B)
📄
RegistersEventListeners.php
(1.47 KB)
📄
ShouldAutoSize.php
(75 B)
📄
SkipsErrors.php
(509 B)
📄
SkipsFailures.php
(555 B)
📄
SkipsOnError.php
(175 B)
📄
SkipsOnFailure.php
(221 B)
📄
SkipsUnknownSheets.php
(179 B)
📄
ToArray.php
(152 B)
📄
ToCollection.php
(218 B)
📄
ToModel.php
(230 B)
📄
WithBatchInserts.php
(150 B)
📄
WithCalculatedFormulas.php
(83 B)
📄
WithCharts.php
(189 B)
📄
WithChunkReading.php
(150 B)
📄
WithColumnFormatting.php
(162 B)
📄
WithConditionalSheets.php
(779 B)
📄
WithCustomChunkSize.php
(153 B)
📄
WithCustomCsvSettings.php
(164 B)
📄
WithCustomQuerySize.php
(677 B)
📄
WithCustomStartCell.php
(159 B)
📄
WithCustomValueBinder.php
(152 B)
📄
WithDrawings.php
(215 B)
📄
WithEvents.php
(153 B)
📄
WithHeadingRow.php
(75 B)
📄
WithHeadings.php
(149 B)
📄
WithLimit.php
(139 B)
📄
WithMappedCells.php
(151 B)
📄
WithMapping.php
(179 B)
📄
WithMultipleSheets.php
(153 B)
📄
WithPreCalculateFormulas.php
(85 B)
📄
WithProgressBar.php
(209 B)
📄
WithStartRow.php
(145 B)
📄
WithStrictNullComparison.php
(85 B)
📄
WithTitle.php
(145 B)
📄
WithValidation.php
(148 B)
Editing: Importable.php
<?php namespace Maatwebsite\Excel\Concerns; use Illuminate\Console\OutputStyle; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Foundation\Bus\PendingDispatch; use Illuminate\Support\Collection; use InvalidArgumentException; use Maatwebsite\Excel\Exceptions\NoFilePathGivenException; use Maatwebsite\Excel\Importer; use Symfony\Component\HttpFoundation\File\UploadedFile; trait Importable { /** * @var OutputStyle|null */ protected $output; /** * @param string|UploadedFile|null $filePath * @param string|null $disk * @param string|null $readerType * * @throws NoFilePathGivenException * @return Importer|PendingDispatch */ public function import($filePath = null, string $disk = null, string $readerType = null) { $filePath = $this->getFilePath($filePath); return $this->getImporter()->import( $this, $filePath, $disk ?? $this->disk ?? null, $readerType ?? $this->readerType ?? null ); } /** * @param string|UploadedFile|null $filePath * @param string|null $disk * @param string|null $readerType * * @throws NoFilePathGivenException * @return array */ public function toArray($filePath = null, string $disk = null, string $readerType = null): array { $filePath = $this->getFilePath($filePath); return $this->getImporter()->toArray( $this, $filePath, $disk ?? $this->disk ?? null, $readerType ?? $this->readerType ?? null ); } /** * @param string|UploadedFile|null $filePath * @param string|null $disk * @param string|null $readerType * * @throws NoFilePathGivenException * @return Collection */ public function toCollection($filePath = null, string $disk = null, string $readerType = null): Collection { $filePath = $this->getFilePath($filePath); return $this->getImporter()->toCollection( $this, $filePath, $disk ?? $this->disk ?? null, $readerType ?? $this->readerType ?? null ); } /** * @param string|UploadedFile|null $filePath * @param string|null $disk * @param string|null $readerType * * @throws NoFilePathGivenException * @throws InvalidArgumentException * @return PendingDispatch */ public function queue($filePath = null, string $disk = null, string $readerType = null) { if (!$this instanceof ShouldQueue) { throw new InvalidArgumentException('Importable should implement ShouldQueue to be queued.'); } return $this->import($filePath, $disk, $readerType); } /** * @param OutputStyle $output * * @return $this */ public function withOutput(OutputStyle $output) { $this->output = $output; return $this; } /** * @return OutputStyle */ public function getConsoleOutput(): OutputStyle { if (!$this->output instanceof OutputStyle) { throw new InvalidArgumentException( 'Importable has no OutputStyle. Declare one by using ->withOutput($this->output).' ); } return $this->output; } /** * @param UploadedFile|string|null $filePath * * @throws NoFilePathGivenException * @return UploadedFile|string */ private function getFilePath($filePath = null) { $filePath = $filePath ?? $this->filePath ?? null; if (null === $filePath) { throw NoFilePathGivenException::import(); } return $filePath; } /** * @return Importer */ private function getImporter(): Importer { return app(Importer::class); } }
Upload File
Create Folder