Skip to main content
Pricing Community Docs Get Started GitHub My Account
Community
Search
Log In
Log In Sign Up
K

Kate

Joined Feb 27, 2024 Last seen May 13, 2024
Posts 1 Comments 5

⁨Kate⁩'s Posts

Newest Top
Newest Top
K Kate Feb 27, 2024

Authentication w/ existing Laravel app

Actions

Hi,
installed Laravel and Waterhole fluently, but stuck on the last part.
Where exactly do I have to add this piece of code. Add the following to "a Service Provider". I know where Service Providers are but don't use them

Extend\ForumRoutes::add(function () {
    Route::name('login')->get(
        'login',
        fn() => redirect()
            ->setIntendedUrl(url()->previous())
            ->route('login'),
    );
});

When i add it to boot in the AppServiceProvider i get an error

Illuminate\Routing\Route::name() cannot be called statically
6 ⁨6⁩ ⁨comments⁩
© 2025 Waterhole Pty Ltd
  • Product
    • Pricing
    • Releases
    • Roadmap
    • Demo
  • Resources
    • Documentation
    • Support
    • Experts
    • Blog
  • Community
    • Community
    • Twitter
    • GitHub
  • Company
    • Terms & Privacy
    • Software License