PHP code example of emizoripx / prepago-bags

1. Go to this page and download the library: Download emizoripx/prepago-bags 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/ */

    

emizoripx / prepago-bags example snippets


        
        use EmizorIpx\PrepagoBags\routes\PrepagoBags;
        ...

        PrepagoBags::routes();
    

        
        


            namespace App\Http\Controllers;


            use EmizorIpx\PrepagoBags\Utils\Presenter as UtilsPresenter;

            class BaseController extends Controller
            {
                

                protected function response($response)
                {
                    ...

                    if ($index == 'none') {
                        ...
                    } else {
                        ...

                        
                        if (request()->

        
        


            namespace App\Http\Controllers;



            class InvoiceController extends BaseController
            {
                ...
                    // EMIZOR-INVOICE-INSERT
                    try {
                        $invoice->emit();
                    } catch (Exception $ex) {
                        return response(['message' => $ex->getMessage()]);;
                    }
                ...
                }
            }