add laravel metadata

master 1.0.2
Ondřej Hruška 6 years ago
parent 2d0cab0611
commit d54eb0ee28
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 4
      README.md
  2. 7
      composer.json

@ -28,8 +28,8 @@ Installation
It is a Composer package for the Laravel framework.
- Install it (`composer require mightypork/php-sandbox`), then `composer dump-autoload`.
- Add the service provider to your `config/app.php` file (providers section):
`MightyPork\PhpSandbox\PhpSandboxServiceProvider::class`
- The service provider should be automatically found by Laravel via the discover functionality.
If it is not, add the service provider to your `config/app.php` file (providers section): `MightyPork\PhpSandbox\PhpSandboxServiceProvider::class`
- Run `php artisan vendor:publish` and select the package; this copies the JS and CSS assets to your public folder, and creates the config file (`config/php-sandbox.php`).
- Add `ENABLE_PHP_SANDBOX=true` to your .env file to enable access

@ -17,5 +17,12 @@
"psr-4": {
"MightyPork\\PhpSandbox\\": "src/"
}
},
"extra": {
"laravel": {
"providers": [
"MightyPork\\PhpSandbox\\PhpSandboxServiceProvider"
]
}
}
}

Loading…
Cancel
Save