View.php 431B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Illuminate\Contracts\View;
  3. use Illuminate\Contracts\Support\Renderable;
  4. interface View extends Renderable
  5. {
  6. /**
  7. * Get the name of the view.
  8. *
  9. * @return string
  10. */
  11. public function name();
  12. /**
  13. * Add a piece of data to the view.
  14. *
  15. * @param string|array $key
  16. * @param mixed $value
  17. * @return $this
  18. */
  19. public function with($key, $value = null);
  20. }