Skip to content

Commit

Permalink
Feat: Enable socialstream features
Browse files Browse the repository at this point in the history
Feat: Readme updates
  • Loading branch information
nikspyratos committed Mar 23, 2024
1 parent db9e4de commit d8c6eca
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
* [Contributing](#contributing)
<!-- TOC -->

My [TALL stack](https://tallstack.dev/) boilerplate for Laravel micro-SaaS/indie hackers.
My [TALL stack](https://tallstack.dev/) boilerplate for Laravel SaaS builders.

The Toybox has a bit of everything - a grand tour of the Laravel PHP world, so to speak. Let's have some fun!

Expand All @@ -80,6 +80,7 @@ Even if you don't need another boilerplate, perhaps the list of [recommended ser
Principles

- **Free, both ways**: There's no need to pay anything for this - I build it because I use it! You can also do whatever you'd like.
- **Self-containment**: With minimal extra commands, you should be able to clone this repo and get something running.
- **Tiny but mighty**: Minimising the different technologies used, using simpler & standardised alternatives to common tools.
- **Don't reinvent the wheel**: Use as much of the official & unofficial Laravel ecosystem where applicable. Use popular (i.e. sustainable, gets regular updates) tools & packages where applicable instead of rewriting boilerplate logic from scratch. We're in Laravel, not JS!
Expand Down
19 changes: 19 additions & 0 deletions config/socialstream.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

declare(strict_types=1);

use JoelButcher\Socialstream\Features;
use JoelButcher\Socialstream\Providers;

return [
Expand All @@ -11,4 +12,22 @@
// Providers::github(),
],
'component' => 'socialstream::components.socialstream',
'features' => [
Features::generateMissingEmails(),
Features::createAccountOnFirstLogin(),
// Features::globalLogin(),
Features::authExistingUnlinkedUsers(),
Features::rememberSession(),
Features::providerAvatars(),
Features::refreshOAuthTokens(),
],
'home' => '/dashboard',
'redirects' => [
'login' => '/dashboard',
'register' => '/dashboard',
'login-failed' => '/login',
'registration-failed' => '/register',
'provider-linked' => '/user/profile',
'provider-link-failed' => '/user/profile',
],
];

0 comments on commit d8c6eca

Please sign in to comment.