Skip to main content

Laravel Fresh Installation steps

Laravel Setup Guide
Laravel Setup
Tailwind CSS · Livewire · Auth · Free Theme · Step by step
1
Install Laravel required

Install the Laravel installer globally via Composer, then create a new project.

terminal
composer global require laravel/installer laravel new my-app
or with composer directly
composer create-project laravel/laravel my-app cd my-app
Requirements: PHP 8.2+, Composer, Node.js 18+
2
Install Tailwind CSS required

Install Tailwind via npm and configure it for your Blade/Livewire views.

install
npm install -D tailwindcss @tailwindcss/forms @tailwindcss/typography postcss autoprefixer npx tailwindcss init -p
tailwind.config.js — content paths
content: [ './resources/**/*.blade.php', './resources/**/*.js', './app/Livewire/**/*.php', ],
resources/css/app.css
@tailwind base; @tailwind components; @tailwind utilities;
3
Install Livewire required

Install Livewire 3 (latest) via Composer and publish its config.

terminal
composer require livewire/livewire php artisan livewire:publish --config
add to your base blade layout
@livewireStyles ← in <head> @livewireScripts ← before </body>
create a component to test
php artisan make:livewire Counter
Livewire 3 auto-injects scripts — no manual @livewireScripts needed if using the full-page layout directive.
4
Authentication (Laravel Breeze) required

Laravel Breeze is the recommended starter kit — it scaffolds login, register, password reset, and email verification, styled with Tailwind. Choose the Livewire stack for full integration.

install breeze
composer require laravel/breeze --dev php artisan breeze:install
when prompted, select:
livewire # Livewire + Blade stack dark # dark mode support (optional) PHPUnit / Pest # testing framework
migrate and run
php artisan migrate npm install && npm run dev
Alternative: Use php artisan breeze:install blade for pure Blade, or php artisan breeze:install react for Inertia + React.
5
Free Beautiful Themes pick one

Free Tailwind CSS themes that work great with Laravel + Livewire. Click a card to learn more.

Flowbite
UI kit · 600+ components
free tierTailwinddark mode
flowbite.com ↗
Preline UI
Open-source · 400+ components
freeTailwinddark mode
preline.co ↗
daisyUI
Plugin · 30+ themes
freeTailwind plugin
daisyui.com ↗
shadcn (Blade port)
Copy-paste components
freeTailwind
blade-shadcn ↗
Windmill Dashboard
Admin template · MIT
freeTailwinddark mode
windmill ↗
Mosaic Lite
Admin dashboard · MIT
freeTailwind
cruip.com ↗
example — install daisyUI (easiest)
npm install daisyui
add to tailwind.config.js plugins array
plugins: [require('daisyui')], daisyui: { themes: ['light', 'dark', 'cupcake'] },
example — install Flowbite
npm install flowbite // tailwind.config.js plugins: [require('flowbite/plugin')], content: [..., './node_modules/flowbite/**/*.js'],
6
Run everything required

Start the dev server (Vite), the queue worker (optional), and Laravel's built-in server — or use Herd/Valet.

two terminals
# Terminal 1 npm run dev # Terminal 2 php artisan serve
production build
npm run build php artisan config:cache php artisan route:cache php artisan view:cache
Tip: Use Laravel Herd (free) on macOS/Windows to skip php artisan serve entirely — zero config local domains.

Comments

Popular posts from this blog

Future devices

    मैं एक   भविष्य के टेक डिवाइस   का लॉजिक / वायर-फ्रेम (circuit block) डायग्राम दे रहा हूँ — तस्वीर नहीं, पर पूरा कनेक्शन-लेआउट, सिग्नल-लेंथ, इंटरफेस और स्टेट-मैशीन लॉजिक लिखकर। आप इसे सीधे पढ़कर सर्किट-डिजाइन या सिस्टम-आर्किटेक्चर में आगे बढ़ा सकते हैं। मैं एक काल्पनिक — पर व्यावहारिक — डिवाइस चुना है: “Personal Ambient AI Hub (PAAH)”  — एक निजी, ऊर्जा-संचालित, edge-AI + multi-sensor, secure neuro & external interface वाला डिवाइस जो AR/ambient services, contextual computing और secure communications उपलब्ध कराता है. नीचे तीन भागों में दिया गया है: (A) ASCII block / wireframe diagram, (B) प्राथमिक सिग्नल/बसर, पावर और प्रोफाइल, (C) लॉजिक फ्लो / स्टेट मशीन + नोट्स और संभावित कंपोनेंट्स। A. Block / Wireframe Diagram (ASCII) pgsql Copy code + -----------------------------+ | External Power / WPT | | (USB-C PD / Resonant WPT) | + ------------...

BUy Product From China

Import Guide China se products kaise khareedein Step-by-step complete guide · Best websites · Precautions in Hindi 8 Steps 10+ Best Websites 12 Precautions ⚠️ Zaroori Savdhaniyan (सावधानियां) China se shopping karte waqt in baaton ka dhyan rakhein Product Buying Guide Laptop (₹30K) Console (₹4K) Website List Website List Filter: Sab websites Retail (1 piece) Wholesale / B2B Fashion Ele...

The Integrated Power Core: A Conceptual Framework for a 20-Year Vehicular Power Source

  The Integrated Power Core: A Conceptual Framework for a 20-Year Vehicular Power Source The Horizon of Power Generation: Defining the Challenge The modern world is built upon the foundation of accessible, dense, and portable energy. For over a century, the internal combustion engine, powered by liquid fossil fuels, has been the undisputed champion of personal mobility. However, the environmental consequences of this paradigm and the inherent limitations of electrochemical storage have catalyzed a search for a revolutionary successor. The challenge is not merely to create a more efficient or cleaner power source, but to fundamentally redefine the relationship between a vehicle and its energy supply. This report outlines a conceptual framework for a vehicular power source designed to meet an exceptionally ambitious performance target: providing sufficient energy for 20 years of typical operation within a volume of just one liter. This goal necessitates a departure from all conventio...