首页 > 其他 > 详细

laravel项目2myPersimmon学习

时间:2017-11-16 00:26:21      阅读:334      评论:0      收藏:0      [点我收藏+]

非归类用法

 

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?d=identicon&s=60", md5(strtolower(trim($email))));

    $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学习

原文:http://www.cnblogs.com/keiweila/p/7841738.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!