{"id":15764706,"url":"https://github.com/ctf0/laravel-helper-cmnds","last_synced_at":"2025-08-07T23:22:30.370Z","repository":{"id":56959944,"uuid":"64903490","full_name":"ctf0/Laravel-Helper-Cmnds","owner":"ctf0","description":"Some Helper Console Cmnds For Laravel To Speedup The Usual Workflow","archived":false,"fork":false,"pushed_at":"2023-01-03T23:14:42.000Z","size":85,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-11T12:19:27.694Z","etag":null,"topics":["console","laravel","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ctf0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"ctf0"}},"created_at":"2016-08-04T04:52:03.000Z","updated_at":"2023-01-03T22:54:01.000Z","dependencies_parsed_at":"2023-02-01T12:46:40.592Z","dependency_job_id":null,"html_url":"https://github.com/ctf0/Laravel-Helper-Cmnds","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctf0%2FLaravel-Helper-Cmnds","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctf0%2FLaravel-Helper-Cmnds/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctf0%2FLaravel-Helper-Cmnds/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctf0%2FLaravel-Helper-Cmnds/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ctf0","download_url":"https://codeload.github.com/ctf0/Laravel-Helper-Cmnds/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223849432,"owners_count":17213640,"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":["console","laravel","php"],"created_at":"2024-10-04T12:04:28.883Z","updated_at":"2024-11-09T16:03:23.435Z","avatar_url":"https://github.com/ctf0.png","language":"PHP","funding_links":["https://github.com/sponsors/ctf0"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n    Laravel Helper Cmnds\n    \u003cbr\u003e\n    \u003ca href=\"https://packagist.org/packages/ctf0/helper-cmnds\"\u003e\u003cimg src=\"https://img.shields.io/packagist/v/ctf0/helper-cmnds.svg\" alt=\"Latest Stable Version\" /\u003e\u003c/a\u003e \u003ca href=\"https://packagist.org/packages/ctf0/helper-cmnds\"\u003e\u003cimg src=\"https://img.shields.io/packagist/dt/ctf0/helper-cmnds.svg\" alt=\"Total Downloads\" /\u003e\u003c/a\u003e\n\u003c/h1\u003e\n\nA helper console cmnds to speedup the usual workflow.\n\n\u003cbr\u003e\n\n## Installation\n\n- `composer require ctf0/helper-cmnds`\n\n\u003cbr\u003e\n\n## Usage\n\n```bash\nex:clear       # Clear (Bootstrap-Files/Cache/Config/Route-Cache/View/Session/Compiled/Laravel-LogFile/Pass-Resets)\nex:finetune    # Cache (Bootstrap-Files/View/Config/Routes/Events)\nex:make        # Make (Controller/Model/Migration/Seeder/Route/View/Validation)\n```\n\n**1-** ex:clear\n\n\u003e - php artisan optimize:clear\n\u003e - Cache::store('file')-\u003eflush();\n\u003e - Session::flush()\n\u003e - File::cleanDirectory(config('session.files'));\n\u003e - File::put(storage_path('logs/laravel.log'), '');\n\u003e - php artisan auth:clear-resets `if the table was migrated`\n\u003e - composer dump-autoload\n\n* an event gets fired when this command has finished in case you want to run something else after it, and you can hook into it through:\n\n    ```php\n    // app/Providers/EventServiceProvider.php\n    public function boot()\n    {\n        parent::boot();\n\n        Event::listen('clearAll.done', function () {\n            // any other cmnds you want to run\n        });\n    }\n    ```\n\n\u003cbr\u003e\n\n**2-** ex:finetune\n\n\u003e - composer dump-autoload\n\u003e - php artisan optimize\n\u003e - php artisan view:cache\n\u003e - php artisan event:cache\n\n\u003cbr\u003e\n\n**3-** ex:make (for a two word className ex. `SubPage`, write it as `sub_page`)\n\n\u003e - Validation [y/N] [Read More](https://ctf0.wordpress.com/2016/10/16/extend-formrequest-to-allow-more-functionality-in-laravel-v5-3/).\n\u003e     - create 2 classes for **Update \u0026 Store** `php artisan make:request {name}`\n\u003e     - register the **FormRequest** classes to the controller automatically\n\u003e\n\u003e - Controller\n\u003e     - if \"Route Model Binding\" we will add the **Model** class to the controller automatically\n\u003e     - php artisan make:controller --resource\n\u003e\n\u003e - Model \u0026 Migration\n\u003e     - create `App/Models/BaseModel.php` if not found\n\u003e     - create `App/Models/ClassName.php`\n\u003e     - `php artisan make:migration {name} --create`\n\u003e\n\u003e - Seeder [y/N]\n\u003e     - php artisan make:seeder\n\u003e     - create a seeder file \u0026 register it under `DatabaseSeeder::run()`.\n\u003e\n\u003e - Routes [y/N] [Also Check](http://code4fun.io/post/how-to-share-data-with-all-views-in-laravel-5-3-the-right-way)\n\u003e     - creates a new folder in `routes/WebRoutes/ClassName.php`.\n\u003e     - append a loop to `web.php` to include all the files from the `routes/WebRoutes` folder.\n\u003e\n\u003e - Views [y/N]\n\u003e     - create a new folder in `resources/views/pages/ClassName/` + files for **'index/create/show/edit'**.\n\n\u003cbr\u003e\n\n### Security\n\nIf you discover any security-related issues, please email [ctf0-dev@protonmail.com](mailto:ctf0-dev@protonmail.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctf0%2Flaravel-helper-cmnds","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fctf0%2Flaravel-helper-cmnds","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctf0%2Flaravel-helper-cmnds/lists"}