UrlRoutable.php 528B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace Illuminate\Contracts\Routing;
  3. interface UrlRoutable
  4. {
  5. /**
  6. * Get the value of the model's route key.
  7. *
  8. * @return mixed
  9. */
  10. public function getRouteKey();
  11. /**
  12. * Get the route key for the model.
  13. *
  14. * @return string
  15. */
  16. public function getRouteKeyName();
  17. /**
  18. * Retrieve the model for a bound value.
  19. *
  20. * @param mixed $value
  21. * @return \Illuminate\Database\Eloquent\Model|null
  22. */
  23. public function resolveRouteBinding($value);
  24. }