PHP code example of teresa / carton-box-guard

1. Go to this page and download the library: Download teresa/carton-box-guard 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/ */

    

teresa / carton-box-guard example snippets


return [
    'carton' => [
        'model' => '',
        'table_name' => 'carton_boxes',
    ],
    'polybag' => [
        'model' => '',
        'table_name' => 'polybags',
    ],
    'database_connection' => 'teresa_box',
];

\Teresa\CartonBoxGuard\Providers\CartonBoxGuardServiceProvider::class,

$cartonBoxGuard = new Teresa\CartonBoxGuard();
echo $cartonBoxGuard->echoPhrase('Hello, Teresa!');
bash
php artisan vendor:publish --tag="carton-box-guard-config"