src/Resources/Post.php
/**
     * Creates template selection field based on application configuration.
     */
Creates template selection field based on application configuration.
Creates template selection field based on application configuration .
protected function makeTemplatesField(): Select
    {
        return Select::make(__('Template'), 'template')->options(function () {
            $templates = [];
            foreach (config('nova-blog.controller.templates') as $template)
                $templates[$template['name']] = __($template['description']);
            return $templates;
        });
    }
protected function makeTemplatesField ( ) : Select { return Select :: make ( __ ( 'Template' ) , 'template' ) -> options ( function ( ) { $ templates = [ ] ; foreach ( config ( 'nova-blog.controller.templates' ) as $ template ) $ templates [ $ template [ 'name' ] ] = __ ( $ template [ 'description' ] ) ; return $ templates ; } ) ; }
Creates template selection field based on application configuration.
Creates template selection field based on application configuration .