lukevincent / laravel-govuk-preset
A Laravel preset for https://github.com/alphagov/govuk-frontend, including optional auth scaffolding.
Installs: 1 136
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:HTML
This package is auto-updated.
Last update: 2025-03-07 03:57:58 UTC
README
A Laravel front-end scaffolding preset for GOV.UK Frontend.
GOV.UK Frontend contains the code you need to start building a user interface for government platforms and services.
Current version: GOV.UK Frontend 2.11.0
Usage
- Fresh install Laravel >= 5.8.0 and cd to your app.
- Install this preset via
composer require lukevincent/laravel-govuk-preset
. Laravel will automatically discover this package. No need to register the service provider. - Use
php artisan preset govuk
for the basic GOV.UK Frontend preset OR usephp artisan preset govuk-auth
for the basic preset, auth route entry and GOV.UK Frontend auth views in one go. (NOTE: If you run this command several times, be sure to clean up the duplicate Auth entries inroutes/web.php
) npm install && npm run dev
- Configure your favorite database (mysql, sqlite etc.)
php artisan migrate
to create basic user tables.php artisan serve
(or equivalent) to run server and test preset.
GOV.UK Frontend resources
A Quick-start guide is provided by the GOV.UK Frontend maintainers. As well as a design system containing background research, styles, components, patterns and community links.