GithubHelp home page GithubHelp logo

Comments (4)

darsain avatar darsain commented on July 28, 2024

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.

crynobone avatar crynobone commented on July 28, 2024

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.

darsain avatar darsain commented on July 28, 2024

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.

darsain avatar darsain commented on July 28, 2024

I hope this solves your problem. But be aware that having this bundle on production servers is dangerous.

from laravel-console.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.