Skip to content

Commit

Permalink
Merge pull request #4 from worksome/feature/laravel-11
Browse files Browse the repository at this point in the history
feat: add support for Laravel 11
  • Loading branch information
owenvoke authored Feb 13, 2024
2 parents e1a456c + 07c8f1c commit 86a4f36
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 18 deletions.
21 changes: 12 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,27 @@
This package is a Laravel wrapper for Foggy.
Configuration of the plugin can be found at [Foggy's docs](https://github.com/worksome/foggy).

## Installation
For installation via composer
## Install

```bash
$ composer require worksome/foggy-laravel
Via Composer

```shell
composer require worksome/foggy-laravel
```

## Usage

This package adds a new artisan command for running Foggy. Simply type

````bash
$ php artisan db:dump
````shell
php artisan db:dump
````

It will by default assume that the Foggy config file, will be in `foggy.json` in the root fo the project.
A configuration file can be supplied by using `--config` argument.

The artisan command will make the db dump to `stdout`. The best way to parse this to a file is simply to pipe it.
```bash
$ php artisan db:dump > scrubbedDump.sql
The artisan command will make the db dump to `stdout`. The best way to parse this to a file is simply to pipe it.

```shell
php artisan db:dump > scrubbedDump.sql
```
12 changes: 3 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,11 @@
"type": "library",
"require": {
"php": "^8.2",
"worksome/foggy": "^0.5",
"illuminate/support": "^9.46|^10.0",
"illuminate/console": "^9.46|^10.0"
"worksome/foggy": "^0.6",
"illuminate/support": "^10.0 || ^11.0",
"illuminate/console": "^10.0 || ^11.0"
},
"license": "MIT",
"authors": [
{
"name": "Oliver Nybroe",
"email": "[email protected]"
}
],
"autoload": {
"psr-4": {
"Worksome\\FoggyLaravel\\": "src/"
Expand Down

0 comments on commit 86a4f36

Please sign in to comment.