PHP code example of yz-leady / single-article

1. Go to this page and download the library: Download yz-leady/single-article 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/ */

    

yz-leady / single-article example snippets


use LeadySingleArticle;
LeadySingleArticle::getResources($key='单页内容键值');

\Leady\SingleArticle\Resources\SingleArticleResources;
shell script
php artisan vendor:publish --provider="Leady\SingleArticle\ServiceProvider"

php artisan migrate