Download the PHP package mishajib/laravel-settings without Composer
On this page you can find all versions of the php package mishajib/laravel-settings. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mishajib/laravel-settings
More information about mishajib/laravel-settings
Files in mishajib/laravel-settings
Package laravel-settings
Short Description This package manage your site basic settings like - site title, logo etc. You can also add your custom setting using this package.
License MIT
Informations about the package laravel-settings
Laravel Settings By MI SHAJIB
We use settings in every application. Which we have to do again and again in every application. For this I have created a package through which you can create settings very quickly. You can also make the settings by running the command if you want.
Installation
You can install the package via composer:
Laravel uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.
Laravel without auto-discovery:
If you don't use auto-discovery, add the ServiceProvider to the $providers
array in config file config/app.php
If you want to use the facade to log messages, add this to your facades in app.php:
You can also publish vendor and run the migrations with:
This is the contents of the published config file:
Usage
Commands
Create Command
This command will create setting and save into settings table. This command take two arguments - setting name and setting value. Setting name should be string, can't use space or '-'. Also setting value should be string. Setting key example - site_title, logo etc. Just write command and hit enter then it will ask for arguments. After giving arguments setting will be created.
Update Command
This command will update setting and save into settings table. This command take two arguments - setting name and setting value. Setting name should be string, can't use space or '-'. Also setting value should be string. Setting key example - site_title, logo etc. Just write command and hit enter then it will ask for arguments. After giving arguments setting will be updated.
Forget Command
This command will delete setting from settings table. This command take one argument - setting name/key. Just write command and hit enter then it will ask for argument. After give the argument setting will be deleted.
Show Command
This command will show all setting from settings table. Just write command and hit enter and get all settings.
License
The MIT License (MIT). Please see License File for more information.