Inertia::location() in laravel with vue js
I want to use flash message with Inertia::location(). Please help me !
Why i want to use it? Because i have problem between login page to home page (scrolling is doesn't work)
I use Inertia::location() when my login is success, so when it redirect to home page, my scrolling is working fine but i can not access flash message from controller laravel even i have set it ( session()->flash('success','Login success') before this line of code ( return Inertia::location('home'); ).
or you can help me with stuck of scrolling in my home page (all page when login success, if i reload the browser. it works fine) because if i use ( return redirect()->route('home')->with('success','login success') ) , I can get flash message from props of vue js.
My code below here :
session()->flash('success',__('Login Successfully')); return Inertia::location('admin.home');
// if i use this code, it works but i can not scrolling (stuck). // return redirect()->route('admin.home')->with('success',__('Login Sucessfully'));
Please or to participate in this conversation.