Laravel 6.0 中文文档中,该业务逻辑可以被提取到任务中间件中,从而 将你的任务 handle 方法从频率限制中解放出来: Support\Facades\Redis; 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 6 class RateLimited 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 8 use App\LogEntry; use Illuminate\Support\LazyCollection; LazyCollection::make(function () { $handle = fopen('log.txt', 'r'); while (($line table($table, $as = null, $conn ection = null) cursor 方法 影响级别:低 cursor 方法现在返回的 是 Illuminate\Support\LazyCollection 实例而不 是 Generator,LazyCollection 可以像生成器一样迭代: $users = App\User::cursor(); foreach0 码力 | 1442 页 | 14.66 MB | 1 年前3
《Slides Dev Web》 06. HTTP & AJAX
obligatoire • HTTP 2.01 (2015) – Binaire, multiplexage connexions, compression entêtes, push, … – Supporté par presque tous2 les navigateurs, une majorité de serveurs • HTTP 3.03 (2019) – UDP, correction Requête GET / HTTP/1.1[CRLF] Host: www.cff.ch[CRLF] Connection: close[CRLF] User-Agent: Opera/9.20 (Windows NT 6.0; U; en)[CRLF] Accept-Encoding: gzip[CRLF] Accept-Charset: ISO-8859-1,UTF-8;q=0.7,*;q=0.7[CRLF] com/Content/Development/JavaScript/Articl es/GIFAsPipe/Index.cfm 10https://www.w3.org/TR/XMLHttpRequest/ 4 • Supporté par la majorité des navigateurs • Alternative souhaitable si JS désactivé XHR en JS var xhr; function0 码力 | 11 页 | 91.09 KB | 1 年前3
Learning LaravelEloquent 134 From Laravel Documentation 134 Chapter 43: Naming Files when uploading with Laravel on Windows 136 Parameters 136 Examples 136 Generating timestamped file names for files uploaded by users Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateAdminsTable extends Migration { /** https://riptutorial.com/ App\Http\Controllers\Controller; use Illuminate\Foundation\Auth\AuthenticatesUsers; use Illuminate\Support\Facades\Auth; class AuthController extends Controller { use AuthenticatesUsers;0 码力 | 216 页 | 1.58 MB | 1 年前3
Laravel 5.6 中文文档方法会生成一个时间戳最靠前的 UUID,通过诸如 MySQL 的数据库来索引,更简单,也更高效。两个方法都会返回 Ramsey\Uuid\Uuid 对象: use Illuminate\Support\Str; return (string) Str::uuid(); return (string) Str::orderedUuid(); Collision 默认的 laravel/laravel Blade::withoutDoubleEncoding 方法: Support\Facades\Blade; use Illuminate\Support\ServiceProvider; class AppServiceProvider extends ServiceProvider { 方法: Support\ServiceProvider; class AppServiceProvider extends ServiceProvider { /** * Bootstrap0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 5.0 Documentation
for PHP. If you liked Boris in Laravel 4, you're going to love Psysh. Even better, it works on Windows! To get started, just try: php artisan tinker Instead of a variety of confusing, nested environment component itself is still optional. This release of Cashier brings numerous bug fixes, multi-currency support, and compatibility with the latest Stripe API. The Artisan queue:work command now supports a them into the boot() method of app/Providers/RouteServiceProvider.php . Add use Illuminate\Support\Facades\Route; in the app/Providers/RouteServiceProvider.php in order to continue using the0 码力 | 242 页 | 1.44 MB | 1 年前3
Laravel 5.1 中文文档create-project laravel/laravel blog --prefer-dist 该命令会在当前目录中创建一个名为 blog 的 Laravel 安装。 【译者注】相关教程:在 Windows 中安装 Laravel 5.1.X 本文档由 Laravel 学院(LaravelAcademy.org)提供 10 2、配置 2.1 基本配置 Laravel 框架的所有配置文件都存放在 建该 Vagrant 盒子! Homestead 可以运行在 Windows、Mac 以及 Linux 系统上,其中已经安装好了 Nginx、 PHP5.6、MySQL、Postgres、Redis、Memcached、Node 以及很多其它开发牛逼 Laravel 应用所需要的东西。 注意:如果你使用的是 Windows,需要开启系统的硬件虚拟化(VT-x),这通常可以通过 BIOS 来开启。 SSH key 的路径,如果没有 SSH key,那么在 Mac 或 Linux 上,可以通过如下命令来生成: ssh-keygen -t rsa -C "you@homestead" 在 Windows 上,可以安装 Git 然后使用 Git 自带的“Git Bash”来执行上述命令。除此之外, 你还可以使用 PUTTY 和 PUTTYgen 工具来生成 SSH key。 2.2.3 配置共享文件夹0 码力 | 307 页 | 3.46 MB | 1 年前3
Laravel 5.2 中文文档方法现在会保留集合的键名,如果你不想这些方法保留键名,使 用集合实例的 values 方法即可。 Composer 类 Illuminate\Foundation\Support\Composer 类现在被移动 到 Illuminate\Support\Composer,如果你没有在代码中使用该类那么这一改变对程序没 有影响。 命令和处理器 自处理命令 在创建任务/命令时你不再需要实现 SelfHandling Str::equals 方法被废弃,直接使用 PHP 的 hash_equals 方法即可。 Illuminate\View\Expression 被废弃,使用 Illuminate\Support\HtmlString 即 可。 贡献代码 1、缺陷报告 为了鼓励促进更加有效积极的合作,Laravel 强烈鼓励使用 GitHub 的 pull requests,而 不是仅仅报告 如果出现错误,可以在数分钟内销毁并重新创建该 Vagrant 盒子! Homestead 可以运行在 Windows、Mac 以及 Linux 系统上,其中已经安装好了 Nginx、 PHP7.0、MySQL、Postgres、Redis、Memcached、Node 以及很多其它开发 Laravel 应用所需要的东西。 注:如果你使用的是 Windows,需要开启系统的硬件虚拟化(VT-x),这通常可以通过 BIOS 来开启。0 码力 | 377 页 | 4.56 MB | 1 年前3
Laravel 5.3 中文文档版本高于 5.3.4: Support\Facades\Auth; use App\Http\Controllers\Controller; class ProjectController extends Controller key'); // } 声明:控制器 session 部分由网友 AC1982(微信号)提供翻译支持。 数据库 集合 查询构建器现在返回 Illuminate\Support\Collection 实例而不是原生数组,以便保持和 Eloquent 返回结果类型一致。 如果你不想要迁移查询构建器结果到 Collection 实例,可以在查询构建器的 get 方法后调用 ficationServiceProvider。 你 还 需 要 在 配 置 文 件 config/app.php 的 aliases 数 组 中 注 册 门 面 Illuminate\Support\Facades\Notification。 最 后 , 你 可 以 在 User 模 型 或 其 它 你 希 望 接 收 通 知 的 模 型 中 使 用 Illuminate\Notifications\Notifiable0 码力 | 691 页 | 9.37 MB | 1 年前3
Laravel 3.2 Documentation Replace the laravel folder. 5 Laravel 3.2.2 Overall improvement of Postgres support. Fix issue in SQL Server Schema grammar. Fix issue with eager loading and first or find Use Memcached API instead of older Memcache API. Added support for bundles outside of the bundle directory. Added support for DateTime database query bindings. 6 Migrated to Added new Sectionable interface to allow cache drivers to simulate namespacing. Added support for HAVING SQL clauses. Added array_pluck helper, similar to pluck method in Underscore.js0 码力 | 139 页 | 1.13 MB | 1 年前3
The Laravel Handbook
troubles reaching this stage, the official documentation has great guides for macOS, Linux and Windows. Open the newly created project folder in VS Code. This should be the file structure: 8 While routes. 38 Ok! Now you should see the list of dogs on the / route: Support\Facades\Route; use App\Models\Dog; /* |------------------------------------------------ it running while developing the site, as php artisan serve (run both in 2 different terminal windows). Now we’re ready to use Tailwind CSS in our Blade templates! Add this line to the page head :0 码力 | 111 页 | 14.25 MB | 1 年前3
共 17 条
- 1
- 2













