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.
		
		
		
		
			
				
					26 lines
				
				457 B
			
		
		
			
		
	
	
					26 lines
				
				457 B
			| 
								 
											6 months ago
										 
									 | 
							
								<?php
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								namespace App\Models;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								use Illuminate\Database\Eloquent\Factories\HasFactory;
							 | 
						||
| 
								 | 
							
								use Illuminate\Database\Eloquent\Model;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								class SolicitudVehiculo extends Model
							 | 
						||
| 
								 | 
							
								{
							 | 
						||
| 
								 | 
							
								    use HasFactory;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    protected $fillable = [
							 | 
						||
| 
								 | 
							
								        'user_id',
							 | 
						||
| 
								 | 
							
								        'fecha_solicitud',
							 | 
						||
| 
								 | 
							
								        'hora_salida',
							 | 
						||
| 
								 | 
							
								        'hora_regreso',
							 | 
						||
| 
								 | 
							
								        'destino',
							 | 
						||
| 
								 | 
							
								        'motivo',
							 | 
						||
| 
								 | 
							
								        'estado'
							 | 
						||
| 
								 | 
							
								    ];
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    public function user()
							 | 
						||
| 
								 | 
							
								    {
							 | 
						||
| 
								 | 
							
								        return $this->belongsTo(User::class);
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								} 
							 |