Try Depot: Bring ultra-fast, remote Docker builds directly to your Laravel workflow

Ui

laravel/ui image

Ui stats

Downloads
64.5M
Stars
2,294
Open Issues
0
Forks
447

View on GitHub →

Laravel UI utilities and presets.

Laravel UI Package Summary

Overview

Laravel UI is a straightforward package that offers basic frontend scaffolding primarily using Bootstrap, with support for Vue and React. It's designed to help kickstart the development of Laravel applications by providing an initial setup for authentication and frontend resources. While it supports the latest Laravel versions, it is recommended for legacy projects, with newer projects encouraged to explore Laravel Breeze or Laravel Jetstream.

Key Features

  • Frontend Scaffolding: Quick setup for Bootstrap, Vue, and React.
  • Authentication: Includes templates for login and registration functionalities.
  • Compatibility: Supports various versions of Laravel, from 5.8 up to the latest.
  • Integration with Vite: Uses Vite for compiling CSS and JavaScript, enhancing developer experience with fast build times.
  • Extensible: Allows adding custom methods via macros to the UiCommand class.

Installation and Usage

To install the package, run:

composer require laravel/ui

You can then generate scaffolding for Bootstrap, Vue, or React:

php artisan ui bootstrap
php artisan ui vue
php artisan ui react

For authentication scaffolding:

php artisan ui bootstrap --auth
php artisan ui vue --auth
php artisan ui react --auth

Frontend Development

CSS

Install frontend dependencies with NPM:

npm install

Compile SASS to CSS using Vite:

npm run dev

JavaScript

Install JavaScript dependencies:

npm install

Compile and bundle JavaScript using Vite:

npm run dev

Writing Components

Vue components (or React, if preferred) can be used and customized within your application. Components are easily integrated into Laravel Blade templates.

Additional Information

This package provides a simple yet effective way to scaffold and manage the frontend of a Laravel application, with legacy support and integration of modern tools like Vite for a seamless development experience.

laravel photo

Laravel is a web ecosystem full of delightful tools that are supercharged for developer happiness and productivity.

Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.


Laravel Ui Related Articles

Filament through the years image

Filament through the years

Read article
Laravel Adds an Official Svelte + Inertia Starter Kit image

Laravel Adds an Official Svelte + Inertia Starter Kit

Read article
MongoDB Vector Search in Laravel: Finding the Unqueryable image

MongoDB Vector Search in Laravel: Finding the Unqueryable

Read article
Nimbus: An In-Browser API Testing Playground for Laravel image

Nimbus: An In-Browser API Testing Playground for Laravel

Read article
Why Your Livewire Dashboard Jumps (And How to Fix It) - Laravel In Practice EP18 image

Why Your Livewire Dashboard Jumps (And How to Fix It) - Laravel In Practice EP18

Read article
Statamic 6 Is Officially Released image

Statamic 6 Is Officially Released

Read article
SaaSykit: Laravel SaaS Starter Kit logo

SaaSykit: Laravel SaaS Starter Kit

SaaSykit is a Multi-tenant Laravel SaaS Starter Kit that comes with all features required to run a modern SaaS. Payments, Beautiful Checkout, Admin Panel, User dashboard, Auth, Ready Components, Stats, Blog, Docs and more.

SaaSykit: Laravel SaaS Starter Kit
Harpoon: Next generation time tracking and invoicing logo

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing
Laravel Cloud logo

Laravel Cloud

Easily create and manage your servers and deploy your Laravel applications in seconds.

Laravel Cloud
Tinkerwell logo

Tinkerwell

The must-have code runner for Laravel developers. Tinker with AI, autocompletion and instant feedback on local and production environments.

Tinkerwell
Acquaint Softtech logo

Acquaint Softtech

Acquaint Softtech offers AI-ready Laravel developers who onboard in 48 hours at $3000/Month with no lengthy sales process and a 100 percent money-back guarantee.

Acquaint Softtech
Get expert guidance in a few days with a Laravel code review logo

Get expert guidance in a few days with a Laravel code review

Expert code review! Get clear, practical feedback from two Laravel devs with 10+ years of experience helping teams build better apps.

Get expert guidance in a few days with a Laravel code review