Skip to content

iqbalhasandev/laravel-settings-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About Laravel Settings Components

Laravel's missing setting component Feature

Doc:


  • manually add the service provider in your config/app.php file:

    App\Providers\SettingsProvider::class,
    
    • Add those route in yor routes/web.php

      
      Route::prefix('settings')->group(function () {
          Route::get('/', [SettingController::class, 'index'])->name('admin.settings.index');
          Route::get('/{setting}/move-up', [SettingController::class, 'move_up'])->name('admin.settings.moveUp');
          Route::get('/{setting}/move-down', [SettingController::class, 'move_down'])->name('admin.settings.moveDown');
          Route::post('/', [SettingController::class, 'store'])->name('admin.settings.store');
          Route::put('/', [SettingController::class, 'update'])->name('admin.settings.update');
          Route::delete('/{setting}/delete', [SettingController::class, 'destroy'])->name('admin.settings.delete');
          Route::get('/{setting}/unset-value', [SettingController::class, 'unsetValue'])->name('admin.settings.unsetValue');
      });
      
      

We would like to extend our thanks to the following sponsors for funding iqbalhasan.dev development. If you are interested in becoming a sponsor, please email us info@iqbalhasan.dev

Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to IQBAL HASAN via info@iqbalhasan.dev. All security vulnerabilities will be promptly addressed.

License

The iqbalhasan.dev Project is open-sourced software licensed under the MIT license.