la09r / web-fullstack-starter-kit-ui-vue-inertia
Starter Kit Laravel UI Vue Inertia
10.1.8
2023-12-06 10:08 UTC
Requires
- php: ^8.1
- illuminate/support: ^10.32
- inertiajs/inertia-laravel: 0.6.11
- laravel/ui: 4.2.2
- tightenco/ziggy: 1.8.1
This package is auto-updated.
Last update: 2024-04-06 11:05:49 UTC
README
This is main package. All npm packages for UI install here.
Requirements
- Homestead virtual machine:
- installed and configured for cli: PHP v. 8.1, Composer, Git
- Host machine:
- installed and configured for cli: Node(JavaScript runtime environment) v. 18
Install
- into Homestead virtual machine:
- change directory to
DOCUMENT_ROOT
:cd /home/vagrant/code/81/home/test/http/laravel/d
rm -rf ./* && rm -rf ./.git && rm -rf ./.idea && rm -f ./.g* && rm -f ./.e* && rm -f ./.D*
composer create-project laravel/laravel . "10.2.9"
- in
.env
set:APP_URL=http://d.laravel.test.home.81.local DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=d_laravel_test_home_81 DB_USERNAME=homestead DB_PASSWORD=secret
- create
DB_DATABASE
or drop all exist tables inDB_DATABASE
- copy homestead.backend..sh files to
DOCUMENT_ROOT
- update +x permission for *.sh files,
- exec
homestead.backend.install.sh
- in
config/app.php
inaliases
:// add: App\Http\Controllers\Auth\LoginController::class => LA09R\StarterKit\UI\Vue\Inertia\App\Http\Controllers\Auth\LoginController::class, App\Providers\RouteServiceProvider::class => LA09R\StarterKit\UI\Vue\Inertia\App\Providers\RouteServiceProvider::class
- in
config/app.php
inproviders
:// comment: App\Providers\RouteServiceProvider::class, // add: LA09R\StarterKit\UI\Vue\Inertia\App\Providers\AppServiceProvider::class, LA09R\StarterKit\UI\Vue\Inertia\App\Providers\RouteServiceProvider::class,
- in
app/Http/Kernel.php
inprotected $middleware array
:// add: \LA09R\StarterKit\UI\Vue\Inertia\App\Http\Middleware\HandleInertiaRequests::class,
- in
app/Http/Kernel.php
uncomment\Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class,
- in
config/view.php
inpaths
delete all and:base_path('vendor/la09r/web-fullstack-starter-kit-ui-vue-inertia/src/resources/views'),
- add in
composer.json
inautoload
:"files": [ ".env.php" ]
- add in
composer.json
:"minimum-stability": "dev", "prefer-stable": true, "repositories": [ ]
- in bash:
php artisan tinker
User::factory()->create() // save: login = `email` field from tinker output, password = `password`
- in Host machine:
- copy host.frontend..sh files to
DOCUMENT_ROOT
- update +x permission for *.sh files,
- replace
#!/bin/zsh
from host.frontend..sh files to you bash bin path - exec
host.frontend.install.sh
on Host machine - in
package.json
setvite build --watch
forscript.dev
section - in
package.json
setnode ./vite.copy.componentsAsync.js
forscript.copy
section - in
vite.config.js
setYour_Homestead_IP
fordefineConfig.server.host
section npm run dev
and checkout browserAPP_URL