X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/restate/vendor/maatwebsite/excel/src
home
/
gfecatvj
/
sites
/
restate
/
vendor
/
maatwebsite
/
excel
/
src
/
📁
..
📄
Cell.php
(2.18 KB)
📄
ChunkReader.php
(2.67 KB)
📁
Concerns
📁
Console
📄
DefaultValueBinder.php
(574 B)
📄
DelegatedMacroable.php
(730 B)
📁
Events
📄
Excel.php
(4.75 KB)
📄
ExcelServiceProvider.php
(2.8 KB)
📁
Exceptions
📄
Exporter.php
(1.51 KB)
📁
Facades
📁
Factories
📁
Fakes
📁
Files
📁
Filters
📄
HasEventBus.php
(1.25 KB)
📄
HeadingRowImport.php
(955 B)
📁
Helpers
📄
Importer.php
(1.53 KB)
📁
Imports
📁
Jobs
📄
MappedReader.php
(1.26 KB)
📁
Mixins
📄
QueuedWriter.php
(6.01 KB)
📄
Reader.php
(12.03 KB)
📄
RegistersCustomConcerns.php
(1.1 KB)
📄
Row.php
(1.82 KB)
📄
Sheet.php
(18.05 KB)
📁
Transactions
📁
Validators
📄
Writer.php
(4.95 KB)
Editing: RegistersCustomConcerns.php
<?php namespace Maatwebsite\Excel; use Maatwebsite\Excel\Events\AfterSheet; use Maatwebsite\Excel\Events\BeforeExport; use Maatwebsite\Excel\Events\BeforeSheet; use Maatwebsite\Excel\Events\BeforeWriting; use Maatwebsite\Excel\Events\Event; trait RegistersCustomConcerns { /** * @var array */ private static $eventMap = [ BeforeWriting::class => Writer::class, BeforeExport::class => Writer::class, BeforeSheet::class => Sheet::class, AfterSheet::class => Sheet::class, ]; /** * @param string $concern * @param callable $handler * @param string $event */ public static function extend(string $concern, callable $handler, string $event = BeforeWriting::class) { /** @var HasEventBus $delegate */ $delegate = static::$eventMap[$event] ?? BeforeWriting::class; $delegate::listen($event, function (Event $event) use ($concern, $handler) { if ($event->appliesToConcern($concern)) { $handler($event->getConcernable(), $event->getDelegate()); } }); } }
Upload File
Create Folder