Laravel 6.0 中文文档配置项来 设置: 'logentries' => [ 'driver' => 'monolog', 'handler' => Monolog\Handler\SyslogUdpHandler::cla ss, 'handler_with' => [ 'host' => 'my.logentries.internal.datahubhost. company.com', 'port' => php 中注册这个频道: use App\Broadcasting\OrderChannel; Broadcast::channel('order.{order}', OrderChannel::cla ss); 最后,我们在频道类的 join 方法中定义授权逻辑,join 方法里的逻 辑和定义在频道授权闭包里的逻辑一样。当然,你也可以使用频道模 型绑定: create() ->each(function($u) { $u->posts()->save(factory(App\Post::cla ss)->make()); }); 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 1274 可以使用 createMany0 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 5.2 中文文档User::withoutGlobalScopes()->get(); User::withoutGlobalScopes([FirstScope::class, SecondScope::cla ss])->get(); 本地作用域 本地作用域允许我们定义通用的约束集合以便在应用中复用。例如,你可能经常需要获取 最受欢迎的用户,要定义这样的一个作用域,只需简单在对应 Eloquent0 码力 | 377 页 | 4.56 MB | 1 年前3
Laravel 3.2 Documentation........................................................................................... 3 License Information .................................................................................... would love to talk to you about it, so don't be a stranger! License Information Laravel is open-sourced software licensed under the MIT License. LARAVEL CHANGE LOG Laravel 3.2.8 Fix double slash0 码力 | 139 页 | 1.13 MB | 1 年前3
共 3 条
- 1













