8000 GitHub - unnoq/laravel-jetstream-inertiajs at 4e890a544fa364bcfc804955b25190694e31e94c
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

unnoq/laravel-jetstream-inertiajs

Folders and files

8000
NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jetstream Laravel + Inertiajs + Vite + typescript

A template for above powerful technique

Install dependencies

    npm install
    composer install

Generate helper files for php IDE

Special command php artisan ide-helper:models --nowrite require you connected database

    php artisan ide-helper:generate
    php artisan ide-helper:meta
    php artisan ide-helper:models --nowrite

Lint typescript files of vuejs

A lint command for check issue typescript vue files. This command is powerful but used too much resource pc then I not add it to lint-staged and if add to lint-staged it not work correctly (Currently I don't know)

    npm run lint:vue

Handling

Recommend actions for you when a case occurred

Updated Models

You should fresh ide model helper file

    php artisan ide-helper:models --nowrite

Generate typescript

Use the spatie/laravel-typescript-transformer to transform a php type to typescript

Firstly you Secondly you should add @typescript phpdoc to php type

    /** @typescript */
    class FetchedCardType
    {
        //
    }

Secondly you should run special command to generate it to typescript

    php artisan typescript:transform

About

The template uses laravel 9, jetstream, inertiajs, vue 3, typescript, tailwindcss 3.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  
0