laravel項目2myPersimmon學習
非歸類用法
1簡易信息聚合(也叫聚合內容)是一種RSS基於XML標準:標準的XML格式
插件Suin\RSSWriter; 文章,有時間實現以下https://www.cnblogs.com/longmsdu/articles/5043561.html
3
foreach ($lists as $key => &$comment) {//就不用使用$list[$key][]’’
$comment[‘md5’]=md5($coommet[‘email’]);
}
4Parsedown 是PHP 的 Markdown 解析器
$comment_text = strip_tags($request->markdown
$comment->content = (new \Parsedown())->text($comment_text);
$comment->markdown = $request->markdown;
5
$this->client_id = $request->getClientIp();//好像是request還是獲取ip
6七牛上傳
通過這個網站生成頭像並上傳到七牛
public function cacheGravatar($email)
{
$gravatar = sprintf("https://cn.gravatar.com/avatar/%s
$disk = QiniuStorage::disk(‘qiniu‘);
$fileName = ‘avatar_‘ . date(‘Y-m-d‘);
$disk->fetch($gravatar, $fileName);
$download = $disk->downloadUrl($fileName, config(‘filesystems.disks.qiniu.protocol‘));
return $download->getUrl();
}
laravel項目2myPersimmon學習