url
<?php $url = url('user/profile'); $url = url('user/profile', [1]);
<?php return call_user_func(static::$createUrlCallback, $notifiable, $this->token); } return url(route('password.reset', [ 'token' => $this->token, 'email' => $notifiable->getEmailForPasswordReset(), ], false)); }
<?php protected function invalid($request, ValidationException $exception) { return redirect($exception->redirectTo ?? url()->previous()) ->withInput(Arr::except($request->input(), $this->dontFlash)) ->withErrors($exception->errors(), $request->input('_error_bag', $exception->errorBag)); }
<?php function secure_url($path, $parameters = []) { return url($path, $parameters, true); } }
<?php $uri = substr($uri, 1); } return trim(url($uri), '/'); }
<?php 'title' => 'Test Title', ])); $this->assertSame('http://localhost/post/5', url('/post', $post)); } public function testNamedRoutesAreUrlRoutable()