app/Module/AbstractModule.php
final protected function getBlockSetting(int $block_id, string $setting_name, string $default = ''): string
    {
        $settings = app('cache.array')->rememberForever('block_setting' . $block_id, static function () use ($block_id): array {
            return DB::table('block_setting')
                ->where('block_id', '=', $block_id)
                ->pluck('setting_value', 'setting_name')
                ->all();
        });

        return $settings[$setting_name] ?? $default;
    }
final protected function getBlockSetting(int $block_id, string $setting_name, string $default = ''): string
    {
        $settings = app('cache.array')->rememberForever('block_setting' . $block_id, static function () use ($block_id): array {
            return DB::table('block_setting')
                ->where('block_id', '=', $block_id)
                ->pluck('setting_value', 'setting_name')
                ->all();
        });

        return $settings[$setting_name] ?? $default;
    }
final protected function getBlockSetting ( int $ block_id , string $ setting_name , string $ default = '' ) : string { $ settings = app ( 'cache.array' ) -> rememberForever ( 'block_setting' . $ block_id , static function ( ) use ( $ block_id ) : array { return DB :: table ( 'block_setting' ) -> where ( 'block_id' , '=' , $ block_id ) -> pluck ( 'setting_value' , 'setting_name' ) -> all ( ) ; } ) ; return $ settings [ $ setting_name ] ?? $ default ; }
Get a block setting.

Originally, this was just used for the home-page blocks.  Now, it is used by any
module that has repeated blocks of content on the same page.

@param int    $block_id
@param string $setting_name
@param string $default

@return string
Get a block setting .