lopatin96 / laravel-welcome-page
Laravel welcome page
Installs: 2 197
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:Blade
Requires
- php: >=8.0
Requires (Dev)
- orchestra/testbench: ^8.0
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"