GithubHelp home page GithubHelp logo

Comments (8)

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

Can you give us more details about your issue ?

Check also this closed issue: #34

from localization.

aketai avatar aketai commented on June 8, 2024

Very simple step by step:

  1. Fresh installation laravel version 5.2.30
  2. php artisan make:auth
  3. "arcanedev/localization": "0.7.*" - composer update etc...
    all works perfect

But auth validation not working if i place Route::auth(); in

Route::localizedGroup(function () {
    // ADD ALL LOCALIZED ROUTES INSIDE THIS GROUP
    Route::auth(); 
    Route::get('/', 'HomeController@index');
});

If place Route::auth(); outside of localizedGroup - validation is work!

Please help

from localization.

aketai avatar aketai commented on June 8, 2024

Hi arcanadev,

Any news regarding my issue?

from localization.

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

Hi @aketai,

Sorry but i need some time to test it in a laravel project and debug it.

For the time being, you can extract the Route::auth() outside of Route::localizedGroup() if it's urgent.

from localization.

 avatar commented on June 8, 2024

came across this today. quite easy to get around actually, you just need to manually define your auth routes rather than using the helper and then update the auth views.

Route::transGet('routes.login', [
    'as'   => 'login',
    'uses' => 'Auth\AuthController@showLoginForm',
]);
Route::transPost('routes.login', [
    'as'   => 'login',
    'uses' =>  'Auth\AuthController@login',
]);

// etc...

Then in your auth view you can do something like

<form role="form" method="POST" action="{{ route('login') }}">

from localization.

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

Yeah, this is what i do in all my projects (avoiding the Route::auth() method).

Thanks @digitalturtle for clarifying it.

from localization.

 avatar commented on June 8, 2024

@arcanedev-maroc can you give an example of what your routes setup looks like for the password reset auth routes? i'm having issues getting this to work with the /password/reset/{token?} route

from localization.

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

The example for auth routes is here: #58

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.