FileEngine.php 373B

123456789101112131415161718192021
  1. <?php
  2. namespace Illuminate\View\Engines;
  3. use Illuminate\Contracts\View\Engine;
  4. class FileEngine implements Engine
  5. {
  6. /**
  7. * Get the evaluated contents of the view.
  8. *
  9. * @param string $path
  10. * @param array $data
  11. * @return string
  12. */
  13. public function get($path, array $data = [])
  14. {
  15. return file_get_contents($path);
  16. }
  17. }