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

Stormlight

Joined Mar 28, 2024 Last seen Aug 31, 2025
Posts 3 Comments 21

⁨Stormlight⁩'s Comments

Newest Top
Newest Top
    1. 🔧 Development
    2. Can i use Tailwindcss?
    Stormlight Stormlight Apr 10, 2024

    Yeah, you should be able to use TailwindCSS.

    If it's a new Waterhole project, there is a CSS entry point at resources/css/waterhole/app.css. If it's a Laravel project and you pulled in Waterhole as a package, the CSS entry point would be here resources/css/app.css. Assuming all settings were kept as default.

    However, I'm not sure if Tailwind classes would interfere with Waterhole's Design System. Maybe @Toby could clarify that.

    Edit: Unless I misunderstood your question, and you wanted to use TailwindCSS instead of Waterhole's Design System?

    Also, you can add your own CSS files via Waterhole\Extend, see docs for more info.

    Reply Actions
    1. 🔧 Development
    2. Laravel Integration
    Stormlight Stormlight Apr 5, 2024
    In reply to Stormlight Stormlight
    Stormlight Stormlight Apr 3, 2024
    Thanks for clarifying that @Toby! I had two more questions: How can we implement conditional rendering of components based on the route. In my case, I’m trying to remove the ‘search’ component from t...

    I was able to figure out my question above regarding conditional rendering. If anyone else is interested, I just removed the 'search' component and added my own custom component (which has the logic for the conditional rendering) via the WaterHoleServiceProvider. Waterhole docs for reference.

    // WaterholeServiceProvider
    
    use App\View\Components\Navigation;
    
    public function extend(): void
    {
        Extend\Header::remove('search');
        Extend\Header::add(Navigation::class); // my own custom Blade component
    }
    // My custom blade view (navigation.blade.php)
    
    <div>
        {{-- Other nav links if needed --}}
        @if (Route::is('waterhole.*'))
            <x-waterhole::HeaderSearch />
        @endif
    </div>
    1 Show ⁨1⁩ ⁨reply⁩
    Reply Actions
    1. 🔧 Development
    2. Laravel Integration
    Stormlight Stormlight Apr 3, 2024
    In reply to Toby Toby
    Toby Toby Waterhole Founder Apr 3, 2024
    Hey @Stormlight, The Waterhole project skeleton is really just a slightly stripped-down version of the Laravel 10 skeleton (no Vite, no API routes, etc.) with some default configuration in place – us...

    Thanks for clarifying that @Toby! I had two more questions:

    1. How can we implement conditional rendering of components based on the route. In my case, I’m trying to remove the ‘search’ component from the Header on any routes that aren’t prefixed with “/forums” (my waterhole path is set to "forums").
    // Inside the WaterholeServiceProvider extend function
    
    if (!Route::is('forums.*')) {
        Extend\Header::remove('search');
    }

    I don’t think we can access routes in a ServiceProvider (nor is it good practice?) since that’s what’s bootstrapping the application, though I might be mistaken. In normal situations, we would have this conditional in our blade template files. However, I don’t think we have access to modify the Waterhole blade template files (unless I missed something in the Waterhole docs).

    See my response in the post below for the solution.

    1. How should we go about adding relationships to the User model with my own generated models. In the docs, it’s mentioned to use Laravel’s resolveRelationUsing method. However, the Laravel docs mention that this is not recommended for normal application development. Is it then better to just create another User model and extend the Waterhole\Models\User class?
    1 Show ⁨1⁩ ⁨reply⁩
    Reply Actions
    1. Blog
    2. Waterhole 0.4
    Stormlight Stormlight Apr 3, 2024

    Awesome work @Toby! The more familiar I get with Waterhole, the more I'm liking it 👍️

    ❤️ 1 Love Loading...
    Reply Actions
    1. 🔧 Development
    2. Waterhole Font - Baton
    Stormlight Stormlight Apr 1, 2024
    In reply to Toby Toby
    Toby Toby Waterhole Founder Apr 1, 2024
    Hey @Stormlight! Baton is a premium font by the Fatype Foundry, so you need to purchase a license to use it. I think it's the best font ever 😍

    I see, thanks @Toby! Is Waterhole using the entire Baton family or just a specific type?

    1 Show ⁨1⁩ ⁨reply⁩
    Reply Actions
© 2025 Waterhole Pty Ltd
  • Product
    • Pricing
    • Releases
    • Roadmap
    • Demo
  • Resources
    • Documentation
    • Support
    • Experts
    • Blog
  • Community
    • Community
    • Twitter
    • GitHub
  • Company
    • Terms & Privacy
    • Software License