A ready-to-use template for new projects leveraging Laravel, Livewire, and Flux (aka FluxUI). Use this repository as a GitHub template to spin up new projects quickly with a preconfigured environment.
- Laravel 10+ Modern PHP framework for fast, elegant web applications.
- Livewire Build dynamic interfaces using server-driven components.
- Flux (FluxUI) Streamlined frontend utilities integrated with Livewire.
- PHP 8.1+ (with necessary extensions, e.g.
mbstring
,openssl
,pdo_mysql
) - Composer 2+
- Node.js 16+ and npm 8+ (or Yarn)
- Database (MySQL, PostgreSQL, or SQLite)
- Local environment (e.g. Laravel Herd or Docker)
-
Clone or Use Template
- Click Use this template on GitHub to create a new repo, or clone/fork this repository.
- If you use the template, you can skip the next step.
git clone git@github.com:portseif/fluxui-starter.git cd fluxui-starter
-
Install & Configure
composer install npm install cp .env.example .env php artisan key:generate php artisan migrate npm run dev php artisan serve
- Update
.env
for database, mail, etc. as needed.
- Update
-
Livewire Components
php artisan make:livewire ExampleComponent
- Reference in a Blade file:
<livewire:example-component />
module.exports = {
content: [
'./resources/**/*.blade.php',
'./resources/**/*.js',
'./vendor/livewire/flux/**/*.blade.php',
],
theme: {
extend: {},
},
plugins: [],
}
@tailwind base;
@tailwind components;
@tailwind utilities;
fluxui-starter/
┣ app/
┃ ┣ Http/Controllers/
┃ ┣ Models/
┃ ┗ ...
┣ resources/
┃ ┣ css/
┃ ┣ js/
┃ ┗ views/
┣ public/
┣ vendor/
┣ composer.json
┣ package.json
┣ tailwind.config.js
┗ ...
- Fork this repository.
- Create a feature branch.
- Submit a pull request.
All contributions are welcome.
This project is open-sourced under the MIT License - see the LICENSE file for details.