The url function generates a fully qualified URL to the given path:
$url url('user/profile');

$url url('user/profile', [1]);
            return call_user_func(static::$createUrlCallback$notifiable$this->token);

        }



        return 
url(route('password.reset', [

            
'token' => $this->token,

            
'email' => $notifiable->getEmailForPasswordReset(),

        ], 
false));

    }
    protected function invalid($requestValidationException $exception)

    {

        return 
redirect($exception->redirectTo ?? url()->previous())

                    ->
withInput(Arr::except($request->input(), $this->dontFlash))

                    ->
withErrors($exception->errors(), $request->input('_error_bag'$exception->errorBag));

    }
    function secure_url($path$parameters = [])

    {

        return 
url($path$parameterstrue);

    }

}
            $uri substr($uri1);

        }



        return 
trim(url($uri), '/');

    }
            'title' => 'Test Title',

        ]));



        
$this->assertSame('http://localhost/post/5'url('/post'$post));

    }



    public function 
testNamedRoutesAreUrlRoutable()