Skip to content

Commit

Permalink
Merge branch 'main' of github.com:ryangjchandler/laravel-json-settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangjchandler committed Feb 14, 2022
2 parents 977aa07 + 9a4341a commit f4f037f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Store your Laravel application settings in a version-controlled JSON file.
# Store your Laravel application settings in an on-disk JSON file.

[![Latest Version on Packagist](https://img.shields.io/packagist/v/ryangjchandler/laravel-json-settings.svg?style=flat-square)](https://packagist.org/packages/ryangjchandler/laravel-json-settings)
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/ryangjchandler/laravel-json-settings/run-tests?label=tests)](https://github.com/ryangjchandler/laravel-json-settings/actions?query=workflow%3Arun-tests+branch%3Amain)
[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/ryangjchandler/laravel-json-settings/Check%20&%20fix%20styling?label=code%20style)](https://github.com/ryangjchandler/laravel-json-settings/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amain)
[![Total Downloads](https://img.shields.io/packagist/dt/ryangjchandler/laravel-json-settings.svg?style=flat-square)](https://packagist.org/packages/ryangjchandler/laravel-json-settings)

This package provides a simple `SettingsRepository` class that can be used to store your application's settings in a single JSON file.

## Installation

You can install the package via composer:
Expand Down
6 changes: 2 additions & 4 deletions tests/JsonSettingsTest.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<?php

use Illuminate\Support\Facades\File;
use RyanChandler\LaravelJsonSettings\Facades\Settings;
use RyanChandler\LaravelJsonSettings\SettingsRepository;

use function PHPUnit\Framework\assertFileExists;
use function PHPUnit\Framework\assertTrue;

use RyanChandler\LaravelJsonSettings\SettingsRepository;

it('can be resolved from the container', function () {
expect(app(SettingsRepository::class))->toBeInstanceOf(SettingsRepository::class);
Expand Down

0 comments on commit f4f037f

Please sign in to comment.