Skip to content

justdlabs/inertia.ts

Repository files navigation

TL;DR

composer create-project justd/laravel your-project-name

Using NPM

If you're using NPM, make sure to include the --legacy-peer-deps flag:

npm i --legacy-peer-deps
composer run dev

Using Bun

bun i && composer run dev

You must run bun run dev to ensure the routes are generated and watched properly during development.

Laravel Inertia React with TypeScript

By default, packages like Laravel Breeze use regular JavaScript for React. However, this project is tailored for those who want an Inertia.js boilerplate with TypeScript.

Features

  • Authentication
  • User Profile
  • User Password Management
  • User Deletion
  • User Resources (--only=[index, show, edit, update, destroy])
  • Pagination

Quick Login

This project includes a quick login feature. Simply add /dev/login/{user_id} to the URL to log in as a specific user.

Example:

http://localhost:8000/dev/login/1

This feature is only available in development mode (APP_ENV=local in .env). Ensure that a user with the specified ID exists in your database.

Default Branch Renaming

The 9.x branch is now named laravel-9.x.

If you have a local clone, you can update it accordingly.