• Stars
    star
    148
  • Rank 249,983 (Top 5 %)
  • Language
    PHP
  • License
    MIT License
  • Created over 4 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Store Laravel application settings in the database.

Settings for Laravel

Latest Version on Packagist Tests Total Downloads PHP from Packagist License

social image

Settings for Laravel allows you to store your application settings in the database. It works alongside of the built-in configuration system that Laravel offers. With this package, you can store application specific settings that wouldn't make sense to store in a configuration file, or that you want end-users to be able to update through your application's UI.

The package also offers caching on a per-setting basis out of the box, so no unnecessary extra queries are performed once a setting has been retrieved. The caching works no matter which driver you choose to use. The package can also encrypt your settings automatically for you as well if you need to store sensitive data such as passwords for a third-party service you need to be able to use later.

To get and retrieve stored settings, you can do it easily with the Settings Facade or by using the settings() helper function:

// Setting
Settings::set('foo', 'bar');
settings()->set('foo', 'bar');
settings(['foo' => 'bar']);

// Retrieving
Settings::get('foo'); // 'bar'
settings()->get('foo');
settings('foo');

Documentation

For documentation, please visit: https://randallwilk.dev/docs/laravel-settings

Installation

You can install the package via composer:

composer require rawilk/laravel-settings

You can publish and run the migrations with:

php artisan vendor:publish --tag="settings-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --tag="settings-config"

You can view the default configuration here: https://github.com/rawilk/laravel-settings/blob/main/config/settings.php

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

Alternatives

Disclaimer

This package is not affiliated with, maintained, authorized, endorsed or sponsored by Laravel or any of its affiliates.

License

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

More Repositories

1

laravel-printing

Direct printing for Laravel apps.
PHP
400
star
2

laravel-form-components

Form components built for Tailwind & Livewire.
PHP
360
star
3

vue-context

A simple vue context menu component.
JavaScript
257
star
4

filament-password-input

Enhanced password input component for filament.
PHP
35
star
5

alpine-ripple

Ripple effect (materialize) for Alpine.js.
JavaScript
21
star
6

laravel-app-key-rotator

Rotate app keys around while re-encrypting data.
PHP
21
star
7

laravel-webauthn

Add webauthn functionality to Laravel.
PHP
20
star
8

yubikey-u2f

Add Yubikey U2F authentication to Laravel.
PHP
15
star
9

laravel-breadcrumbs

Easily add breadcrumbs to a Laravel app.
PHP
13
star
10

laravel-ups

UPS api wrapper for Laravel.
PHP
10
star
11

laravel-base

Useful blade components and functionality for most Laravel projects.
PHP
8
star
12

filament-quill

Quill rich text editor for Filament.
PHP
8
star
13

laravel-casters

A collection of custom casts for Laravel.
PHP
6
star
14

randallwilk.dev

Repo for my personal site.
Blade
4
star
15

new-server-setup

Guide and stack scripts for setting up a new server environment
Shell
3
star
16

profile-filament-plugin

Profile & MFA starter kit for filament.
PHP
3
star
17

filament-inner-nav

Add inner navigation to filament panel pages.
Blade
2
star
18

laravel-form-components.randallwilk.dev

Demo site for Laravel Form Components
PHP
2
star
19

laravel-stubs

Opinionated modifications to the default Laravel stubs.
PHP
2
star
20

laravel-modules

Module management in Laravel
PHP
2
star
21

human-keys

Use stripe-like keys for your models.
PHP
2
star
22

blade

Commonly needed blade components for Laravel apps.
PHP
1
star
23

rawilk

My personal GitHub repository
1
star