lopatin96/laravel-welcome-page

This package is abandoned and no longer maintained. No replacement package was suggested.

Laravel welcome page

1.0.32 2023-09-30 19:31 UTC

README

Publish config

php artisan vendor:publish --tag="laravel-welcome-page-config"

Select which variants of sections in you want. You can do it in config/welcome-page.php:

'sections' => [
    'main' => 'v1',
    'others' => [
        [
            'name' => 'how-it-works',
            'variant' => 'v1',
        ],
        [
          'name' => 'call-to-action',
          'variant' => 'v2',
        ],

by specifying variants of sections and their orders. Also, choose primary and secondary colors and add their to safelist key in tailwind.config.js:

safelist: [
    'from-zinc-100',
    'to-sky-300',
    'text-sky-600',
    'text-sky-300',
    'bg-sky-600',
    'bg-sky-300',
    'bg-red-500',
    'text-link',
],

Publish localization

php artisan vendor:publish --tag="laravel-welcome-page-lang"

Add local strings in lang/vendor/welcome-page/en/.php for selected sections.

Publishing

Localization

php artisan vendor:publish --tag="laravel-welcome-page-lang"

Views

php artisan vendor:publish --tag="laravel-welcome-page-views"

Config

php artisan vendor:publish --tag="laravel-welcome-page-config"