Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.07 KB

README.md

File metadata and controls

45 lines (30 loc) · 1.07 KB

Settings package for Laravel

Version Downloads

This package is for managing most basic settings in your laravel application like site title, site logo etc. You can add your custom settings using this package.

Getting Started

1. Install

Run the following command:

composer require robiussani152/settings

2. Register (for Laravel < 5.5)

Register the service provider in config/app.php

Robiussani152\Settings\SettingServiceProvider::class,

Add alias if you want to use the facade.

'Settings' => Robiussani152\Settings\Facades\Settings::class,

Usage

You can use the facade Setting::get('foo')

Facade

Settings::get('foo');
Settings::set('foo', 'bar');
Settings::forget('foo');
$settings = Settings::all();

License

The MIT License (MIT). Please see LICENSE for more information.