Skip to content

Commit 95e110b

Browse files
committed
upd: laravel guide
1 parent ea419d9 commit 95e110b

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.laravel-guide/README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This guide will help you integrate your Laravel application with [Admin One - fr
88

99
- Built with **Vue.js 3**, **Tailwind CSS 4** framework & **Composition API**
1010
- **Laravel** build tools
11-
- **Laravel Breeze** with **Inertia + Vue** stack
11+
- **Laravel Jetstream** with **Inertia + Vue** stack
1212
- **SFC** `<script setup>` [Info](https://v3.vuejs.org/api/sfc-script-setup.html)
1313
- **Pinia** state library (official Vuex 5)
1414
- **Dark mode**
@@ -34,14 +34,14 @@ This guide will help you integrate your Laravel application with [Admin One - fr
3434

3535
First, [install Laravel](https://laravel.com/docs/installation) application
3636

37-
### Install Breeze
37+
### Install Jetstream
3838

39-
Then `cd` to project dir and install Breeze with Vue option
39+
Then `cd` to project dir and install Jetstream with Inertia Vue stack
4040

4141
```bash
42-
composer require laravel/breeze --dev
42+
composer require laravel/jetstream
4343

44-
php artisan breeze:install vue
44+
php artisan jetstream:install inertia
4545

4646
php artisan migrate
4747

@@ -51,12 +51,12 @@ npm install
5151
### Install dependencies
5252

5353
```bash
54-
npm i pinia @tailwindcss/line-clamp @mdi/js chart.js numeral -D
54+
npm i pinia @mdi/js chart.js numeral -D
5555
```
5656

5757
## Copy styles, components and scripts
5858

59-
**Before you start,** we recommend to rename Laravel Breeze's original folders (so you'll keep them for future reference) — `resources/js/Components` `resources/js/Layouts` `resources/js/Pages` to something like ComponentsBreeze, LayoutsBreeze, etc.
59+
**Before you start,** we recommend to rename Laravel Jetsreams's original folders (so you'll keep them for future reference) — `resources/js/Components` `resources/js/Layouts` `resources/js/Pages` to something like ComponentsJetsteam, LayoutsJetstream, etc.
6060

6161
Now clone [justboil/admin-one-vue-tailwind](https://github.com/justboil/admin-one-vue-tailwind) project somewhere locally (into any separate folder)
6262

@@ -70,9 +70,9 @@ Next, copy these files **from justboil/admin-one-vue-tailwind project** director
7070

7171
### [optional] lowecase vs Capitalized folder names
7272

73-
Fresh Laravel install with Breeze provides **Capitalized** folder names such as `Components`, `Layouts`, etc. For the sake of simplicity we just follow Vue conventions with lowercase folder names. However, you may opt-in to capitalize folder names:
73+
Fresh Laravel install with Jetstream provides **Capitalized** folder names such as `Components`, `Layouts`, etc. For the sake of simplicity we just follow Vue conventions with lowercase folder names. However, you may opt-in to capitalize folder names:
7474

75-
- Make sure you've removed original Laravel Breeze's `resources/js/Layouts` and `resources/js/Components` folders
75+
- Make sure you've removed original Laravel Jetstream's `resources/js/Layouts` and `resources/js/Components` folders
7676
- Rename the folders you've copied in the previous section: `resources/js/layouts` to `Layouts`; `components` to `Components`; `stores` to `Stores`
7777
- Replace everywhere in imports: `@/layouts/` with `@/Layouts/`; `@/components/` with `@/Components/`; `@/stores/` with `@/Stores/`
7878

@@ -481,9 +481,10 @@ indent_size = 2
481481

482482
### resources/js/bootstrap.js
483483

484-
Global `lodash` and `axios` aren't needed, as we import them directly when needed. Most likely, you'd not need `axios` at all, as Laravel pushes all data via Inertia.
484+
Global `lodash` and `axios` aren't needed, as we import them directly when necessary.
485485

486486
## Laravel & Inertia docs
487487

488488
- [Laravel Docs](https://laravel.com/docs)
489+
- [Laravel Jetstream Docs](https://jetstream.laravel.com/)
489490
- [Inertia](https://inertiajs.com/)

0 commit comments

Comments
 (0)