qcod / laravel-app-settings Goto Github PK
View Code? Open in Web Editor NEWStore settings in database with a manager UI for your Laravel app
License: MIT License
Store settings in database with a manager UI for your Laravel app
License: MIT License
Declaration of Symfony\Component\Translation\TranslatorInterface::setLocale($locale) must be compatible with Symfony\Contracts\Translation\LocaleAwareInterface::setLocale(string $locale)
this error display after installtaion package and when we remove string then come more issues
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
Is it support Php 8
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.
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.
Undefined variable: settingsUI (View: C:\xampp\htdocs\appealsLite\vendor\qcod\laravel-app-settings\src\resources\views_settings.blade.php)
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.
Clear and simple API, and pleasant UI ๐
Hi, Everybody i'need separete in many controllers example
GeneralSettingsController
BuySettingsController
StoreSettingsController
OthersSettingsController
how could i do it
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
Hi!, much better if we can store image like app logo or app favicon, then has a custom upload logic or default .
Thanks :)
Hi ,
Thanks for your great package.
I want to ask is which is the best to access setting from javascript.
I mean form app.js file or vuejs component.
Thanks!
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'
laravel-app-settings/src/routes/web.php
Lines 3 to 10 in 4197ed8
Select in blade value not selected with array value in db
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:
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].
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?
After publishing the view and trying to use my own custom settings page I was thrown this error.
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].
README mentions running migration but I don't see a migration file anywhere.
Any can explain me how to add the same settings for a entire controller without add manually in any public function?
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
Pls add support for php8, i hope, all your dependencies already made this :)
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
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?
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?
Is it possible to use a translation file?
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()
`
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.
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
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.
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();
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.