Skip to content

Commit 0f439f7

Browse files
committed
Merge branch 'staging'
2 parents ab522a7 + 8f95e6a commit 0f439f7

File tree

3 files changed

+21
-8
lines changed

3 files changed

+21
-8
lines changed

src/docs/auth/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ Numerous web applications offer their users a means to authenticate and access t
66

77
Leaf provides a lightweight but very powerful authentication system to handle all the complexities of authentication in a few lines of code. We understand that authentication is a critical part of your application, so we've made it as simple and secure as possible.
88

9+
::: warning Docs version
10+
This documentation covers Auth v3 and above. If you're using an older version, you can check the documentation [hosted here](https://v3.leafphp.dev/modules/auth/).
11+
:::
12+
913
## Setting up
1014

1115
You can install Leaf Auth using the Leaf CLI:

src/docs/utils/fs.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
# Filesystem / Cloud Storage
2-
31
<!-- markdownlint-disable no-inline-html -->
4-
<!-- # File Storage System -->
2+
<!-- # Filesystem / Cloud Storage -->
3+
4+
# File Storage System
55

66
A file storage system is a system used to store and manage files. It's a crucial part of most applications, as it helps you create, read, update, store and delete files effectively. Leaf provides a simple and easy-to-use file storage system that allows you to work with files on your server or in the cloud.
77

8+
::: warning Docs version
9+
This documentation covers FS v2 and above. If you're using an older version, you can check the documentation [hosted here](https://v3.leafphp.dev/modules/fs/).
10+
:::
11+
812
## Installation
913

1014
You can quickly install Leaf's file storage system through composer or the leaf cli.
@@ -173,20 +177,21 @@ One amazing thing about the `upload()` method is that it can detect the file typ
173177
```php
174178
$uploaded = storage()->upload('fileToUpload', 'path/to/uploads', [
175179
'maxSize' => 1024 * 1024, // 1MB
176-
'allowedTypes' => 'image',
180+
'allowedTypes' => ['image'],
177181
'allowedExtensions' => ['jpg', 'png', 'gif'],
178-
'rename' => true,
179-
'force' => true,
180-
'overwrite' => false,
181182
'validate' => true,
183+
'mode' => 0777,
184+
'rename' => false,
185+
'recursive' => false,
186+
'overwrite' => false,
182187
]);
183188
```
184189

185190
This is a list of config options for the `upload()` method:
186191

187192
| Config Name | Description | Possible Values |
188193
| :----------- | :----------------------------------------------------------- | ------------------------------------------------------------------------------------: |
189-
| force | If `true`, Leaf will create the folder if it doesn't exist | `true`, `false` |
194+
| mode | Permissions to create your destination folder if it doesn't exist | Any permissions accepted by mkdir() |
190195
| overwrite | If `true`, Leaf will overwrite the file if it already exists | `true`, `false` |
191196
| rename | If `true`, Leaf will rename the file if it already exists | `true`, `false` |
192197
| validate | If `true`, Leaf will validate the file before uploading | `true`, `false` |

src/docs/utils/testing.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ Testing helps you and your team build Leaf apps faster by making sure that new f
44

55
Since you might need to setup a project for rapid prototyping and deployment, we don't add any tests to the default Leaf installation. However, we have Alchemy, a user-friendly tool that simplifies your testing, code styling checks, and code coverage reports with a single command.
66

7+
::: warning Docs version
8+
This documentation covers Alchemy v2 and above. If you're using an older version, you can check the documentation [hosted here](https://v3.leafphp.dev/docs/tooling/testing.html).
9+
:::
10+
711
## Setting up
812

913
Leaf CLI will always ask if you want to add Alchemy to your project when you create a new project. If you already have a project and want to add Alchemy, you can do so by running the following command:

0 commit comments

Comments
 (0)