-
Notifications
You must be signed in to change notification settings - Fork 0
LAM使用手册
vicleos edited this page Oct 25, 2017
·
3 revisions
- 下载本项目
- 将所有文件复制到 Helpers/LAM 文件夹中,文件夹请自行创建
- 在控制器中或其他地方调用
use App\Helpers\LAM\AutoMakeFileParser;
- 实例化并使用 LAM :
...
// Sotrage 获取文件的默认路径为 `storage\app\`
$content = Storage::get('exampleRaw.txt');
$autoMaker = new AutoMakeFileParser();
$autoMaker->parse($content)->makeFiles();
...
// 一句话写法
$rst = (new AutoMakeFileParser())->parse(Storage::get('exampleRaw.txt'))->makeFiles();