- 博客(8)
- 收藏
- 关注
转载 ubuntu root 声卡没声音
Ubuntu在root用户下,为了安全考虑默认是关闭了声音系统的。如果要开很简单,因为root登录后pulseaudio没有启动。所以要先启动它在启动应该程序里添加pulseaudio --start --log-target=syslog...
2018-12-18 17:20:38 334
转载 pip 更换源
pip国内的一些镜像 阿里云 http://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 豆瓣(douban) http://pypi.douban.com/simple/ 清华大学 https://pypi.tuna.tsinghua.edu.cn/simpl...
2018-12-11 15:14:36 556
转载 laravel middleware 中间件原码分析 之array_reduce getSlice
<?phpinterface Middleware{ public static function handle(Closure $next);}class VerifyCsrfToken implements Middleware{ public static function handle(Closure $next) { ec...
2018-07-23 22:14:40 460
转载 从 1 行代码开始,带你系统性的理解 Laravel Service Container 的核心概念
[Laravel] 从 1 行代码开始,带你系统性的理解 Laravel Service Container 的核心概念 laravel 5.6 的route 注册已转移到app内部实现,而非由RouteServiceProvider提供Laravel /未分类 /[Laravel] 从 1 行代码开始,带你系统性的理解 Laravel Service Container 的核心概念...
2018-07-18 07:41:37 657
转载 laravel eloquent 远程对应模型,各参数详解
假设from表 用a代替 中间表用b 目标表用c 则 $this->hasManyThrough( 'c模型', 'b模型', 'a表与b表关联,在b表中的外键名', 'b表与c表关联,在c表中的外键名', 'a表用于和b表关联的键,在a表中的名字', 'b表用于和c表关联的...
2018-07-15 09:16:37 1006
原创 laravel migrate 出错
修改config/database.php中的mysql字符集'charset' => 'utf8mb4','collation' => 'utf8mb4_unicode_ci',为新的 'charset' => 'utf8', 'collation' => 'utf8_general_ci',
2018-07-13 07:09:47 312
原创 laravel 5.6 自定义密码验证方式
继承 EloquentUserProvider <?phpnamespace App\Auth\Foundation; use Illuminate\Auth\EloquentUserProvider; use Illuminate\Contracts\Auth\Authenticatable as UserContract; class AdminEloquentUserProvider...
2018-07-08 10:42:26 1696
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人