45 lines
1.6 KiB
PHP
45 lines
1.6 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Http\Controllers\Web;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Support\Seo\SeoFactory;
|
|
use Illuminate\Http\Request;
|
|
use Inertia\Inertia;
|
|
use Inertia\Response;
|
|
|
|
final class GroupQuickstartPageController extends Controller
|
|
{
|
|
public function __invoke(Request $request): Response
|
|
{
|
|
$canonical = route('help.groups.quickstart');
|
|
$seo = app(SeoFactory::class)
|
|
->collectionPage(
|
|
'Groups Quickstart — Skinbase',
|
|
'A fast, creator-friendly Groups quickstart for Skinbase. Learn when to use a Group, create one, invite members, and publish your first Group artwork with correct contributor credit.',
|
|
$canonical,
|
|
)
|
|
->toArray();
|
|
|
|
$seo['og_type'] = 'article';
|
|
|
|
return Inertia::render('Group/GroupQuickstartPage', [
|
|
'title' => 'Groups Quickstart',
|
|
'description' => 'The fastest way to understand Groups, create one, invite members, and publish your first collaborative artwork with correct contributor credit.',
|
|
'seo' => $seo,
|
|
'links' => [
|
|
'groups_directory' => route('groups.index'),
|
|
'create_group' => route('studio.groups.create'),
|
|
'group_studio' => route('studio.groups.index'),
|
|
'full_documentation' => route('help.groups'),
|
|
'faq' => route('help.groups.faq'),
|
|
'help_home' => route('help'),
|
|
],
|
|
'auth' => [
|
|
'signed_in' => $request->user() !== null,
|
|
],
|
|
])->rootView('collections');
|
|
}
|
|
} |