Note that your config/app.php file practically has only a return [ ... ]; statement. Modify this file as the following:
<?php
// instead of returning, cache the configuration in a variable
$results = [
/*
|--------------------------------------------------------------------------
| Application Debug Mode
|--------------------------------------------------------------------------
... keep all the the same inside here */
];
// Add this check for the conditional providers and other configurations
if ( env( 'APP_ENV' ) === 'local' )
{
$results['providers'][] = 'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider';
}
// return it
return $results;