### Install Krayin Package Generator using Composer (PHP) Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md Installs the Krayin Package Generator package into your Krayin v2.0.x project using Composer. This command adds the package as a dependency. ```php composer require krayin/krayin-package-generator ``` -------------------------------- ### Generate New Krayin Package - Basic Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md This command generates all necessary files and the basic directory structure for a new Krayin package. It automates tasks like registering routes and views. ```PHP php artisan package:make ACME/TestPackage ``` -------------------------------- ### Generating Listener Class with Force Flag (PHP) Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md This command creates a new listener class named `TestListener` within the `ACME/TestPackage` package, similar to the standard command. The `--force` flag ensures that the class file will be overwritten if it already exists in the `packages/ACME/TestPackage/src/Listeners` directory. ```bash php artisan package:make-listener TestListener ACME/TestPackage --force ``` -------------------------------- ### Generating Service Provider Class with Force Flag (PHP) Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md This command creates a new service provider class named `TestServiceProvider` within the `ACME/TestPackage` package, similar to the standard command. The `--force` flag ensures that the class file will be overwritten if it already exists in the `packages/ACME/TestPackage/src/Providers` directory. ```bash php artisan package:make-provider TestServiceProvider ACME/TestPackage --force ``` -------------------------------- ### Generating Repository Class with Force Flag (PHP) Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md This command creates a new repository class named `TestRepository` within the `ACME/TestPackage` package, similar to the standard command. The `--force` flag ensures that the class file will be overwritten if it already exists in the `packages/ACME/TestPackage/src/Repositories` directory. ```bash php artisan package:make-repository TestRepository ACME/TestPackage --force ``` -------------------------------- ### Generating Module Service Provider Class with Force Flag (PHP) Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md This command creates a new module service provider class named `TestServiceProvider` within the `ACME/TestPackage` package, similar to the standard command. The `--force` flag ensures that the class file will be overwritten if it already exists in the `packages/ACME/TestPackage/src/Providers` directory. ```bash php artisan package:make-module-provider TestServiceProvider ACME/TestPackage --force ``` -------------------------------- ### Generating Datagrid Class with Force Flag (PHP) Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md This command creates a new datagrid class named `TestDataGrid` within the `ACME/TestPackage` package, similar to the standard command. The `--force` flag ensures that the class file will be overwritten if it already exists in the `packages/ACME/TestPackage/src/Datagrids` directory. ```bash php artisan package:make-datagrid TestDataGrid ACME/TestPackage --force ``` -------------------------------- ### Generating Middleware Class with Force Flag (PHP) Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md This command creates a new middleware class named `TestMiddleware` within the `ACME/TestPackage` package, similar to the standard command. The `--force` flag ensures that the class file will be overwritten if it already exists in the `packages/ACME/TestPackage/src/Http/Middleware` directory. ```bash php artisan package:make-middleware TestMiddleware ACME/TestPackage --force ``` -------------------------------- ### Generate New Krayin Package - Plain Structure Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md Use this command with the `--plain` argument to generate only the directory structure for a new Krayin package, excluding template files. This is useful if you prefer to create files manually. ```PHP php artisan package:make ACME/TestPackage --plain ``` -------------------------------- ### Generating Listener Class with php artisan (PHP) Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md This command creates a new listener class named `TestListener` within the `ACME/TestPackage` package. The file will be placed in the `packages/ACME/TestPackage/src/Listeners` directory. ```bash php artisan package:make-listener TestListener ACME/TestPackage ``` -------------------------------- ### Generating Service Provider Class with php artisan (PHP) Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md This command creates a new service provider class named `TestServiceProvider` within the `ACME/TestPackage` package. The file will be placed in the `packages/ACME/TestPackage/src/Providers` directory. ```bash php artisan package:make-provider TestServiceProvider ACME/TestPackage ``` -------------------------------- ### Generate New Krayin Package - Force Overwrite Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md If a package directory already exists, the simple `package:make` command will fail. Use the `--force` argument to overwrite existing files and directories when generating a new package. ```PHP php artisan package:make ACME/TestPackage --force ``` -------------------------------- ### Generating Command Class with Force Flag (PHP) Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md This command creates a new console command class named `TestCommand` within the `ACME/TestPackage` package, similar to the standard command. The `--force` flag ensures that the class file will be overwritten if it already exists in the `packages/ACME/TestPackage/src/Console/Commands` directory. ```bash php artisan package:make-command TestCommand ACME/TestPackage --force ``` -------------------------------- ### Generate New Krayin Package Routes File - Force Overwrite Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md If a routes file already exists for the package, use the `--force` argument with this command to overwrite the existing routes file. ```PHP php artisan package:make-route ACME/TestPackage --force ``` -------------------------------- ### Generating Repository Class with php artisan (PHP) Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md This command creates a new repository class named `TestRepository` within the `ACME/TestPackage` package. The file will be placed in the `packages/ACME/TestPackage/src/Repositories` directory. ```bash php artisan package:make-repository TestRepository ACME/TestPackage ``` -------------------------------- ### Generating Datagrid Class with php artisan (PHP) Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md This command creates a new datagrid class named `TestDataGrid` within the `ACME/TestPackage` package. The file will be placed in the `packages/ACME/TestPackage/src/Datagrids` directory. ```bash php artisan package:make-datagrid TestDataGrid ACME/TestPackage ``` -------------------------------- ### Generating Module Service Provider Class with php artisan (PHP) Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md This command creates a new module service provider class named `TestServiceProvider` within the `ACME/TestPackage` package. The file will be placed in the `packages/ACME/TestPackage/src/Providers` directory. ```bash php artisan package:make-module-provider TestServiceProvider ACME/TestPackage ``` -------------------------------- ### Generating Middleware Class with php artisan (PHP) Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md This command creates a new middleware class named `TestMiddleware` within the `ACME/TestPackage` package. The file will be placed in the `packages/ACME/TestPackage/src/Http/Middleware` directory. ```bash php artisan package:make-middleware TestMiddleware ACME/TestPackage ``` -------------------------------- ### Generate New Krayin Package Controller - Force Overwrite Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md If a controller with the specified name already exists in the package, use the `--force` argument with this command to overwrite the existing file. ```PHP php artisan package:make-controller TestController ACME/TestPackage --force ``` -------------------------------- ### Generating Event Class with Force Flag (PHP) Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md This command creates a new event class named `TestEvent` within the `ACME/TestPackage` package, similar to the standard command. The `--force` flag ensures that the class file will be overwritten if it already exists in the `packages/ACME/TestPackage/src/Events` directory. ```bash php artisan package:make-event TestEvent ACME/TestPackage --force ``` -------------------------------- ### Generate New Krayin Package Model - Force Overwrite Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md Use the `--force` argument with this command to overwrite the model class, model proxy class, and model contract files if they already exist for the specified model name. ```PHP php artisan package:make-model TestModel ACME/TestPackage --force ``` -------------------------------- ### Generate New Krayin Package Routes File Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md This command generates a new routes file for the specified Krayin package. After creation, you must manually register this routes file within the package's service provider. ```PHP php artisan package:make-route ACME/TestPackage ``` -------------------------------- ### Generate New Krayin Package Model Proxy - Force Overwrite Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md If a model proxy class with the specified name already exists in the package, use the `--force` argument with this command to overwrite the existing file. ```PHP php artisan package:make-model-proxy TestModelProxy ACME/TestPackage --force ``` -------------------------------- ### Generate New Krayin Package Model Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md This command generates three related files for a new model within the specified Krayin package: the model class, a model proxy class, and a model contract. ```PHP php artisan package:make-model TestModel ACME/TestPackage ``` -------------------------------- ### Generating Command Class with php artisan (PHP) Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md This command creates a new console command class named `TestCommand` within the `ACME/TestPackage` package. The file will be placed in the `packages/ACME/TestPackage/src/Console/Commands` directory. ```bash php artisan package:make-command TestCommand ACME/TestPackage ``` -------------------------------- ### Generate New Krayin Package Controller Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md This command generates a new controller class within the specified Krayin package. You need to provide the desired controller name and the package namespace. ```PHP php artisan package:make-controller TestController ACME/TestPackage ``` -------------------------------- ### Generating Notification Class with Force Flag (PHP) Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md This command creates a new notification class named `TestNotification` within the `ACME/TestPackage` package, similar to the standard command. The `--force` flag ensures that the class file will be overwritten if it already exists in the `packages/ACME/TestPackage/src/Notifications` directory. ```bash php artisan package:make-notification TestNotification ACME/TestPackage --force ``` -------------------------------- ### Generating Mail Class with Force Flag (PHP) Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md This command creates a new mail class named `TestMail` within the `ACME/TestPackage` package, similar to the standard command. The `--force` flag ensures that the class file will be overwritten if it already exists in the `packages/ACME/TestPackage/src/Mail` directory. ```bash php artisan package:make-mail TestMail ACME/TestPackage --force ``` -------------------------------- ### Generate New Krayin Package Seeder Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md This command generates a new seeder class within the `src/Database/Seeders` directory of the specified Krayin package. ```PHP php artisan package:make-seeder TestSeeder ACME/TestPackage ``` -------------------------------- ### Generate New Krayin Package Seeder - Force Overwrite Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md If a seeder class with the specified name already exists in the package, use the `--force` argument with this command to overwrite the existing file. ```PHP php artisan package:make-seeder TestSeeder ACME/TestPackage --force ``` -------------------------------- ### Generate New Krayin Package Migration Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md This command generates a new migration class within the `src/Database/Migrations` directory of the specified Krayin package. ```PHP php artisan package:make-migration TestMigration ACME/TestPackage ``` -------------------------------- ### Generate New Krayin Package Model Contract Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md This command generates a new model contract interface within the `src/Contracts` directory of the specified Krayin package. ```PHP php artisan package:make-model-contract TestContract ACME/TestPackage ``` -------------------------------- ### Generating Event Class with php artisan (PHP) Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md This command creates a new event class named `TestEvent` within the `ACME/TestPackage` package. The file will be placed in the `packages/ACME/TestPackage/src/Events` directory. ```bash php artisan package:make-event TestEvent ACME/TestPackage ``` -------------------------------- ### Generate New Krayin Package Model Contract - Force Overwrite Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md If a model contract with the specified name already exists in the package, use the `--force` argument with this command to overwrite the existing file. ```PHP php artisan package:make-model-contract TestDataGrid ACME/TestPackage --force ``` -------------------------------- ### Generate New Krayin Package Model Proxy Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md This command specifically generates a new model proxy class within the `src/Models` directory of the specified Krayin package. ```PHP php artisan package:make-model-proxy TestModelProxy ACME/TestPackage ``` -------------------------------- ### Generate New Krayin Package Request - Force Overwrite Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md If a request class with the specified name already exists in the package, use the `--force` argument with this command to overwrite the existing file. ```PHP php artisan package:make-request TestRequest ACME/TestPackage --force ``` -------------------------------- ### Generating Notification Class with php artisan (PHP) Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md This command creates a new notification class named `TestNotification` within the `ACME/TestPackage` package. The file will be placed in the `packages/ACME/TestPackage/src/Notifications` directory. ```bash php artisan package:make-notification TestNotification ACME/TestPackage ``` -------------------------------- ### Generate New Krayin Package Request Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md This command generates a new request class within the `src/Http/Requests` directory of the specified Krayin package. ```PHP php artisan package:make-request TestRequest ACME/TestPackage ``` -------------------------------- ### Generating Mail Class with php artisan (PHP) Source: https://github.com/krayin/krayin-package-generator/blob/master/README.md This command creates a new mail class named `TestMail` within the `ACME/TestPackage` package. The file will be placed in the `packages/ACME/TestPackage/src/Mail` directory. ```bash php artisan package:make-mail TestMail ACME/TestPackage ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.