PHP code example of walkerchiu / php-site-cms

1. Go to this page and download the library: Download walkerchiu/php-site-cms 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/ */

    

walkerchiu / php-site-cms example snippets

 bash
composer 
 php
# PHP

# controller

# You can find more information in Models/Forms folder
use WalkerChiu\SiteCMS\Models\Forms\SiteFormRequest

/**
 * Store a newly created resource in storage.
 *
 * @param  \WalkerChiu\SiteCMS\Models\Forms\SiteFormRequest  $request
 * @return \Illuminate\Http\Response
 */
public function store(SiteFormRequest $request)
{
    # ...
}
 php
# PHP

# route.php

# You can find more information in Middleware folder
use Illuminate\Support\Facades\Route;

Route::group(['middleware' => ['wkSiteEnable']], function() {
    # ...
});