PHP code example of walkerchiu / php-site-mall

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

 bash
composer 
 php
# PHP

# controller

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

/**
 * Store a newly created resource in storage.
 *
 * @param  \WalkerChiu\SiteMall\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() {
    # ...
});