Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

153
Views
Laravel 5 redirect function source code

Where is Laravel 5 redirect function source code?

I use ag "function redirect" to search where is it definition but I got nothing.

So I want to know where it is, why and how.

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

It's in vendor/laravel/framework/src/Illuminate/Foundation/helpers.php:

function redirect($to = null, $status = 302, $headers = [], $secure = null)
{
    if (is_null($to)) {
        return app('redirect');
    }

    return app('redirect')->to($to, $status, $headers, $secure);
}
over 4 years ago · Santiago Trujillo Report

0

Because ag ignores vcs ignores(.gitignore, .hgignore; still obey .ignore), now I got what I want: using ag --php --skip-vcs-ignores "function redirect\("

vendor/laravel/framework/src/Illuminate/Foundation/helpers.php
604:    function redirect($to = null, $status = 302, $headers = [], $secure = null)

vendor/symfony/routing/Matcher/RedirectableUrlMatcherInterface.php
30:    public function redirect($path, $route, $scheme = null);

vendor/symfony/routing/Tests/Fixtures/RedirectableUrlMatcher.php
22:    public function redirect($path, $route, $scheme = null)
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!