{"id":18704774,"url":"https://github.com/lancewan/l5-workbench","last_synced_at":"2025-11-09T05:30:25.984Z","repository":{"id":56994945,"uuid":"64640979","full_name":"lanceWan/l5-workbench","owner":"lanceWan","description":null,"archived":false,"fork":false,"pushed_at":"2016-08-02T04:24:19.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-28T06:26:19.728Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lanceWan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-01T06:17:24.000Z","updated_at":"2016-08-10T05:26:32.000Z","dependencies_parsed_at":"2022-08-21T13:50:30.701Z","dependency_job_id":null,"html_url":"https://github.com/lanceWan/l5-workbench","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lanceWan%2Fl5-workbench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lanceWan%2Fl5-workbench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lanceWan%2Fl5-workbench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lanceWan%2Fl5-workbench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lanceWan","download_url":"https://codeload.github.com/lanceWan/l5-workbench/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239567625,"owners_count":19660516,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T12:08:17.968Z","updated_at":"2025-11-09T05:30:25.949Z","avatar_url":"https://github.com/lanceWan.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# l5-workbench\n\n\u003e depends on [https://github.com/pingpong-labs/workbench](https://github.com/pingpong-labs/workbench) ,custom directory and update some code\n\n### Installation\n\nYou can install the package via composer command line by running this following command.\n\n```\ncomposer require iwanli/workbench\n```\n\nAfter the package installed, add `Iwanli\\Workbench\\WorkbenchServiceProvider::class` to your `providers` array in `config/app.php` file.\n\n```\n'providers' =\u003e [\n\n  /*\n   * Laravel Framework Service Providers...\n   */\n     ....\n\n    Iwanli\\Workbench\\WorkbenchServiceProvider::class,\n\n],\n```\n\nAnd the last, publish the package's configuration by running:\n\n```\nphp artisan vendor:publish\n```\n\nThat will publish the `workbench.php` config file to your `config/` folder and you need to set the name and email of package creators on it.\n\n```\n\u003c?php\n\nreturn [\n\n    /*\n    |--------------------------------------------------------------------------\n    | Workbench Author Name\n    |--------------------------------------------------------------------------\n    |\n    | When you create new packages via the Artisan \"workbench\" command your\n    | name is needed to generate the composer.json file for your package.\n    | You may specify it now so it is used for all of your workbenches.\n    |\n    */\n\n    'name' =\u003e '',\n\n    /*\n    |--------------------------------------------------------------------------\n    | Workbench Author E-Mail Address\n    |--------------------------------------------------------------------------\n    |\n    | Like the option above, your e-mail address is used when generating new\n    | workbench packages. The e-mail is placed in your composer.json file\n    | automatically after the package is created by the workbench tool.\n    |\n    */\n\n    'email' =\u003e '',\n    /**\n     * basic root directory name\n     */\n    'root_dir' =\u003e 'packages',\n\n    /**\n     * create directory in src\n     */\n    'support_directory' =\u003e [\n        'config',\n        'resources/lang',\n        'migrations',\n        'resources/views',\n        'Facades'\n    ]\n\n];\n```\n\n## Autoloading Workbench\n\nYou can autoload the workbench by adding this following command to your `bootstrap/autoload.php` file. Put this following command at the very bottom of script.\n\n```php\n/*\n|--------------------------------------------------------------------------\n| Register The Workbench Loaders\n|--------------------------------------------------------------------------\n|\n| The Laravel workbench provides a convenient place to develop packages\n| when working locally. However we will need to load in the Composer\n| auto-load files for the packages so that these can be used here.\n|\n*/\nif (is_dir($workbench = __DIR__.'/../packages'))\n{\n\tIwanli\\Workbench\\Starter::start($workbench);\n}\n```\n\n### Creating A Package\n\n\u003e Before you create a package, you need to update `name` and `email` config value in your `config/workbench.php` file.\n\nCreating a basic package.\n\n```\nphp artisan workbench vendor/package\n```\n\nCreating a package with generating some scaffold resources.\n\n```\nphp artisan workbench vendor/package --resources\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flancewan%2Fl5-workbench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flancewan%2Fl5-workbench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flancewan%2Fl5-workbench/lists"}