Laravel Redirects

Laravel Redirects

Laravel Redirects is a package by Andrei Badea that allows you to create simple or multiple nested redirects for your Laravel application. According to the readme:

This package can be useful from an SEO perspective when in your application, you have URLs that have the potential of being modified.

First, the package uses middleware to detect routes and possibly redirect users based on database results on the redirects table.

Next, you can create a redirect with the following call to the configured redirect model:

app('redirect.model')->create([
    'old_url' => '/your-old-url',
    'new_url => '/your-new-url',
    'status' => 301
]);

You can learn more about this package, get full installation instructions, and view the source code on GitHub at Neurony/laravel-redirects.


Filed in: News


Newsletter

Join the weekly newsletter and never miss out on new tips, tutorials, and more.

Laravel News Partners

Laravel Jobs

Full Stack or Back-End Developer
Alexandria, VA; Tallahassee, FL; Orlando, FL
Marketing for Change
Full Stack Software Engineer
Atlanta, GA or Remote
Voxie
Laravel/PHP Developer
Chicago, IL
Neon One
Software Engineer, Web Applications
Vaughan, ON, Canada
Blast Motion
Contract Services Software Engineer (Laravel | Vue | Tailwind)
Remote
Riverbed Technology
Senior Laravel Developer
Wilmington, NC
GE Software Inc.
Senior Full Stack Developer (PHP | Vue | DDD)
Charleston, SC
MassageBook