Skip to content

Commit e213bf9

Browse files
committed
docs: mark external links with icon
1 parent dbcaacc commit e213bf9

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

docs/pages/services/factories.mdx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import { Callout } from "nextra-theme-docs";
2+
import ExternalLink from "../../components/external-link";
23

34
## 🗒️ Introduction
45

5-
Like [Eloquent Factories](https://laravel.com/docs/10.x/eloquent-factories) this package enables you to define factories for your entities, integrating CycleORM with Laravel's elegant syntax and functionality.
6+
Like <ExternalLink href="https://laravel.com/docs/10.x/eloquent-factories">Eloquent Factories</ExternalLink> this package enables you to define factories for your entities, integrating CycleORM with Laravel's elegant syntax and functionality.
67

7-
This feature is available through the [wayofdev/laravel-cycle-orm-factories](https://github.com/wayofdev/laravel-cycle-orm-factories), be sure to check [installation](/installation#-database-factories-optional) instructions.
8+
This feature is available through the <ExternalLink href="https://github.com/wayofdev/laravel-cycle-orm-factories">wayofdev/laravel-cycle-orm-factories</ExternalLink>, be sure to check [installation](/installation#-database-factories-optional) instructions.
89

910
When testing your application or seeding your database, you may need to insert a few records into your database. Instead of manually specifying the value of each column, this package, same as Laravel, allows you to define a set of default attributes for each of your [Entities](/usage/entities) using factory classes.
1011

@@ -59,7 +60,7 @@ Factory classes should implement:
5960

6061
* `makeEntity` (optional) — method allows you to control the process of creating an entity through its constructor. The method takes an array of definitions as an argument, which is generated by the `definition` method.
6162

62-
Use the `definition` method to specify properties, utilizing the [Faker](https://fakerphp.github.io) library, which provides a wide range of fake data generation methods such as names, addresses, phone numbers, etc.
63+
Use the `definition` method to specify properties, utilizing the <ExternalLink href="https://fakerphp.github.io">Faker</ExternalLink> library, which provides a wide range of fake data generation methods such as names, addresses, phone numbers, etc.
6364

6465
## ⚡️ Creating Entities using Factories
6566

@@ -202,7 +203,7 @@ class PostFactory extends AbstractFactory
202203

203204
In addition to the state method, there also the entityState method. This method allows developers to change the state of an entity object using the available methods of that entity. It takes a closure as an argument, which should accept the entity as an argument and should return the modified entity. This allows developers to take full advantage of the object-oriented nature of their entities and use the methods that are already defined on the entity to change its state.
204205

205-
Can also be used in same manner as [Laravel trashed states](https://laravel.com/docs/10.x/eloquent-factories#trashed-state)
206+
Can also be used in same manner as <ExternalLink href="https://laravel.com/docs/10.x/eloquent-factories#trashed-state">Laravel trashed states</ExternalLink>
206207

207208
```php
208209

docs/pages/services/seeders.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import {Callout} from "nextra-theme-docs";
2+
import ExternalLink from "../../components/external-link";
23

34
## 🗒️ Introduction
45

56
Laravel includes the ability to seed your database with data using seed classes. All seed classes are stored in the database/seeders directory.
67
Same as in Laravel with Eloquent, you can use default Laravel seeders to seed your data into the database, by using CycleORM database factories.
78

89
<Callout type="info" emoji="💡">
9-
Check also [Laravel Database Seeders](https://laravel.com/docs/10.x/seeding) documentation.
10+
Check also <ExternalLink href="https://laravel.com/docs/10.x/seeding">Laravel Database Seeders</ExternalLink> documentation.
1011
</Callout>
1112

1213
## ✏️ Writing Seeders
@@ -19,7 +20,7 @@ php artisan make:seeder PostSeeder
1920

2021
## ⚡️ Using Entity Factories
2122

22-
Best way to use seeders is to use Entity Factories, which is provided by [wayofdev/laravel-cycle-orm-factories](https://github.com/wayofdev/laravel-cycle-orm-factories). You can create a factory for each of your entities and use them to seed your database.
23+
Best way to use seeders is to use Entity Factories, which is provided by <ExternalLink href="https://github.com/wayofdev/laravel-cycle-orm-factories">wayofdev/laravel-cycle-orm-factories</ExternalLink>. You can create a factory for each of your entities and use them to seed your database.
2324

2425
In this documentation section we will use examples from [Factories](/services/factories) documentation page.
2526

docs/pages/services/testing.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import {Callout} from "nextra-theme-docs";
2+
import ExternalLink from "../../components/external-link";
23

34
## 🗒️ Introduction
45

56
Adapter package provides a set of modified Laravel testing traits and methods to make testing easier, and as close as possible to native Laravel Testing methods, when using CycleORM.
67

78
<Callout type="info" emoji="💡">
8-
Check also [Laravel Database Testing](https://laravel.com/docs/10.x/database-testing) documentation.
9+
Check also <ExternalLink href="https://laravel.com/docs/10.x/database-testing">Laravel Database Testing</ExternalLink> documentation.
910
</Callout>
1011

1112
## 🗑️ Resetting the Database After Each Test

0 commit comments

Comments
 (0)