'required|mimes:xls,xlsx' ]; public static $messages = [ 'file.mimes' => 'Datei ist kein Excel Format', 'file.required' => 'Excel is required' ]; protected static $row = []; public static function setRow($row){ // self::checkTime(); self::$row[] = $row; } public static function checkTime(){ if(round((microtime(true) - self::$start), 2) > 29){ echo 'Total execution time in seconds: ' . round((microtime(true) - self::$start), 2); die(); return true; } return false; } public static function countRows(){ return count(self::$row); } public static function break(){ echo count(self::$row)."
"; echo 'Total execution time in seconds: ' . round((microtime(true) - self::$start), 2); die(); } }