Comments (5)
To work properly, you need to use Filament::serving
I recommend adding this to the documentation.
Example:
add in App\Providers\AppServiceProvider
:
public function boot()
{
Filament::serving(function () {
FilamentNavigation::addItemType('Routes', [
Select::make('route')
->searchable()
->options(function () {
return Helper::routeList();
}),
TextInput::make('params')->label('explode params by separator "|" '),
]);
FilamentNavigation::addItemType('BlogCategories', [
Select::make('list')
->multiple()
->options(function () {
return Helper::blogCategories();
}),
]);
});
}
from filament-navigation.
@BelyaevAD Are you on the latest version?
from filament-navigation.
Yes, all packages have latest version.
Tried doing the following steps:
sail composer install
sail composer run-script post-autoload-dump
sail composer run-script post-update-cmd
sail artisan optimize:clear
sail artisan octane:reload
I use sail+octane+roadrunner in production.
And it works correctly through tinker:
Maybe the problem is this: livewire/livewire#3987
from filament-navigation.
Hm, that shouldn't be a problem. The singleton is bound as a scoped
singleton meaning it only lasts as long as a single request, even inside of Octane...
from filament-navigation.
Feel free to open a PR!
from filament-navigation.
Related Issues (16)
- Unable to add items HOT 1
- Spanish translation Filament V2
- Handle changes after Name change of menu. Can break sites if a user changed the name without noticing the handle change HOT 5
- Unable to install package in Filament 3.X HOT 5
- Please add the ability for localization! HOT 4
- Custom item types error when using searchable select
- Searchable item type failing when selected HOT 2
- Still a small bug with custom item types using searchable HOT 7
- Menu Item Order HOT 9
- addItemType breaks translations HOT 3
- Allow PHP 8.0 HOT 1
- Differing schemas state persisted HOT 1
- Support v3 filament
- Livewire issues when accessing menu HOT 5
- Updrade it with filament v3 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 filament-navigation.