《Slides Dev Web》 06. HTTP & AJAX
– CLI : curl – Browser dev tools • Exemples PATCH : mnot4 , SOA bits5 AJAX : Historique • Asynchronous Javascript And Xml • Buzzword, Jesse James Garret6, 2005 • Mise à jour sans rechargement intégral fetch("fichier.json") .then(function(response) { return response.json() }) .then(function(json) { console.log(json); }) .catch(function(error) { console.error("erreur", error) }) • L’API fetch est native et0 码力 | 11 页 | 91.09 KB | 1 年前3
Laravel 5.0 Documentation
( hostname command on Mac, Linux, and Windows). Laravel now generates a single log file: app/storage/logs/laravel.log . However, you may still configure this behavior in your app/start/global.php Event::firing() . Controller Updates Password Reminders Updates Environment Detection Updates Simpler Log Files Removing Redirect Trailing Slash Current Route Access Composer Update Wildcard Event Listeners for adding the proper headers to all responses leaving your application. A logging middleware might log all incoming requests to your application. There are several middleware included in the Laravel framework0 码力 | 242 页 | 1.44 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.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
Laravel 3.2 Documentation.............................................................................. 3 Laravel Change Log .................................................................................................. 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". Fix View::make('blocked'); })); Attaching an "after" filter to a route: Route::get('download', array('after' => 'log', function() { // })); Attaching multiple filters to a route: Route::get('create', array('before'0 码力 | 139 页 | 1.13 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 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.2 中文文档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' Illuminate\Contracts\Hashing\Hasher hash Lang Illuminate\Translation\Translator translator Log Illuminate\Log\Writer log Mail Illuminate\Mail\Mailer mailer Password Illuminate\Auth\Passwords\PasswordBroker0 码力 | 377 页 | 4.56 MB | 1 年前3
Learning Laravelpublic function __construct() { $this->middleware('auth'); $this->middleware('log')->only('index'); $this->middleware('subscribed')->except('store'); } } Resource ->json( 'GET', 'result1/2015-05-08/2015-08-08/a/123' ) ->seeInDatabase("log", ["field"=>"value"], 'sqlite'); In this way, Laravel will know which database connection to test your shared hosting account https://riptutorial.com/ 65 |----public_html |----log Step 2 Copy every thing except the public folder from your laravel project (on development machine)0 码力 | 216 页 | 1.58 MB | 1 年前3
The Laravel Handbook
Laravel Breeze We don’t want random people to come to the website and edit data. We want people to log in first. If logged out they will see the list of dogs. If logged in they will have the ability to asks you: 53 Now you can run php artisan serve and go to http://127.0.0.1:8000/. You’ll see the “Log in” and “Register” links: 54 All the login functionality is working out of the box: 55 Laravel class="">Dashboard @else Log in @if (Route::has('register')) 0 码力 | 111 页 | 14.25 MB | 1 年前3
共 11 条
- 1
- 2













