public function run() { $faker = Faker::create(); product_tc_seguroscarg_hist::create(['dni' => '40221234', 'codpromot' => 'B22956', 'mescarseg' => '201410']); product_tc_seguroscarg_hist::create(['dni' => '68043699', 'codpromot' => 'B83070', 'mescarseg' => '201411']); }
public function Seguro($dni, $mes) { return product_tc_seguroscarg_hist::select('codpromot', 'dni', 'mescarseg', 'fecha', 'numero')->where('dni', '=', $dni)->where('mescarseg', '=', $mes)->get(); }