File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed
Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -178,35 +178,6 @@ operation will be considered truthy, if you want to execute an `AND` operation i
178178 ->if('reason truthy false'),
179179]
180180```
181- ## Notes
182-
183- While inspired by [ nova-dependency-container] ( https://github.com/epartment/nova-dependency-container ) ,
184- ConditionalContainer takes a different approach to solve somewhat the same problem.
185- However, you can expect no issues with any third-party package at all!! as the way it was implemented
186- tries to be the least intrusive as possible.
187-
188- However it hasn't yet been battle-tested against every use case out there but my own, so if you find any issue
189- please let us know or if you know how to fix it don't hesitate to submit a PR :)
190-
191- ## Roadmap
192-
193- - [x] Add more operators such as ` between ` , ` contains ` , ` startWith / endWith ` , ` length ` etc..
194- - [x] Add Support for depending on a field that is within another ConditionalContainer, example:
195-
196- ``` php
197- [
198- Text::make('A'),
199-
200- ConditionalContainer::make([ Text::make('B') ])->if('a === foo') // Works!
201- ConditionalContainer::make([ Text::make('C') ])->if('b === foo') // Doesnt work!
202- ConditionalContainer::make([
203- Text::make('D'),
204- ConditionalContainer::make([ Text::make('E') ])->if('d === foo') // Works!
205- ])->if('a === foo')
206-
207- // currently it's not possible to depend on a field that is within a ConditionalContainer as seen on the second ConditionalContainer above
208- ]
209- ```
210181
211182## License
212183
You can’t perform that action at this time.
0 commit comments