Comments (8)
Can you give us more details about your issue ?
Check also this closed issue: #34
from localization.
Very simple step by step:
- Fresh installation laravel version 5.2.30
- php artisan make:auth
- "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.
Hi arcanadev,
Any news regarding my issue?
from localization.
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.
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.
Yeah, this is what i do in all my projects (avoiding the Route::auth()
method).
Thanks @digitalturtle for clarifying it.
from localization.
@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.
The example for auth routes is here: #58
from localization.
Related Issues (20)
- Translated URL not always working HOT 7
- Problem with language selector with parameters HOT 5
- Symfony\Component\Debug\Exception\FatalThrowableError : Class 'Localization' not found HOT 8
- Current language is not been saved in a session HOT 1
- Laravel 7.0 HOT 1
- Translated urls from a Laravel Package
- do not install with laravel 8 HOT 1
- PHP 8 Support?
- How to get it working with Expose? HOT 2
- Non-static method Arcanedev\Localization\Localization::setLocale() should not be called statically HOT 1
- Route Cache HOT 1
- Question about my language
- Signed routes - 401 Invalid Signature HOT 1
- Bump Laravel 9 HOT 2
- Why don't change of the prefix set a new local/language?
- Localization::localesNavbar() not working in Laravel 9 HOT 1
- JsonSerializable::jsonSerialize() issues on php 8.1
- Laravel 10 support
- Laravel 10 support HOT 1
- mcamara localization not working in 1st reload Laravel
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from localization.