Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: run-tests

on:
push:
branches: [main]
pull_request:
branches: [main]
branches: [main, master]

jobs:
test:
Expand All @@ -13,7 +11,7 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.2]
php: [8.2, 8.3, 8.4]
laravel: [11.*, 12.*]
stability: [prefer-lowest, prefer-stable]
include:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
.vscode
build
composer.lock
package-lock.json
coverage
docs
node_modules
Expand Down
26 changes: 14 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,37 +28,39 @@ The plugin also keeps a detailed history of past runs including:
![Kill Command](resources/screenshots/command-runner-kill-command.png)
![Command Output](resources/screenshots/command-runner-command-output.png)

## Installation
## 1. Installation

#### 1.1 Install Package

You can install the plugin via composer:

```bash
composer require binarybuilds/filament-command-runner
```

## Usage
#### 1.2 Publish Migrations

Register the plugin in your Filament panel service provider:
You should publish the migration for the package and adjust it to fit your project's structure:

```php
use BinaryBuilds\CommandRunner\CommandRunnerPlugin;
php artisan vendor:publish --tag=command-runner-migrations
```

$panel->plugin(CommandRunnerPlugin::make());
Before running the migrations, if you are using `UUID` or `ULID`, consider adjusting the `ran_by` field to store `string` instead of `unsignedBigInteger`. Feel free to adjust `$table->id()` field if needed. Once appropriate, run the migrations command:

```
php artisan migrate
```

## Migrations
## Usage

You should publish the migration for the package and adjust it to fit your project' structure:
Register the plugin in your Filament panel service provider:

```php
php artisan vendor:publish --tag=command-runner-migrations
```
use BinaryBuilds\CommandRunner\CommandRunnerPlugin;

Before running the migrations, if you are using `UUID` or `ULID`, consider adjusting the `ran_by` field to store `string` instead of `unsignedBigInteger`. Feel free to adjust `$table->id()` field if needed. Once appropiate, run the migrations command:
$panel->plugin(CommandRunnerPlugin::make());

```
php artisan migrate
```

## Customizations
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
],
"require": {
"php": "^8.2",
"filament/filament": "^4.0",
"filament/filament": "^4.0|^5.0",
"spatie/laravel-package-tools": "^1.15.0"
},
"require-dev": {
Expand Down
Loading