Comments (4)
If I understand correctly, you want there to be a console::console.filter
config with a value of whitelist
that would be used in:
Route::group(array('before' => Config::get('console.filter', Config::get('console::console.filter'))), function () {
// routes
})
so you could replace it with your own, right?
from laravel-console.
It is possible, however configuration would be lost after upgrade :)
Mior Muhammad Zaki
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
On Sunday, October 28, 2012 at 6:38 PM, Darsain wrote:
If I understand correctly, you want there to be a console::console.filter config with a value of whitelist that would be used in:
Route::group(array('before' => Config::get('console.filter', Config::get('console::console.filter'))), function () { // routes })so you could replace it with your own, right?
—
Reply to this email directly or view it on GitHub (#1 (comment)).
from laravel-console.
And that's why all config is loaded from console.option
, and falls back to console::console.option
(as it is illustrated in my code snippet above). If you are changing the config in bundles/console/config/console.php
, read the config documentation section that explains how to change the config and keep it there regardless of upgrades.
And is this what you are asking for anyway? I'm not sure if I understand you, because Would it be possible to use filter instead of whitelist? doesn't make sense, as whitelist IS a filter.
So let me rephrase: Are you asking to have an option to use a CUSTOM filter for console routes? I.e. the very thing illustrated in my code snipped above?
from laravel-console.
I hope this solves your problem. But be aware that having this bundle on production servers is dangerous.
from laravel-console.
Related Issues (20)
- Migration/Seeding PDO::quote() expects parameter 1 to be string HOT 9
- Screenshot on README uses Laravel 3 order_by instead of orderBy
- Assets published with the wrong name HOT 1
- Reduce Font Size HOT 4
- Unneded variable $restful HOT 1
- Code ended unexpectedly HOT 11
- Not compatible with Laravel 4.1 HOT 1
- Routes do not work. HOT 2
- Error when executing code HOT 3
- Cannot focus editor HOT 2
- Broken in 4.2? HOT 4
- How to use with Homestead? HOT 2
- Tabs (feature request) HOT 1
- NotFoundHttpException HOT 6
- Refactor front-end
- Add queries bookmark feature please HOT 1
- storing snippets HOT 1
- Deprecate in favor of artisan tinker HOT 17
- Standalone package based on this library HOT 3
- I ask you to allow me make it reborn 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-console.