GithubHelp home page GithubHelp logo

help pls about localization HOT 11 CLOSED

arcanedev avatar arcanedev commented on June 8, 2024
help pls

from localization.

Comments (11)

arcanedev-maroc avatar arcanedev-maroc commented on June 8, 2024

Try to change the order and see if it's gonna resolve your issue:

Route::group(['middleware' => 'web'], function () {
    Route::localizedGroup(function () {
        Route::get('/', 'Frontend\HomeController@home')->name('frontend.index');

        Route::get('login', 'Auth\AuthController@getLogin');
    });
});

from localization.

 avatar commented on June 8, 2024

Thanks it works :)

from localization.

 avatar commented on June 8, 2024

hmm now i cant login when i try to login it refresh the page instead

from localization.

arcanedev-maroc avatar arcanedev-maroc commented on June 8, 2024

Did you defined the post route for login ?

from localization.

 avatar commented on June 8, 2024

yes i have working admin panel but when i use Route::localizedGroup i cant login to my dashboard.

from localization.

arcanedev-maroc avatar arcanedev-maroc commented on June 8, 2024

What is the real issue ? you can't post the credentials ? did you get any errors ?

Do you need a localized admin panel ? Try to put all the auth & admin routes outside the Route::localizedGroup().

Please give more details to identify the issue.

from localization.

 avatar commented on June 8, 2024

Well when i try to login to my site its just redirecting back to the login page without any errors.

from localization.

arcanedev-maroc avatar arcanedev-maroc commented on June 8, 2024

The page doesn't refresh, it's a 302 redirection when you hit submit (caused by redirect()->back() i think).

EDIT :
Can you debug this and see what happen : https://github.com/laravel/framework/blob/5.2/src/Illuminate/Foundation/Auth/AuthenticatesUsers.php#L57-L86

Try to check if the Route::localizedGroup() affects all the post forms or only the login form.

from localization.

 avatar commented on June 8, 2024

I have put all the auth routes outside the Route::localizedGroup() now its working.

from localization.

arcanedev-maroc avatar arcanedev-maroc commented on June 8, 2024

Glad that you've solved your issue, i'm going to clean this discussion to keep your work "private".

Thanks for using the package 👍

from localization.

 avatar commented on June 8, 2024

Thank you for making our development easier.

from localization.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.