定制 cedricziel/l5-webartisan 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cedricziel/l5-webartisan

Composer 安装命令:

composer require cedricziel/l5-webartisan

包简介

Artisan for the web. Execute Artisan command on a webpage.

README 文档

README

Provides a browser-based artisan console for your application.

Warning!

This addon is insecure by default! You need to secure the endpoints or strangers will execute commands on your application.

Configuration

Add the ServiceProvider to config/app.php:

    CedricZiel\Webartisan\WebartisanServiceProvider:class,

Now you need to override the routes shipped by the plugin, to secure them with a middleware of your choice.

Here's an example to secure the endpoints with the auth middleware (app/Providers/RouteServiceProvider):

    /**
     * Define the routes for the application.
     *
     * @param  \Illuminate\Routing\Router $router
     *
     * @return void
     */
    public function map(Router $router)
    {
        $router->group(['namespace' => $this->namespace], function ($router) {
            require app_path('Http/routes.php');
        });

        /**
         * Webartisan routes
         */
        $router->group([
            'namespace'  => '\CedricZiel\Webartisan\Http\Controllers',
            'middleware' => ['web', 'auth']
        ], function ($router) {
            Route::get('artisan', [
                'as'         => 'artisan',
                'middleware' => 'auth',
                'uses'       => 'WebartisanController@show'
            ]);

            Route::post('artisan', [
                'as'         => 'artisan',
                'middleware' => 'auth',
                'uses'       => 'WebartisanController@execute'
            ]);
        });
    }

License & Credits

This library is based on the work of Ron Shpasser (https://github.com/shpasser/GaeSupportL5).

This library is licensed under the MIT License.

统计信息

  • 总下载量: 64
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固