Code Monkey home page Code Monkey logo

laravel-app-settings's People

Contributors

bibendus83 avatar laravel-shift avatar lloricode avatar saqueib avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

laravel-app-settings's Issues

Class 'Arr' not found

Hi,

I have followed your instructions to setup the package on laravel. I am getting a Class 'Arr' not found error when trying to access the url. I tried another project and also got the same error

Forced to Bootstrap only. Need manual edit on several places for Bulma CSS

You are forcing the CSS with Bootstrap. However, you should add more settings for the form, more classes should be edited from the config. I have to manually change the classes for Bulma CSS framework and remove any bootstrap to make it to work which increases the amount of work. It should be an easy implementation.

Also, it does not support password type input.

seetingUI

possibility I have done something wrong but doing a fresh composer pull and following your guide, Whilst I know hte problem I can't seem to rectify locally.

http://prntscr.com/nse8om

Undefined variable: settingsUI (View: C:\xampp\htdocs\appealsLite\vendor\qcod\laravel-app-settings\src\resources\views_settings.blade.php)

Default value for removed image is different from an image that was never set

I noticed that calling setting('img_setting', 'default_img') on a setting of type image has a different behavior depending if the value has never been set or if the value has been set and then the image has been removed later.
In the first case default_img is returned, in the second one null is returned.
I think that in both cases default_img should be returned.

Nice work

Clear and simple API, and pleasant UI ๐Ÿ˜€

[Help] Separate into multiple controllers

Hi, Everybody i'need separete in many controllers example

GeneralSettingsController
BuySettingsController
StoreSettingsController
OthersSettingsController

how could i do it

Split PAges

How can I split up the settings among multiple pages. When I have alot of settings it becomes a huge page, and I would like to split up sections into separate pages

Image

Hi!, much better if we can store image like app logo or app favicon, then has a custom upload logic or default .

Thanks :)

Custom controller not working

if I change the controller setting it doesn't have any effect because the controller in the routes are hardcoded

// Controller to show and handle save setting 'controller' => '\QCod\AppSettings\Controllers\AppSettingController'

Route::group([
'namespace' => 'QCod\AppSettings\Controllers',
'middleware' => array_merge(['web'], config('app_settings.middleware', []))
], function () {
Route::get(config('app_settings.url'), 'AppSettingController@index');
Route::post(config('app_settings.url'), 'AppSettingController@store');
});

Use in Middleware

Hi,

I am battling to get the value of the settings or checking it. I want to check if the setting is 'yes' then the maintenance page will show if not then not.

I am using it in the middleware and have called it in the boot like you showed me the last time:

Not able to install

When I run composer require qcod/laravel-app-settings it shows the following error. I am using laravel 8

Your requirements could not be resolved to an installable set of packages.
Problem 1
- qcod/laravel-app-settings 1.1.0 requires laravel/framework ~5.4.0|~5.5.0|~5.6.0|~5.7.0|~5.8.0 -> found laravel/framework[v5.4.0, ...,
5.8.x-dev] but it conflicts with your root composer.json require (^8.12).
- qcod/laravel-app-settings[1.2.0, ..., 1.4.0] require php ^7.2 -> your php version (8.0.8) does not satisfy that requirement.
- Root composer.json requires qcod/laravel-app-settings ^1.1 -> satisfiable by qcod/laravel-app-settings[1.1.0, 1.2.0, 1.3.0, 1.4.0].

Localization

Cant use __('something') as in config files the translation class isn't loaded yet.

There something I'm missing maybe? Or would anyone like me to branch and set this up?

Laravel 7

Hi,

Please, update support to Laravel 7.

Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for qcod/laravel-app-settings ^1.2 -> satisfiable by qcod/laravel-app-settings[1.2.0].
- Conclusion: remove laravel/framework v7.0.4
- Conclusion: don't install laravel/framework v7.0.4
- qcod/laravel-app-settings 1.2.0 requires laravel/framework ~5.4.0|~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0 -> satisfiable by laravel/framework[5.4.x-dev, 5.5.x-dev, 5.6.x-dev, 5.7.x-dev, 5.8.x-dev, 6.x-dev].
- Can only install one of: laravel/framework[5.5.x-dev, v7.0.4].
- Can only install one of: laravel/framework[5.6.x-dev, v7.0.4].
- Can only install one of: laravel/framework[5.7.x-dev, v7.0.4].
- Can only install one of: laravel/framework[5.8.x-dev, v7.0.4].
- Can only install one of: laravel/framework[6.x-dev, v7.0.4].
- Can only install one of: laravel/framework[5.4.x-dev, v7.0.4].
- Installation request for laravel/framework (locked at v7.0.4, required as ^7.0) -> satisfiable by laravel/framework[v7.0.4].

Global Settings

Any can explain me how to add the same settings for a entire controller without add manually in any public function?

Laravel Nova

Hey @saqueib ,

