编辑
2022-06-26
技术
00

roles-and-permissions-for-laravel-apps.png 经过多年开发,56 次发布,130万下载,并且超过2800的主动关注 Bouncer 终于来到了 1.0 版本。 在相当长的一段时间里,它一直非常可靠和稳定,并被世界各地无数的app用于生产。

这是我个人的更新,包含了我多年来的一些思考——从最初到最终发行。关于如何每天使用Bouncer的技术信息,请查看 the extensive documentation 或者在 The Laravel Podcast 听我和马特·斯托弗讨论。

编辑
2022-06-26
技术
00

terminal-an-elegant-wrapper-around-the-symfony-process-component.png

Terminal 是 Titas Gailius 提供的一个简洁的 PHP 扩展包,它封装了 “Symfony 的 Process 组件”,并且拥有流畅的接口。这使得执行终端命令更加轻松便捷。

编辑
2022-06-24
日常
00

travel-notes-of-abc-training-part01-xizang-lasa.jpg

编辑
2022-06-24
技术
00
shell
sed -i -r 's#http://(archive|security).ubuntu.com#https://mirrors.aliyun.com#g' /etc/apt/sources.list && apt-get update
编辑
2022-06-23
技术
00

1. 首先备份当前配置文件

shell
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

2. 下载新的 CentOS-Base.repo 到 /etc/yum.repos.d

CentOS8

shell
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo

CentOS7

shell
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

3. 运行 yum makecache 生成缓存

shell
yum makecache