CodingTricks LogoCodingTricks
HomePostsTipsCopy/PasteLinksContact UsAbout Us
2024 - 2025 CodingTricks.co | All rights reserved
Privacy PolicyTerms of Service
Getting Started Laravel Breeze with Shadcn: Now Easier

Getting Started Laravel Breeze with Shadcn: Now Easier

Posted by

kamlesh paul

on

Dec 14, 2024

| 2 min read

Last updated on : Dec 14, 2024

News
181 views

If you’ve admired the Shadcn UI library for its beautiful and user-friendly components, you’ll be thrilled to know that integrating it with Laravel has just become significantly easier. The official Shadcn Twitter account recently announced a major update that simplifies the setup process with Laravel Breeze. With just one command, you can now seamlessly integrate Shadcn into your Laravel projects. Here’s what you need to know:

#Table of contents

  • New Update Overview
  • Getting Started with Shadcn and Laravel Breeze
  • Faq
    • Does this override the default components within Breeze with Shadcn ones?

#New Update Overview

Shadcn now supports Laravel Breeze out of the box. The new npx command makes the initial setup a breeze. Simply run:

npx shadcn@latest init

This command sets up everything you need to start using Shadcn with Laravel Breeze, streamlining the process and saving you time.

Here’s how you can integrate those steps into your article:

#Getting Started with Shadcn and Laravel Breeze

To get started with integrating Shadcn into your Laravel Breeze project, follow these steps:

  1. Create a New Laravel Project:

Run the following command to set up a new Laravel project with TypeScript, Breeze, React stack, and Git:

laravel new my-app --typescript --breeze --stack=react --git --no-interaction
  1. Navigate to Your Project Directory:
cd my-app
  1. Initialize Shadcn:
npx shadcn@latest init

This command sets up Shadcn in your project, adding its components alongside the existing Breeze components.

  1. Add Shadcn Components: For example, to add a Shadcn button component, run:
npx shadcn@latest add button
  1. Explore Shadcn Components: You can check out all available Shadcn components and their documentation here. Use these components in your project as needed.

For more details on the update, check out the official announcement on Shadcn’s Twitter.


#Faq

#Does this override the default components within Breeze with Shadcn ones?

No, the new Shadcn update does not override the default components in Laravel Breeze. Instead, it adds Shadcn components to your project alongside the existing Breeze components. This means you can use both sets of components within the same application.

Related Posts

  • Blocking Disposable Emails with the laravel-disposable-email PackageBlocking Disposable Emails with the laravel-disposable-email Package
  • TweakPHP 0.1.0 Beta: A Free and Open-Source Alternative to Tinkerwell Is Here!  TweakPHP 0.1.0 Beta: A Free and Open-Source Alternative to Tinkerwell Is Here!
  • Tinkerwell Alternative: Free and Open-Source PHP Debugging with TweakPHPTinkerwell Alternative: Free and Open-Source PHP Debugging with TweakPHP
  • Next-js 15 is Stable and Production-Ready: Key HighlightsNext-js 15 is Stable and Production-Ready: Key Highlights
  • Laravel Made Easy: One Command for PHP, Node.js, and ComposerLaravel Made Easy: One Command for PHP, Node.js, and Composer

Tags

Api(1)Authentication(5)Backup (1)Copy Paste(12)Email(2)Express(1)Firebase(1)Github Action(2)News(8)Push Notification(1)Queue(2)Server(11)Server Action(3)Testing(1)Tips(17)Websocket(1)

Popular Posts

  • TweakPHP 0.1.0 Beta: A Free and Open-Source Alternative to Tinkerwell Is Here!  TweakPHP 0.1.0 Beta: A Free and Open-Source Alternative to Tinkerwell Is Here!
  • How to use WebSocket in NextJS App router with Socket.IOHow to use WebSocket in NextJS App router with Socket.IO
  • How to Set Up Queue Jobs in NextJS Using BullMQHow to Set Up Queue Jobs in NextJS Using BullMQ
  • Boost Laravel Performance: Running Octane with FrankenPHP in Production ( Zero downtime)Boost Laravel Performance: Running Octane with FrankenPHP in Production ( Zero downtime)
  • How to Set Up NextJS cron jobs without VercelHow to Set Up NextJS cron jobs without Vercel
  • Mastering Laravel Streamed Responses: Boost Performance with Fast Data DeliveryMastering Laravel Streamed Responses: Boost Performance with Fast Data Delivery
  • Nextjs 14 roles and permissions (RBAC) : Step-by-Step GuideNextjs 14 roles and permissions (RBAC) : Step-by-Step Guide
  • Tinkerwell Alternative: Free and Open-Source PHP Debugging with TweakPHPTinkerwell Alternative: Free and Open-Source PHP Debugging with TweakPHP

Get updates directly to your inbox.

Join 500+ developers getting updates on Laravel & Next.js tips. No spam,
unsubscribe anytime.


Share this article:

181 views