S3Repository.php 412 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace App\Module\Dev\Repository;
  3. use App\Module\System\Repositories\Logs;
  4. use Dcat\Admin\Grid;
  5. use Dcat\Admin\Repositories\Repository;
  6. /**
  7. * 日志读取 Cron
  8. *
  9. */
  10. class S3Repository extends Repository
  11. {
  12. public function get(Grid\Model $model)
  13. {
  14. $list = [];
  15. $path = storage_path('logs/cron.log');
  16. $list = Logs::read($path);
  17. return $list;
  18. }
  19. }