Skip to content

Commit

Permalink
docs: markdown syntax markup
Browse files Browse the repository at this point in the history
  • Loading branch information
jevantang committed Apr 28, 2024
1 parent e96a089 commit 61189ee
Show file tree
Hide file tree
Showing 17 changed files with 247 additions and 247 deletions.
44 changes: 22 additions & 22 deletions docs/artisan/control.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,27 @@

Unzip the plugin files into the `/plugins/` directory, the final directory will be `/plugins/{fskey}/`.

```php
```sh
fresns plugin:unzip /www/wwwroot/fresns/storage/plugins/downloads/123e4567-e89b-12d3-a456-426614174000.zip
```

or

```php
```sh
php artisan plugin:unzip /www/wwwroot/fresns/storage/plugins/downloads/123e4567-e89b-12d3-a456-426614174000.zip
```

## Publish Plugin

Publish static resources for the plugin `DemoPlugin`.

```php
```sh
fresns plugin:publish
```

or

```php
```sh
php artisan plugin:publish DemoPlugin
```

Expand All @@ -34,13 +34,13 @@ php artisan plugin:publish DemoPlugin

Unpublish static resources for the plugin `DemoPlugin`.

```php
```sh
fresns plugin:unpublish
```

or

```php
```sh
php artisan plugin:unpublish DemoPlugin
```

Expand All @@ -50,112 +50,112 @@ php artisan plugin:unpublish DemoPlugin

Composer all plugins.

```php
```sh
fresns plugin:composer-update
```

or

```php
```sh
php artisan plugin:composer-update
```

## Run Plugin Migrate

Migrate the given plugin, or without a plugin an argument, migrate all plugins.

```php
```sh
fresns plugin:migrate
```

or

```php
```sh
php artisan plugin:migrate DemoPlugin
```

## Rollback Plugin Migrate

Rollback the given plugin, or without an argument, rollback all plugins.

```php
```sh
fresns plugin:migrate-rollback
```

or

```php
```sh
php artisan plugin:migrate-rollback DemoPlugin
```

## Refresh Plugin Migrate

Refresh the migration for the given plugin, or without a specified plugin refresh all plugins migrations.

```php
```sh
fresns plugin:migrate-refresh
```

or

```php
```sh
php artisan plugin:migrate-refresh DemoPlugin
```

## Reset Plugin Migrate

Reset the migration for the given plugin, or without a specified plugin reset all plugins migrations.

```php
```sh
fresns plugin:migrate-reset
```

or

```php
```sh
php artisan plugin:migrate-reset DemoPlugin
```

## Run Plugin Seed

Seed the given plugin, or without an argument, seed all plugins.

```php
```sh
fresns plugin:seed
```

or

```php
```sh
php artisan plugin:seed DemoPlugin
```

## Install Plugin

Execute the `plugin:unzip``plugin:composer-update``plugin:migrate``plugin:publish` commands in that order.

```php
```sh
fresns plugin:install /www/wwwroot/fresns/storage/plugins/123e4567-e89b-12d3-a456-426614174000.zip
```

or

```php
```sh
php artisan plugin:install /www/wwwroot/fresns/storage/plugins/123e4567-e89b-12d3-a456-426614174000.zip
```

## Uninstall Plugin

Uninstall the plugin and select whether you want to clean the data of the plugin.

```php
```sh
fresns plugin:uninstall --cleardata=true
fresns plugin:uninstall --cleardata=false
```

or

```php
```sh
php artisan plugin:uninstall DemoPlugin --cleardata=true
php artisan plugin:uninstall DemoPlugin --cleardata=false
```
Expand Down
6 changes: 3 additions & 3 deletions docs/artisan/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

Create a plugin with fskey as `DemoPlugin`

```php
```sh
fresns plugin:make DemoPlugin
```
or

```php
fresns new DemoPlugin
```sh
fresns new DemoPlugin
```
Loading

0 comments on commit 61189ee

Please sign in to comment.