that is quite a nice package - great work.. I have a suggestion, though.. Wouldn't it be better to "remove" the UI part in a separate package? This would, in turn, provide the functionality to add a laravel-nova package for creating the UI as well.

Because, actually, Laravel Nova provides most of the UI Builder functionality you have already created..

All the best and cheers

php8 version

Pls add support for php8, i hope, all your dependencies already made this :)

How to user setting based on auth

HI

First of all very nice package. Can you please guide me if i need to add user_id with it so setting will be based upon user whats the best way to achieve it. @saqueib you help will really be appreciated.

** Also what ever i have saved in database when i come back to settings page i cant see it

Thanks alot

ENV Override

Hi there, I was wondering if you have a way to override env settings with your plugin? I have tried numerous ways but in vain. I don't want my client to have to change the env for mail settings for example, but when I use the method it still pulls it from the ENV file. Do you perhaps have detailed documentation for this?

If setting equals

Hi,

Great Laravel package.

Just wondering if there's the ability to show / hide some sections based on a setting.

So for example, I have a section titled "Template Settings" would like to only show this section, if a field titled "Demo" is set to true?

Translation

Is it possible to use a translation file?

Cannot declare class CreateSettingsTable, because the name is already in use

After installing and using the package in laravel 8, I can't rollback my migrations. I even deleted the whole database and try artisan migrate and is throwing me this error in the terminal.

`PHP Fatal error: Cannot declare class CreateSettingsTable, because the name is already in use in /project directory/database/migrations/2017_08_24_000000_create_settings_table.php on line 6

Symfony\Component\ErrorHandler\Error\FatalError

Cannot declare class CreateSettingsTable, because the name is already in use

at database/migrations/2017_08_24_000000_create_settings_table.php:6
2โ–•
3โ–• use Illuminate\Database\Migrations\Migration;
4โ–• use Illuminate\Database\Schema\Blueprint;
5โ–•
โžœ 6โ–• class CreateSettingsTable extends Migration
7โ–• {
8โ–• /**
9โ–• * Set up the options.
10โ–• */

Whoops\Exception\ErrorException

Cannot declare class CreateSettingsTable, because the name is already in use

at database/migrations/2017_08_24_000000_create_settings_table.php:6
2โ–•
3โ–• use Illuminate\Database\Migrations\Migration;
4โ–• use Illuminate\Database\Schema\Blueprint;
5โ–•
โžœ 6โ–• class CreateSettingsTable extends Migration
7โ–• {
8โ–• /**
9โ–• * Set up the options.
10โ–• */

  +1 vendor frames 

2 [internal]:0
Whoops\Run::handleShutdown()
`

unable to locate publishable resources

artisan vendor:publish --provider="QCod\AppSettings\AppSettingsServiceProvider" --tag="config"

C:\xampp\php\php.exe C:\xampp\htdocs\LARAVEL71\artisan vendor:publish --provider=\"QCod\AppSettings\AppSettingsServiceProvider\" --tag=\"config\"
Unable to locate publishable resources.
Publishing complete.

config not serialisable when doing config:cache

When we try to optimise the Laravel performance, one of the common practice we do is cache the config.
However, it can't serialise the config as there's a function in the config
Maybe we will need to adjust a little bit, so that we can exclude the need of the callback in the config

Let's say we have another
app/settings/mutator.php

Then in config, we're just pointing towards different key of the array inside the settings/mutator.php

Image type not compatible with Vapor

When using laravel-vapor, the image will not upload to the compute unit (lambda) before passing to s3.
It will stream the file to s3 (using presign url generated from Laravel), then just passing the path of the uploaded file to move to our target destination.
Reference: https://docs.vapor.build/1.0/resources/storage.html#file-uploads

Is there a way to modify the behaviour of the front end image type to be able to add in the code to stream the file to s3 in front end.

I saw there's a place to mutate the backend logic for image type, where can change to use Storage::copy instead of store.
But in the front end might need to have the ability to overwrite to do that?

If there's anything align to the goal of this package, I'm willing to contribute to the package as well.
Thank you.

Your configuration files are not serializable

laravel 6 , php 7.2

sudo php artisan config:cache


LogicException : Your configuration files are not serializable.

at /var/www/html/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Console/ConfigCacheCommand.php:71
67| require $configPath;
68| } catch (Throwable $e) {
69| // $this->files->delete($configPath);
70|

71| throw new LogicException('Your configuration files are not serializable.', 0, $e);
72| }
73|
74| $this->info('Configuration cached successfully!');
75| }

Exception trace:

1 Error::("Call to undefined method Closure::__set_state()")
/var/www/html/laravel/bootstrap/cache/config.php:298


Triggered by

// settings group
'setting_group' => function() {
return 'user_'.auth()->id();

Publish migration file also

Because of multiple database connections with their own set of migrations grouped in a folder, I would like to suggest that migrations are also published. So that a developer can be more flexible.

Kind regards.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.