laravel5.8 eloquent
摘要:https://learnku.com/docs/laravel/5.8/eloquent/3931 示例1: 示例2: 以上都是最基本的 eloquent 的优雅性,以后再写
阅读全文
laravel5.8 Auth::guide
摘要:控制器会去寻找Auth::guard(), 那这个Auth::guard()是个什么东西呢, 首先 Auth 是系统的单例,原型在 顾名思义,是一个Auth管理模块,实现了认证工厂模式接口guards(), 接下来看看配置文件 auth.php 也就是说终归到底,Auth::guard(), 在默认
阅读全文
laravel5.8 表单验证
摘要:源码 vendor\laravel\framework\src\Illuminate\Validation\Validator.php eg
阅读全文
laravel5.8 Models
摘要:<?phpnamespace App\Models;use Illuminate\Notifications\Notifiable;use Illuminate\Contracts\Auth\MustVerifyEmail;use Illuminate\Foundation\Auth\User as
阅读全文
php 中英文混合字符串长度计算
摘要:(strlen(
string)+mbstrlen(string,'UTF8')) / 2;tw 这样计算的
阅读全文
laravel5.8 源码分析(1) Route
摘要:https://learnku.com/docs/laravel/5.8 源码路径 vendor\laravel\framework\src\Illuminate\Routing\Router.php 源码路径 vendor\laravel\framework\src\Illuminate\Rout
阅读全文
Fix Python 3 on Windows error Microsoft Visual C++ 14.0 is required
摘要:Fix Python 3 on Windows error Microsoft Visual C++ 14.0 is required Fix the error for Python on Windows: error Microsoft Visual C++ 14.0 is required a
阅读全文
对NumPy中dot()函数的理解
摘要:对NumPy中dot()函数的理解 今天学习到numpy基本的运算方法,遇到了一个让我比较难理解的问题。就是dot函数是如何对矩阵进行运算的。 一、dot()的使用 参考文档:https://docs.scipy.org/doc/numpy/reference/generated/numpy.dot
阅读全文
聚类算法博客 K-means算法
摘要:最近看到一个 blog 感觉超好.记录下.. http://blog.pluskid.org/?p=17
阅读全文