Giter Site home page Giter Site logo

Comments (3)

LibbyJax avatar LibbyJax commented on May 31, 2024 1

Added pull request: #15

from waterline.

LibbyJax avatar LibbyJax commented on May 31, 2024

Just for some additional context, here is the output of my "php artisan route:list" after I configure the HORIZON_PATH environment variable to "admin/horizon":
GET|HEAD admin/horizon/api/batches .................................................... horizon.jobs-batches.index › Laravel\Horizon › BatchesController@index POST admin/horizon/api/batches/retry/{id} ......................................... horizon.jobs-batches.retry › Laravel\Horizon › BatchesController@retry GET|HEAD admin/horizon/api/batches/{id} ................................................. horizon.jobs-batches.show › Laravel\Horizon › BatchesController@show GET|HEAD admin/horizon/api/jobs/completed ..................................... horizon.completed-jobs.index › Laravel\Horizon › CompletedJobsController@index GET|HEAD admin/horizon/api/jobs/failed .............................................. horizon.failed-jobs.index › Laravel\Horizon › FailedJobsController@index GET|HEAD admin/horizon/api/jobs/failed/{id} ........................................... horizon.failed-jobs.show › Laravel\Horizon › FailedJobsController@show GET|HEAD admin/horizon/api/jobs/pending ........................................... horizon.pending-jobs.index › Laravel\Horizon › PendingJobsController@index POST admin/horizon/api/jobs/retry/{id} ................................................. horizon.retry-jobs.show › Laravel\Horizon › RetryController@store GET|HEAD admin/horizon/api/jobs/silenced ........................................ horizon.silenced-jobs.index › Laravel\Horizon › SilencedJobsController@index GET|HEAD admin/horizon/api/jobs/{id} ............................................................... horizon.jobs.show › Laravel\Horizon › JobsController@show GET|HEAD admin/horizon/api/masters ................................................ horizon.masters.index › Laravel\Horizon › MasterSupervisorController@index GET|HEAD admin/horizon/api/metrics/jobs ............................................ horizon.jobs-metrics.index › Laravel\Horizon › JobMetricsController@index GET|HEAD admin/horizon/api/metrics/jobs/{id} ......................................... horizon.jobs-metrics.show › Laravel\Horizon › JobMetricsController@show GET|HEAD admin/horizon/api/metrics/queues ...................................... horizon.queues-metrics.index › Laravel\Horizon › QueueMetricsController@index GET|HEAD admin/horizon/api/metrics/queues/{id} ................................... horizon.queues-metrics.show › Laravel\Horizon › QueueMetricsController@show GET|HEAD admin/horizon/api/monitoring ................................................ horizon.monitoring.index › Laravel\Horizon › MonitoringController@index POST admin/horizon/api/monitoring ................................................ horizon.monitoring.store › Laravel\Horizon › MonitoringController@store GET|HEAD admin/horizon/api/monitoring/{tag} ................................ horizon.monitoring-tag.paginate › Laravel\Horizon › MonitoringController@paginate DELETE admin/horizon/api/monitoring/{tag} .................................. horizon.monitoring-tag.destroy › Laravel\Horizon › MonitoringController@destroy GET|HEAD admin/horizon/api/stats ...................................................... horizon.stats.index › Laravel\Horizon › DashboardStatsController@index GET|HEAD admin/horizon/api/workload ...................................................... horizon.workload.index › Laravel\Horizon › WorkloadController@index GET|HEAD admin/horizon/{view?} ........................................................................ horizon.index › Laravel\Horizon › HomeController@index

from waterline.

LibbyJax avatar LibbyJax commented on May 31, 2024

After digging deeper, looks like you already have it covered:
`
/**

  • Register the Waterline routes.
  • @return void
    */
    protected function registerRoutes()
    {
    Route::group([
    'domain' => config('waterline.domain', null),
    'prefix' => config('waterline.path', 'waterline'),
    'namespace' => 'Waterline\Http\Controllers',
    'middleware' => config('waterline.middleware', 'web'),
    ], function () {
    $this->loadRoutesFrom(DIR.'/../routes/web.php');
    });
    }
    `

I simply copied the horizon.php file from config to waterline.php, stripped it to just the variables you have above, and modified the values. Voila, my route is route:list changed. Awesome! I can work on a push request to publish a config file as part of the vendor assets, but it looks like you already planned it.

Once again, thanks for a great project!

from waterline.

Related Issues (8)

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.