Laravel Cloud is here! Zero-config managed infrastructure for Laravel apps. Deploy now.

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

Going Real-Time with Reverb - Laravel In Practice EP17 image

Going Real-Time with Reverb - Laravel In Practice EP17

Read article
PHP DebugBar v3 is released image

PHP DebugBar v3 is released

Read article
Manage Waitlists in Laravel with Laravel Waitlist image

Manage Waitlists in Laravel with Laravel Waitlist

Read article
Building a Dynamic Dashboard - Laravel In Practice EP14 image

Building a Dynamic Dashboard - Laravel In Practice EP14

Read article
Backpack v7 is Launched - See What's New image

Backpack v7 is Launched - See What's New

Read article
The Practical Guide to Laravel + Nova on OpenAI Codex Web image

The Practical Guide to Laravel + Nova on OpenAI Codex Web

Read article
Curotec logo

Curotec

World class Laravel experts with GenAI dev skills. LATAM-based, embedded engineers that ship fast, communicate clearly, and elevate your product. No bloat, no BS.

Curotec
Kirschbaum logo

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum
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
Lucky Media logo

Lucky Media

Get Lucky Now - the ideal choice for Laravel Development, with over a decade of experience!

Lucky Media
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
PhpStorm logo

PhpStorm

The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

PhpStorm