MultipleSheets import validation message
This commit is contained in:
		
							
								
								
									
										25
									
								
								app/Abstracts/ImportMultipleSheets.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								app/Abstracts/ImportMultipleSheets.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,25 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
namespace App\Abstracts;
 | 
			
		||||
 | 
			
		||||
use Illuminate\Contracts\Queue\ShouldQueue;
 | 
			
		||||
use Maatwebsite\Excel\Concerns\Importable;
 | 
			
		||||
use Maatwebsite\Excel\Concerns\WithChunkReading;
 | 
			
		||||
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
 | 
			
		||||
 | 
			
		||||
abstract class ImportMultipleSheets implements ShouldQueue, WithChunkReading, WithMultipleSheets
 | 
			
		||||
{
 | 
			
		||||
    use Importable;
 | 
			
		||||
 | 
			
		||||
    public $user;
 | 
			
		||||
 | 
			
		||||
    public function __construct()
 | 
			
		||||
    {
 | 
			
		||||
        $this->user = user();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function chunkSize(): int
 | 
			
		||||
    {
 | 
			
		||||
        return 100;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user