Skip to content

Commit 692c567

Browse files
committed
docs: add validation and factories
1 parent 543b235 commit 692c567

File tree

11 files changed

+693
-8
lines changed

11 files changed

+693
-8
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,16 @@ The full documentation for the package is available at [https://laravel-cycle-or
4949

5050
<br>
5151

52+
53+
## 🧩 Compatibility Map
54+
55+
| Laravel | Cycle ORM Adapter | Cycle ORM |
56+
|---------|-------------------|-----------|
57+
| 10.x | 4.x | 2.x |
58+
| 11.x | 5.x (Planned) | 2.x |
59+
60+
<br>
61+
5262
## 🤝 Contributing
5363

5464
Contributions are welcome!

docs/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
},
1919
"homepage": "https://github.com/shuding/nextra-docs-template#readme",
2020
"dependencies": {
21-
"next": "^14.0.0",
21+
"@vercel/analytics": "^1.2.2",
22+
"next": "^14.1.3",
2223
"nextra": "latest",
2324
"nextra-theme-docs": "latest",
2425
"react": "^18.2.0",
@@ -29,6 +30,6 @@
2930
"autoprefixer": "^10.4.18",
3031
"postcss": "^8.4.35",
3132
"tailwindcss": "^3.4.1",
32-
"typescript": "^5.0.0"
33+
"typescript": "^5.4.2"
3334
}
3435
}

docs/pages/_app.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { Analytics } from '@vercel/analytics/react'
2+
import type { AppProps } from 'next/app'
3+
import type { ReactElement } from 'react'
4+
5+
import '../style.css'
6+
7+
function Nextra({ Component, pageProps }: AppProps): ReactElement {
8+
return (
9+
<>
10+
<Component {...pageProps} />
11+
<Analytics />
12+
</>
13+
)
14+
}
15+
16+
export default Nextra

docs/pages/contributing.mdx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,32 @@ This leads to more readable messages that are easy to follow when looking throug
4949
- **chore** — Other changes that don't modify src or test files
5050
- **security** — A code change that fixes a security issue
5151

52+
## 🧪 Running Tests
53+
54+
### → PHPUnit Tests
55+
56+
To run phpunit (pest) tests, run the following command:
57+
58+
```bash
59+
$ make test
60+
```
61+
62+
### → Static Analysis
63+
64+
Run Code quality checks using [PHPStan](https://phpstan.org):
65+
66+
```bash
67+
$ make lint-stan
68+
```
69+
70+
### → Coding Standards Fixing
71+
72+
Fix code using [The PHP Coding Standards Fixer](https://github.com/wayofdev/php-cs-fixer-config) to follow our standards:
73+
74+
```bash
75+
$ make lint-php
76+
```
77+
5278
## 🔓 Security Vulnerabilities
5379

5480
If you discover a security vulnerability within this package, please send an e-mail to WayOfDev via the@wayof.dev. All security vulnerabilities will be promptly addressed.

docs/pages/installation.mdx

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,21 @@ Before you begin, ensure your development environment meets the following requir
99
- **PHP Version:** 8.2 or higher
1010
- **Laravel:** 10.x or higher
1111

12+
## 🧩 Compatibility Map
13+
14+
| Laravel | Cycle ORM Adapter | Cycle ORM |
15+
|---------|-------------------|-----------|
16+
| 10.x | 4.x | 2.x |
17+
| 11.x | 5.x (Planned) | 2.x |
18+
19+
1220
## 🚀 Quick Start
1321

1422
Installing the Laravel Cycle ORM Adapter is straightforward with Composer. Follow the steps below to add the adapter to your Laravel project.
1523

16-
### Step 1: Install the Adapter
24+
<div className="steps-container">
25+
26+
### Step: Install the Adapter
1727

1828
For the core functionality, run the following Composer command in your terminal:
1929

@@ -23,7 +33,7 @@ $ composer req wayofdev/laravel-cycle-orm-adapter
2333

2434
This command installs the wayofdev/laravel-cycle-orm-adapter package, integrating Cycle ORM into your Laravel application.
2535

26-
### Step 2: Publish Configuration
36+
### Step: Publish Configuration
2737

2838
After installing the package, publish the configuration file using the `vendor:publish` command:
2939

@@ -32,6 +42,8 @@ $ php artisan vendor:publish \
3242
--provider="WayOfDev\Cycle\Bridge\Laravel\Providers\CycleServiceProvider"
3343
```
3444

45+
</div>
46+
3547
## 🏭 Database Factories (Optional)
3648

3749
If you need support for [Eloquent-like Factories](https://laravel.com/docs/10.x/eloquent-factories), install the following package:

0 commit comments

Comments
 (0)