船大难掉头 - 随便聊聊 Jetbrains

我非常喜欢 Jetbrains 家的产品, 作为真正的 IDE , 大而全, 能够提供非常棒的开发体验。 有一种沉浸感,能让人专注在代码中。 尽管很多年前,vscode 就已经风靡

还写技术博客吗

有一个独立博客,是很多技术人的情怀。 一腔热血,苦心专研的技术,在互联网上留下自己的痕迹。 可是在 AI 的时代,技术的门槛已经极大的降低了。 两小时想

Laravel get request parameters: request() vs $request->input()

There are many ways to get the request parameters in Laravel, such as request(), $request->input(), $request->get(), but there are a little different between request() and $request->input() when the parameter is not actually passed. Sometimes it maybe cause some unexpected behavior, Let’s see: 1 2 3 4 5 6 7 Route::get('/test', function (Request $request) { dd( request('key', 'default'), $request->input('key', 'default'), $request->get('key', 'default'), ); }); When our request like this: http://localhost/test?key=, yes, we do not actually set a value for the key, the output will be:

远程开发(瘦客户端开发)指北

为什么需要远程开发 首先需要明确,本篇文章说的远程开发,不是指“远程开发工作”,而是指“远程开发环境”,在网上通常也叫瘦客户端(机)开发。 是指

How to iterate big dataset in Laravel without memory exhausted

Imagine that you have to iterate a big table in Laravel, the words “big table” means that the table not only thousands of rows, but also millions of rows. Intuitively, we may use the all() or get() method of the model to retrieve all the rows, and then iterate them. But our memory is limited, use those function may cause a memory exhausted error. Here, I will give you three ways to do this.