Comments (7)
I don't think sentry has anything to do with it. When and how are you calling setExtraColumns
?
from laravel-settings.
Hi anlutro,
I realized I have to place the setExtraColumns into service provider.
I have gotten this error "Illegal offset type in isset or empty" when I use this provider.
<?php namespace app\providers;
use Cartalyst\Sentry\Facades\Laravel\Sentry;
use Illuminate\Support\ServiceProvider;
class SettingsServiceProvider extends ServiceProvider {
public function boot()
{
\Setting::setExtraColumns([
'user_id' => Sentry::getUser()->id
]);
}
public function register()
{
//
}
}
Is there any step which I have missed?
from laravel-settings.
Can you provide the full stacktrace?
from laravel-settings.
It's strange.
There is output on the browser when I do dd(Sentry::getUser())
. It shows NULL
on Command prompt.
from laravel-settings.
Can you check what Config::get('anlutro/l4-settings::store')
is?
from laravel-settings.
It returns an empty array.
This is the content under app/config/packages/anlutro/l4-settings/config.php
return array(
// which type of store to use.
// valid options: 'json', 'database'
'store' => 'database',
// if the json store is used, give the full path to the .json file
// that the store writes to.
'path' => storage_path().'/settings.json',
// if the database store is used, set the name of the table used..
'table' => 'settings',
// If the database store is used, you can set which connection to use. if
// set to null, the default connection will be used.
'connection' => null,
);
from laravel-settings.
It shouldn't return an empty array. I can't tell you why it does, though. Check that the configuration is in the right place, that you added the service provider etc.
from laravel-settings.
Related Issues (20)
- Illuminate\Contracts\Container\BindingResolutionException thrown with message "Target [anlutro\LaravelSettings\SettingStore] is not instantiable while building [anlutro\LaravelSettings\SaveMiddleware]." HOT 1
- Passing all digits in key causes error while updating settings later HOT 1
- got "syntax error, unexpected ')' when using 0.11.1 HOT 2
- Returning an array of settings. HOT 4
- Add support for deferred service provider for Laravel >=5.8
- Does it support Laravel 8? HOT 1
- Dynamic database setting HOT 4
- RTL Support HOT 1
- Laravel 9? HOT 2
- set empty array will throw Exception
- Can anlutro/l4-settings work with MongoDB ? HOT 1
- any idea if this works for Laravel 9.x? HOT 1
- Settings to not save when using DB transactions HOT 2
- Incorrect key is returned in SettingsManager->all() HOT 4
- Hidden keys
- Custom setting store doesn't use cache (or incorrect instructions) HOT 4
- Add support for NULL setting value to DatabaseSettingStore HOT 1
- Support Laravel 10 HOT 1
- bug: multiple `setExtraColumns` calls cause issues with values not being cleared HOT 4
- forgetting or deleting a setting from database is not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-settings.