Laravel 5.0 Documentation
Messages ix. Custom Validation Rules 7. Database i. Basic Usage i. Configuration ii. Read / Write Connections iii. Running Queries iv. Database Transactions v. Accessing Connections vi. Query allow retrieving models based on relationship constraints. Automatic handling of separate read / write connections is now available throughout the database layer, including the query builder and Eloquent 4.1 Full Change List New SSH Component Boris In Tinker Eloquent Improvements Database Read / Write Connections Queue priorities are now supported by passing a comma-delimited list to the queue:listen0 码力 | 242 页 | 1.44 MB | 1 年前3
Laravel 3.2 Documentation.............................................................................. 3 Laravel Change Log .................................................................................................. to have some of the most stable releases in the industry. Laravel also makes it easy for you to write unit-tests for your own code. You can then run tests with the "Artisan" command-line utility. License Information Laravel is open-sourced software licensed under the MIT License. LARAVEL CHANGE LOG Laravel 3.2.8 Fix double slash bug in URLs when using languages and no "index.php". Fix0 码力 | 139 页 | 1.13 MB | 1 年前3
Learning Laravelavailable to create models, controllers and other resources needed for development. You can also write your own commands to extend the Artisan command line tool. Eloquent ORM To connect your models to apply code that should appear on every page, e.g. adding a sidebar or header, without having to write out all the html boilerplate in every individual view. Views can be extended repeatedly - i.e. page3 public function __construct() { $this->middleware('auth'); $this->middleware('log')->only('index'); $this->middleware('subscribed')->except('store'); } } Resource0 码力 | 216 页 | 1.58 MB | 1 年前3
The Laravel Handbook
shows a block if the environment is a production environment Using the @php directive we can write any PHP: @php $cats = array("Fluffy", "Mittens", "Whiskers", "Felix"); @endphp We can do function($name) { return view('test', ['name' => $name]); }); and in resources/views/test.blade.php write this code: @if (isset($name))Hello {{$name}}
@elseTest
@endif Now say “this controller is in charge” and will tell us which method to use. Inside the controller we write methods that perform actions, like adding data to the database, or updating it. If you’re unsure0 码力 | 111 页 | 14.25 MB | 1 年前3
Laravel 5.6 中文文档false); ?> 日志 新配置文件 所有的日志配置现在都存放在独立的 config/logging.php 配置文件。你可以拷贝一份默认的配置文件到你的应用然后基于应用需要进行设置。 log 和 log_level 配置项都可以从配置文件 config/app.php 里移除了。 configureMonologUsing 方法 如果你在使用 configureMonologUsing Illuminate\Log\Writer 类被重命名为 Illuminate\Log\Logger,如果你在应用的某个类中对这个类进行了显式的类型提示作为依赖注入,需要 更新该类的引用为新的类名。或者,作为替代方案,你可以考虑将类型提示调整为标准的 Psr\Log\LoggerInterface 接口。 Illuminate\Contracts\Logging\Log 接口 该接口已经被移除,因为它和 该接口已经被移除,因为它和 Psr\Log\LoggerInterface 接口完全重合,需要将引用它的地方都调整为 Psr\Log\LoggerInterface 接口。 邮件 withSwiftMessage 回调 在之前版本的 Laravel 中,使用 withSwiftMessage 注册的 Swift 消息自定义回调函数在内容已经被编码并添加到消息后被调用。这些回调现在在 内容被添加前调用,从而允许你自定义编码以及其他消息选项。0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 5.1 中文文档public function __construct() { $this->middleware('auth'); $this->middleware('log', ['only' => ['fooAction', 'barAc tion']]); $this->middleware('subscribed', ['except' => ion\Application App Illuminate\Contracts\Hashing\Hasher Hash Illuminate\Contracts\Logging\Log Log Illuminate\Contracts\Mail\MailQueue Mail::queue() Illuminate\Contracts\Mail\Mailer Mail Illuminate\Http\Request request Lang Illuminate\Translation\Translator translator Log Illuminate\Log\Writer log Mail Illuminate\Mail\Mailer mailer 本文档由 Laravel 学院(LaravelAcademy.org)提供0 码力 | 307 页 | 3.46 MB | 1 年前3
Laravel 5.2 中文文档missed Illuminate\Cache\Events\CacheMissed cache.hit Illuminate\Cache\Events\CacheHit cache.write Illuminate\Cache\Events\KeyWritten cache.delete Illuminate\Cache\Events\KeyForgotten connection make:job 命令现在默认会创建一个队列任务类,如果你想要创建一个同步任 务(非队列),在使用该命令时加上 --sync 选项。 邮件 邮件配置中移除了 pretend 选项,取而代之的,使用 log 邮件驱动执行和 pretend 同样的 功能,并且将邮件信息记录到日志中。 分页 为了与框架生成的其它 URL 保持一致,分页 URL 不再包含斜杠,这一改变对应用代码 不产生任何影响。 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 39 $this->middleware('log', ['only' => ['fooAction', 'barAction']]); $this->middleware('subscribed', ['except' => ['fooAction'0 码力 | 377 页 | 4.56 MB | 1 年前3
Laravel 6.0 中文文档App\LogEntry; use Illuminate\Support\LazyCollection; LazyCollection::make(function () { $handle = fopen('log.txt', 'r'); while (($line = fgets($handle)) !== false) { yield $line; } }) ->chunk(4) ->map(function { return LogEntry::fromLines($lines); }) ->each(function (LogEntry $logEntry) { // Process the log entry... }); 或者,假设你需要迭代 10000 个 Eloquent 模型实例,如果使用传 统的 Laravel 集合,所有 10000 个 Eloquent 模型会同时加载到内 location = /favicon.ico { access_log off; log_not_ found off; } 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 113 location = /robots.txt { access_log off; log_not_ found off; } error_page0 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 5.3 中文文档本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 5 console.log(e.description); }); 为了订阅到传统频道,Laravel Echo 还使得订阅到提供谁在监听给定频道信息的已存在频道变得 简单: Echo.join('chat // }) .joining((user) => { console.log(user.name); }) .leaving((user) => { console.log(user.name); }); 要学习更多关于 Echo 和事件广播的内容,请参考其对应文档。 Laravel 生成而不是生成单个文件,应该在配置文件 config/app.php 中设置 log 值如下: 'log' => 'daily' 日志文件最大生命周期 使用 daily 日志模式的时候,Laravel 默认最多为我们保留最近 5 天的日志,如果你想要修改这 个时间,需要添加一个配置 log_max_files 到 app 配置文件: 'log_max_files' => 30 日志错误级别0 码力 | 691 页 | 9.37 MB | 1 年前3
《Slides Dev Web》 07. jQuery
être sûr que le document est chargé : $(document).ready(function(){ console.log("prêt!") }); ou $(function() { console.log("prêt!") }); Sélection dans le DOM • Sélection $("h1"); // noeud élément0 码力 | 5 页 | 49.45 KB | 1 年前3
共 11 条
- 1
- 2













