Skip to content

Commit 1bf403c

Browse files
committed
fix: patch up broken links
1 parent dec88bb commit 1bf403c

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

src/docs/auth/mvc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ composer require leafs/auth
2222
Leaf Auth will automatically pick up your default database connection and will work with it, so you can immediately start working with it without any config. Checkout the following pages to authenticate users:
2323

2424
- [Login](/docs/auth/login)
25-
- [Register](/docs/auth/register)
25+
- [Register](/docs/auth/signup)
2626
- [User Data](/docs/auth/user)
2727
- [Protected routes](/docs/auth/protected-routes)
2828
- [Roles & Permissions](/docs/auth/permissions)

src/docs/database/models.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,14 @@ $flight->delete(); // Delete the flight
137137

138138
### Soft deletes
139139

140-
A soft delete marks a record as deleted without actually removing it from the database. Instead, a `deleted_at` timestamp is set, and the record is hidden from query results. The data is still in the database, allowing you to restore it later if needed. To get started with soft deletes, add a `deleted_at` column to your table. You can do this by adding the following line to your [migration file](/docs/database/migrations):
140+
A soft delete marks a record as deleted without actually removing it from the database. Instead, a `deleted_at` timestamp is set, and the record is hidden from query results. The data is still in the database, allowing you to restore it later if needed. To get started with soft deletes, head over to your [schema file](/docs/database/files) and turn on soft deletes by adding a `softDeletes` option:
141141

142-
```php:no-line-numbers
143-
$table->timestamp('deleted_at')->nullable();
142+
```yaml
143+
softDeletes: true // [!code ++]
144+
145+
columns:
146+
name: string
147+
...
144148
```
145149

146150
After that, we can add the `SoftDeletes` trait to our model. This is a trait provided by Eloquent that will automatically handle soft deletes for us:

src/learn/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ With that in mind, we've created a few paths to help you get started with Leaf.
139139

140140
## Deploy your app
141141

142-
After building your app, you'll want to deploy it to the web so that others can access it. We've got you covered with our [deployment guides](/learn/deployment) that walk you through deploying your app to various platforms.
142+
After building your app, you'll want to deploy it to the web so that others can access it. We've got you covered with our [deployment guides](/learn/deployment/) that walk you through deploying your app to various platforms.
143143

144144
## Contributing
145145

0 commit comments

Comments
 (0)