Skip to content

Commit

Permalink
Merge pull request #134 from justdlabs/laravel-11.x
Browse files Browse the repository at this point in the history
Laravel 11.x
  • Loading branch information
irsyadadl authored Feb 7, 2025
2 parents 2e6acbb + 6de45e9 commit e8e3bd7
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 76 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Changelog

## [1.3.16](https://github.com/justdlabs/inertia.ts/compare/v1.3.15...v1.3.16) (2025-02-07)

## [1.3.15](https://github.com/justdlabs/inertia.ts/compare/v1.3.14...v1.3.15) (2025-02-07)

## [1.3.14](https://github.com/justdlabs/inertia.ts/compare/v1.3.13...v1.3.14) (2025-01-21)
Expand Down
91 changes: 17 additions & 74 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
### tl;dr
### TL;DR

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

## Using NPM

when you're using npm, you have to include `--legacy-peer-deps` flag.
If you're using NPM, make sure to include the `--legacy-peer-deps` flag:

```bash
npm i --legacy-peer-deps
Expand All @@ -19,92 +19,35 @@ composer run dev
bun i && composer run dev
```

You absolutely need to run the `bun run dev`, because the route is generated and watching while it's in dev.
You must run `bun run dev` to ensure the routes are generated and watched properly during development.

### Laravel Inertia React w/ Typescript
### Laravel Inertia React with TypeScript

By default, if we use package like Laravel breeze, it'll use regular javascript react by default. But this project is
for you who want to use inertia.js with typescript boilerplate.
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.

This project has come with some features like:
#### Features

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

### Quick Login

This project has a feature to login quickly. You can use this feature by adding `/dev/login/{user_id}` to the url. For
example: `http://localhost:8000/dev/login/1`. And then you can login as user with id `1`. But this feature only works in
development mode with `APP_ENV=local` in `.env` file. Make sure you have a user with id `1` in your database.
This project includes a quick login feature. Simply add `/dev/login/{user_id}` to the URL to log in as a specific user.

### The default branch has been renamed!
Example:

**9.x** is now named **laravel-9.x**

If you have a local clone, you can update it by running the following commands.

```bash
git branch -m 9.x laravel-9.x
git fetch origin
git branch -u origin/laravel-9.x laravel-9.x
git remote set-head origin -a
```text
http://localhost:8000/dev/login/1
```

### About Laravel

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and
creative experience to be truly fulfilling.

### About Inertia.js

Inertia.js lets you quickly build modern single-page React, Vue and Svelte apps using classic server-side routing and
controllers.

### About Typescript

Typescript is a strict syntactical superset of JavaScript and adds optional static typing to the language.

### Available scripts

Feel free to use someting like [pnpm](https://pnpm.io/) or [yarn](https://yarnpkg.com/). It just node package manager I
have, so make yours.

```bash
# Format with prettier
bun run format

# Start development
bun run dev

# Build the app
bun run build

# Testing for SSR
bun run preview
```

### Update profile information

Of course it is not just about authentication, but also about updating user profile information, password, and deleting
account.

### Dashboard Layout

This project has 3 layout:

1. Guest Layout
2. App Layout (Default)
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.

User layout will make a layout side by side, it has a sidebar. So this is will be useful when you need an admin panel or
something like that.
### Default Branch Renaming

If you like making new features, feel free to make a [pull request](https://github.com/irsyadadl/inertia.ts/pulls). I'll
be happy to review it.
The **9.x** branch is now named **laravel-9.x**.

## Sponsored
- [Premium Blocks](https://blocks.getjustd.com)
- [Parsinta](https://parsinta.com)
If you have a local clone, you can update it accordingly.
Binary file modified bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@
"react-aria-components": "^1.6.0",
"react-dom": "^19.0.0",
"sonner": "^1.7.4",
"tailwind-merge": "^2.6.0",
"tailwind-merge": "^3.0.1",
"tailwind-variants": "^0.3.1",
"tailwindcss-animate": "^1.0.7",
"vite": "^6.1.0"
},
"version": "1.3.15"
"version": "1.3.16"
}

0 comments on commit e8e3bd7

Please sign in to comment.