PHP code example of promatik / create-dummy-operation-for-backpack

1. Go to this page and download the library: Download promatik/create-dummy-operation-for-backpack library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

promatik / create-dummy-operation-for-backpack example snippets


use \Promatik\CreateDummyOperation\Http\Controllers\Operations\CreateDummyOperation;

'operations' => [
    ...
    'createDummy' => [
        // environments where the button should appear (default is ['local', 'testing'])
        'environment' => ['local'],

        // default value for the number of entries to be added (default is 25)
        'default' => 10,
    ],
bash
php artisan vendor:publish --provider="Promatik\CreateDummyOperation\AddonServiceProvider" --tag="views"
bash
php artisan vendor:publish --provider="Promatik\CreateDummyOperation\AddonServiceProvider" --tag="lang"