Add an NPM_TOKEN secret on GitHub. Get your secret key from the NPM dashboard.
- name: Authenticate with private NPM package
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc| /** | |
| * Bootstrap any application services. | |
| * | |
| * @return void | |
| */ | |
| public function boot() | |
| { | |
| Component::macro('notify', function ($message, $title = '', $type = 'success') { | |
| $this->dispatchBrowserEvent('notify', ['message' => $message, 'title' => $title, 'type' => $type]); | |
| }); |
| # | |
| # Create this file in the following folder docker/mysql/docker-entrypoint-initdb.d | |
| # | |
| CREATE DATABASE IF NOT EXISTS `test_1` COLLATE 'utf8_general_ci' ; | |
| GRANT ALL ON `test_1`.* TO 'root'@'%' ; | |
| CREATE DATABASE IF NOT EXISTS `test_2` COLLATE 'utf8_general_ci' ; | |
| GRANT ALL ON `test_2`.* TO 'root'@'%' ; |
| <?php | |
| $spaces = [ | |
| 'driver' => 's3', | |
| 'key' => env('DO_SPACES_KEY'), | |
| 'secret' => env('DO_SPACES_SECRET'), | |
| 'endpoint' => env('DO_SPACES_ENDPOINT'), | |
| 'region' => env('DO_SPACES_REGION'), | |
| 'bucket' => env('DO_SPACES_BUCKET') | |
| ]; |
| <?php | |
| include __DIR__ . '/../vendor/autoload.php'; | |
| /* | |
| |-------------------------------------------------------------------------- | |
| | Create The Application | |
| |-------------------------------------------------------------------------- | |
| | | |
| | The first thing we will do is create a new Laravel application instance |
When setting these options consider the following:
sudo grep max_children /var/log/php?.?-fpm.log.1 /var/log/php?.?-fpm.log| /** | |
| * @author ebidel@ (Eric Bidelman) | |
| * License Apache-2.0 | |
| */ | |
| // Prints the bytes cached by service worker. Breaks out each cache | |
| // overall in-memory bytes used by the Cache Storage API for the site. | |
| async function getCacheStoragesAssetTotalSize() { | |
| // Note: opaque (i.e. cross-domain, without CORS) responses in the cache will return a size of 0. |
| <?php | |
| namespace App\Providers; | |
| use Illuminate\Support\Collection; | |
| use Illuminate\Pagination\LengthAwarePaginator; | |
| class AppServiceProvider extends ServiceProvider | |
| { | |
| public function boot() |
| <?php | |
| namespace App\Console\Commands; | |
| use Elasticsearch\ClientBuilder; | |
| use Illuminate\Console\Command; | |
| class ElasticRecreateIndex extends Command | |
| { | |
| /** |