Skip to content

Commit ed3c9e0

Browse files
committed
refactor && add vitejs support
1 parent 5488120 commit ed3c9e0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1119
-358
lines changed

README.md

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# K UI Jetstream starter
1+
# K UI Laravel Jetstream
22

33
Different UI for [larave/jetstream](https://github.com/laravel/jetstream).
44

@@ -10,12 +10,11 @@ Different UI for [larave/jetstream](https://github.com/laravel/jetstream).
1010
#### [Breeze Version](https://github.com/Kamona-WD/kui-laravel-breeze)
1111
<!-- #### [Fortify Version](https://github.com/Kamona-WD/kui-laravel-fortify) -->
1212

13-
#### Note
1413

15-
We recommend installing this package on a project that you are starting from scratch.
14+
> We recommend installing this package on a project that you are starting from scratch.
1615
1716
#### Usage
18-
17+
> NOTE: It doesn't matter if you use `vitejs` or `laravel-mix`, it will work in both cases.
1918
1. Fresh install Laravel >= 8.0 and `cd` to your app.
2019
2. Install laravel/jetstream
2120

@@ -34,7 +33,8 @@ composer require kamona/kui-laravel-jetstream --dev
3433

3534
# after finish run this command
3635

37-
php artisan kui-jetstream:replace livewire
36+
# This package will detect if your project use vitejs or not by check if vite.config.js exist or not.
37+
php artisan kui-jetstream:replace livewire --teams
3838
# available stacks (livewire,inertia).
3939
# So if you run `php artisan jetstream:install inertia` you can run `php artisan kui-jetstream:replace inertia`
4040

@@ -44,24 +44,22 @@ npm install && npm run dev # or yarn && yarn dev
4444

4545
4. Configure your database.
4646
5. Run `php artisan migrate`.
47-
6. `npm install && npm run dev`
48-
7. `php artisan serve`
47+
6. `php artisan serve`.
4948

50-
> Do not forget to change `APP_URL` in `.emv` file and run `php artisan storage:link` if you want to enable `manageProfilePicture` feature.
49+
> Do not forget to change `APP_URL` in `.env` file and run `php artisan storage:link` if you want to enable `manageProfilePicture` feature.
5150
5251
#### Navigation
5352

5453
You will found sidebar links in:
5554

56-
- livewirw: `resources/views/components/sidebar/content.blade.php`.
55+
- livewire: `resources/views/components/sidebar/content.blade.php`.
5756
- inertia: `resources/js/Components/Sidebar/SidebarContent.vue`
5857

5958
#### Screens
6059

6160
| | |
6261
| ----------------------------------- | ---------------------------------- |
63-
| ![Shocase 1](screens/r-light.PNG) | ![Shocase 7](screens/l-dark.PNG) |
64-
| ![Shocase 2](screens/p-light.PNG) | ![Shocase 8](screens/p-dark.PNG) |
65-
| ![Shocase 2](screens/d-light.PNG) | ![Shocase 8](screens/d-dark.PNG) |
66-
| ![Shocase 2](screens/t-light.PNG) | ![Shocase 8](screens/t-dark.PNG) |
67-
| ![Shocase 2](screens/api-light.PNG) | ![Shocase 8](screens/api-dark.PNG) |
62+
| ![Shocase 1](screens/r-light.png) | ![Shocase 2](screens/l-dark.png) |
63+
| ![Shocase 3](screens/d-light.png) | ![Shocase 4](screens/d-dark.png) |
64+
| ![Shocase 5](screens/t-light.png) | ![Shocase 6](screens/t-dark.png) |
65+
| ![Shocase 7](screens/api-light.png) | ![Shocase 8](screens/api-dark.png) |

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
}
2222
],
2323
"require": {
24-
"php": "^7.3|^8.0",
25-
"laravel/jetstream": "^2.4"
24+
"php": "^7.3|^8.0"
2625
},
2726
"autoload": {
2827
"psr-4": {

screens/api-dark.PNG

-57.1 KB
Binary file not shown.

screens/api-dark.png

38.3 KB
Loading

screens/api-light.PNG

-56.2 KB
Binary file not shown.

screens/api-light.png

39.1 KB
Loading

screens/d-dark.PNG

-106 KB
Binary file not shown.

screens/d-dark.png

29 KB
Loading

screens/d-light.PNG

-109 KB
Binary file not shown.

screens/d-light.png

29.9 KB
Loading

0 commit comments

Comments
 (0)