Comments (8)
UPDATE:
Here's a quick fix:
Fortify::loginView(function (Request $request) {
return inertia('Auth/Login')->toResponse($request);
});
from fortify.
I came to leave this exact issue. Thanks @classjunky
from fortify.
I have the same problem, any official solution?
from fortify.
@leo95batista The solution I provided above works just fine, you can see that on https://xp.amirrami.com.
Although I wish for a simpler solution, since I, like most Laravel developers like to keep it simple.
from fortify.
Feel free to pr, thanks.
from fortify.
Could you tell me how to exactly config Inertia in FortifyServiceProvider? This is how i have FortifyServiceProvider
from fortify.
This solution is causing
ErrorException strpos() expects parameter 1 to be string, object given
from \vendor\laravel\framework\src\Illuminate\View\ViewName.php:17
for me
Edit: Updating composer dependencies AND using double quotes on "Auth/Login" has fixed it
from fortify.
I wonder if this is what you're looking for... maybe this could help you or someone out there :)
Using Inertia alone...
Fortify::loginView(function () {
return Inertia::render('Auth/Login');
});
OR
Using Ziggy with Inertia...
Fortify::loginView(function () {
return route('login');
});
Given that route('login')
is declared as...
//routes/web.php
Route::get('login', [LoginController::class, 'create'])->name('login');
//Auth/LoginController.php
public function create(Request $request, Router $router)
{
return Inertia::render('Auth/Login');
}
from fortify.
Related Issues (20)
- Accept pull request for adding named route for two-factor auth challenge? HOT 1
- Fortify HOT 2
- The route name for registration is not declared. HOT 2
- difficulties in updating the database schema HOT 1
- Laravel 10.10 - Cast password "hashed" HOT 3
- login limiter doesn't work actually HOT 1
- When Session based Guard is not used Logout fails HOT 3
- Integrate Precognition Into Fortify Route HOT 1
- Route [logout] not defined after changing the app_env from local to production
- Without override the PasswordResetLinkController@store we cannot add reCAPTCHA HOT 1
- Name all routes for Ziggy support when enableViews is false HOT 2
- Paths override with dot in route name does not work HOT 3
- Fortify http request methods for routes requiring multipart/form-data HOT 1
- Support for laravel passport HOT 2
- Provide "Don't ask me again on this computer" feature HOT 3
- Implementation for ActivityLogs HOT 1
- Custom Rate Limiter HOT 1
- Confusion between the username/email field in the database and the username/email field in the request (form) HOT 4
- No error message on expired token HOT 4
- Can we get a way to add additional validation rules to LoginRequest?
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 fortify.