diff --git a/laravel/routing/destination.php b/laravel/routing/destination.php new file mode 100644 index 00000000..69338180 --- /dev/null +++ b/laravel/routing/destination.php @@ -0,0 +1,13 @@ +callback instanceof \Closure and ! is_array($this->callback) and ! is_string($this->callback)) + if ( ! $this->callback instanceof Closure and ! is_array($this->callback) and ! is_string($this->callback)) { throw new \Exception('Invalid route defined for URI ['.$this->key.']'); }