Toby's Comments
-
- Ideas
- Support for Laravel 11?
-
- Ideas
- Support for Laravel 11?
Toby Waterhole FounderApr 21, 2024 In reply to StormlightStormlightApr 19, 2024 Hey Toby, I'm assuming 0.4.8 is yet to be released? As composer update doesn't pull in that version nor does starting a new project via composer create-project waterhole/waterhole path/to/forum.No it was released on 16 April! Maybe try clearing your Composer cache with
composer clear-cache
? -
- Ideas
- Support for Laravel 11?
Toby Waterhole FounderApr 16, 2024 In reply to Ryan PittsRyan PittsApr 8, 2024 Hey @Toby, just to try and test things out, i forked your repo and upgraded things to work with Laravel 11. I'm just having trouble with getting the assets CSS and js to load. I've not done much with...Laravel 11 support has been added in 0.4.8
@Ryan Pitts Hopefully you're able to switch back over to the official package - let me know if any issues. But for future reference, the command to compile Waterhole's assets is
npm run prod
. -
Toby Waterhole Founder
Apr 16, 2024 In reply to Tyler DuPontTyler DuPontApr 15, 2024 I noticed that when looking to tag people on my discussion board you cannot use spaces and there isn't a way to scroll on the suggested list. Not sure if it is possible to tag the person I am trying...Hey @Tyler DuPont, this is a great point. I've created an issue for this here which will aim to fix in a future version. As a workaround, if you're on a Mac you can hold down the Option key as you press the Space bar to continue filtering suggestions.
-
Answer Toby Waterhole FounderApr 16, 2024 This has been fixed in 0.4.8.
-
Toby Waterhole Founder
Apr 11, 2024 Thanks for the ideas @Tyler DuPont! Would definitely like to implement these at some point.
-
- Development
- Laravel Integration
Toby Waterhole FounderApr 11, 2024 In reply to StormlightStormlightApr 5, 2024 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 f...Yep, that's right about conditional rendering - there's a note on this in the Extenders doc. The way you've done it works well, or an alternative would be to replace the
search
component with a closure and conditionally return the search component:use Waterhole\View\Components\HeaderSearch; Extend\Header::replace('search', fn() => Route::is('waterhole.*') ? HeaderSearch::class : null);
Regarding adding relationships to Waterhole's User model, using
resolveRelationUsing
is fine when you're interacting with a package like Waterhole – the Laravel docs are talking about "normal application development" as in within your own app's codebase. Creating your own subclass of the Waterhole User model is also a nice idea, although I'm not 100% certain it will work in all cases as I believe some instances of the User model are hardcoded throughout Waterhole's codebase – I will definitely look at making this configurable in the future. -
- Development
- Laravel Integration
Toby Waterhole FounderApr 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 – use the Waterhole User model for auth, and add a service provider for Waterhole customizations.
Whether you start with the Laravel skeleton and pull in Waterhole, or start with the Waterhole skeleton and pull in things from the Laravel skeleton as needed, you'll end up at pretty much the same place. So do whatever you're most comfortable with
As you've discovered, you can build new pages within the Waterhole layout using the
<x-waterhole::layout>
component, or if you just want the CSS (and not the layout) you can use<x-waterhole::html>
. A list of all Waterhole components is available in the class reference.See here for Laravel 11 discussion - we'll stay on top of future Laravel releases relatively quickly.
-
- Ideas
- Support for Laravel 11?
Toby Waterhole FounderApr 3, 2024 Hi @Ryan Pitts, thanks for your interest in Waterhole! Laravel 11 support is planned, it should be pretty straightforward and I hope to look at it in the next week or so.
-
- Development
- Private/Invite-Only Channels?
Toby Waterhole FounderApr 2, 2024 In reply to Greg GarrisonGreg GarrisonApr 2, 2024 Ahh - gotcha. Great. We'll definitely take advantage of that. I think at some point we're also going to want something like a private inbox for individual, one-to-one messaging. Is anything like that...Ah I see - private messaging is definitely on the roadmap as a core feature! Likely in one of the next few 0.x releases. The brainstorming in this topic is more for private channels (which are not on the roadmap) rather than private messages. The messaging feature will be separate from channels.
-
- Development
- Waterhole Font - Baton
Toby Waterhole FounderApr 2, 2024 In reply to StormlightStormlightApr 1, 2024 I see, thanks @Toby! Is Waterhole using the entire Baton family or just a specific type?The Waterhole site uses the Normal Regular + Medium + Bold variants, and the headings on the homepage are Condensed Black.
-
- Development
- Waterhole Font - Baton
Answer Toby Waterhole FounderApr 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
-
- Development
- Private/Invite-Only Channels?
Toby Waterhole FounderApr 1, 2024 In reply to Greg GarrisonGreg GarrisonApr 1, 2024 Hey Toby - is there any update on this? I see that on the homepage it mentions "public and private discussion" as features. I didn't see any documentation about how the "private" side of that works th...Hey @Greg Garrison, "private discussion" on the homepage is referring to the ability to set up user groups and permissions for different parts of the community. Let me know if you have any questions about how it works!
-
Toby Waterhole Founder
Mar 29, 2024 In reply to Greg GarrisonGreg GarrisonMar 29, 2024 One other idea along some of the same lines... I'm currently evaluating Waterhole to serve as a forum for a school and replace a Facebook group. I'm the developer but all of the real stakeholders aren...Hi @Greg Garrison, thanks for considering Waterhole and posting your thoughts here. The Free Trial terms state:
Free Trial: Any person may use the Software in an environment that is purely for the purposes of development and client preview, and only accessible by a restricted number of users (like on a personal computer, on a server in a network with restricted access, or when protecting a staging website with a password that only a restricted number of users know).
If I'm understanding you correctly – setting up a staging environment, and giving access to the relevant stakeholders for feedback before a production launch, would be compliant with this!
-
- Development
- Authentication w/ existing Laravel app
Toby Waterhole FounderMar 25, 2024 In reply to KateKateMar 25, 2024 Screenshot 2024-03-25 at 23.06.50.pngAh, I see - that link is a part of Waterhole by default so I wasn't sure if it was the one you were talking about. But, it only shows up if there is a route named
waterhole.register
- and if you have set theallow_registration
config tofalse
(as you should when setting up the Laravel integration), then that route won't exist.The solution is to register your own
register
route to redirect to your app's registration page, similar to what should already be doing for thelogin
route:Extend\ForumRoutes::add(function () { Route::name('register')->get( 'register', fn() => redirect() ->setIntendedUrl(url()->previous()) ->route('register'), ); });
@Ryan Pitts Can I clarify, what do you actually see when you navigate to the forum while logged in? The current behaviour is that Waterhole won't create the user immediately, but will present a pre-filled registration form allowing the user to customise their username. It shouldn't be possible to see a login screen if
password_enabled
is false and there are no authenticationproviders
in your config.