You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							33 lines
						
					
					
						
							604 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							33 lines
						
					
					
						
							604 B
						
					
					
				
								<?php
							 | 
						|
								
							 | 
						|
								namespace App\Exports;
							 | 
						|
								
							 | 
						|
								use Maatwebsite\Excel\Concerns\FromCollection;
							 | 
						|
								use Maatwebsite\Excel\Concerns\WithHeadings;
							 | 
						|
								
							 | 
						|
								class DocentesExport implements FromCollection, WithHeadings
							 | 
						|
								{
							 | 
						|
								    protected $docentes;
							 | 
						|
								
							 | 
						|
								    public function __construct($docentes)
							 | 
						|
								    {
							 | 
						|
								        $this->docentes = $docentes;
							 | 
						|
								    }
							 | 
						|
								
							 | 
						|
								    public function collection()
							 | 
						|
								    {
							 | 
						|
								        return $this->docentes;
							 | 
						|
								    }
							 | 
						|
								
							 | 
						|
								    public function headings(): array
							 | 
						|
								    {
							 | 
						|
								        return [
							 | 
						|
								            'ID',
							 | 
						|
								            'Nombre',
							 | 
						|
								            'Teléfono',
							 | 
						|
								            'Correo',
							 | 
						|
								            'Tipo de Licencia',
							 | 
						|
								            'Materia'
							 | 
						|
								        ];
							 | 
						|
								    }
							 | 
						|
								}
							 |