PHP code example of veiliglanceren / laravel-oop-config

1. Go to this page and download the library: Download veiliglanceren/laravel-oop-config 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/ */

    

veiliglanceren / laravel-oop-config example snippets


use App\Config\MailConfig;

$mailConfig = app(MailConfig::class);

$host = $mailConfig->host();
$fromAddress = $mailConfig->fromAddress();

$fromAddress = $mailConfig->fromAddress();
bash
php artisan vendor:publish --tag=oop-config
bash
php artisan make:config mail
bash
php artisan vendor:publish --tag=stubs