PHP code example of jadekun / sku
1. Go to this page and download the library: Download jadekun/sku 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/ */
jadekun / sku example snippets
// key为file
if($request->hasFile('file')) {
$file = $request->file('file');
$path = $file->store('images');
// 返回格式
return ['url'=> Storage::url($path)];
}
$form->sku('sku','商品SKU');
$form->sku('sku','商品SKU');
// 处理数据
$form->saving(function($form) {
dd($form->sku);
});