Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Logged In Redirection Bundle Laravel Package

a5sys/logged-in-redirection-bundle

View on GitHub
Deep Wiki
Context7

LoggedInRedirectionBundle

The bundle redirect the logged in user to an url if he attempt to go to an url.

The use case:

  • A user bookmarks the login page and always get the login form even if he is logged in. So we redirect to the homepage.

Composer

Use composer to get the bundle

composer require "a5sys/logged-in-redirection-bundle"

Activate the bundle

In the AppKernel, activate the bundle

public function registerBundles()
    {
        $bundles = array(
            ...
            new A5sys\LoggedInRedirectionBundle\LoggedInRedirectionBundle(),

The configuration

You have to add the configuration to your config.yml:

logged_in_redirection:
    route_name: "fos_user_security_login" #the name of the route to check
    redirect_route_name: "homepage" # the name of the route to redirect
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
besmartand-pro/php-quality-config
sentix/ai-chatbot
terminal42/code-quality-tools
codifyo/ts-generator-bundle
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity