HTTPS11. HTTPS 19 décembre 2023 Développement web il3 HTTPS HE-Arc (DGR) 2022 Sécuriser un site web • Authentification du serveur – Assurer que le serveur est celui qu’il prétend être • Intégrité des que le client est celui qu’il prétend être • Pour un site web, ces services sont fournis par https – HTTPS : HTTP sécurisé par SSL/TLS, par défaut sur le port 443 1 Secure Socket Layer –> Transport Confidentialité • Document contenant une identité et une signature numérique • Utilisations courantes : https, mails • Délivré par une autorité de certification • Certificats clients Autorité de Certification0 码力 | 6 页 | 109.17 KB | 1 年前3
Laravel 5.6 中文文档返回新创建的模型 从路由中直接返回新创建的 Eloquent 模型时,响应状态码由 200 调整为 201,如果应用的任意相应测试显式期望 200 状态码,那么需要将它们修改 为 201。 信任代理 由于信任代码功能使用的底层 Symfony HttpFoundation 有改动,所以必须微调 App\Http\Middleware\TrustProxies 中间件。 $headers @var string */ protected $headers = Request::HEADER_X_FORWARDED_ALL; 更多关于 $headers 变量值的信息可以查看完整的信任代理文档。 验证 ValidatesWhenResolved 接口 为了避免和 $request->validate() 方法冲突,ValidatesWhenResolved 接口/trait 官网下载了: 本文档由 Laravel 学院提供 Laravel 学院致力于提供优质 Laravel 中文学习资源:http://laravelacademy.org 13 https://atlas.hashicorp.com/laravel/boxes/homestead/versions/0.5.0/providers/virtualbox.box,通过这种方式下载的话需要手动将其添加到0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 6.0 中文文档本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 1 Laravel 6.0 中文文档 本文档由学院君翻译提供 更多资源请访问 https://xueyuanjun.com 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 2 第一部分:序言 新版特性 队列、数据库、Redis 集群、网络、 CloudFront CDN 进行交互的复杂性进行了抽象。 通过 Ignition 优化异常 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 3 Laravel 6.0 支持 Ignition,这个一个开源的错误和异常详情页项目, 由 Freek Van der Herten 和 Marcel Pociot $flight) { return $this->deny('Explanation of denial.'); } 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 4 接下来我们可以通过 Gate::inspect 方法获取授权策略的响应,然 后再通过响应示例的 message() 方法获取授权消息: $response0 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 5.1 中文文档laravel/homestead 如果上述命令执行失败,可以使用 vagrant 老版本的方式,这需要输入完整的 URL: vagrant box add laravel/homestead https://atlas.hashicorp.com/l aravel/boxes/homestead 本文档由 Laravel 学院(LaravelAcademy.org)提供 14 2 你还可以通过简单克隆仓库代码来实现 Homestead 安装,考虑到克隆仓库到 home 目录下 的 Homestead 文件夹,Homestead 盒子将会作为所有其他 Laravel 项目的主机: git clone https://github.com/laravel/homestead.git Homestead 克隆完成后,在 Homestead 目录下运行 bash init.sh 命令来创建 Homestead to: /home/vagrant/Code/Laravel/public hhvm: true 默认情况下,每个站点都可以通过 HTTP(端口号:8000)和 HTTPS(端口号:44300) 进行访问。 2.2.5 Hosts 文件 不要忘记把 Nginx 站点中的域名添加到本地机器上的 hosts 文件,该文件会将对本地域名的 请求重定向到 Homestead0 码力 | 307 页 | 3.46 MB | 1 年前3
Laravel 5.3 中文文档Homestead 安装。将仓库克隆到用户目录下的 Homestead 目录,这样 Homestead 盒子就可以作为所有其他 Laravel 项目的主机: cd ~ git clone https://github.com/laravel/homestead.git Homestead 克隆完成后,在 Homestead 目录下运行 bash init.sh 命令来创建 Homestead to: /home/vagrant/Code/Laravel/public hhvm: true 默认情况下,每个站点都可以通过 HTTP(端口号:8000)和 HTTPS(端口号:44300)进行访 问。 如果你是在 Homestead 盒子启动之后进行了上述修改,需要运行 vagrant reload --provision 更 新虚拟机上的 Nginx 端口转发配置 默认情况下,Homestead 端口转发配置如下: SSH: 2222 → Forwards To 22 HTTP: 8000 → Forwards To 80 HTTPS: 44300 → Forwards To 443 MySQL: 33060 → Forwards To 3306 Postgres: 54320 → Forwards To 54320 码力 | 691 页 | 9.37 MB | 1 年前3
Laravel 5.2 中文文档symfony/css-selector ~3.0 到 composer.json 的 require-dev 部分。 认证 配置文件 更新 config/auth.php 文件内容如下: https://github.com/laravel/laravel/blob/develop/config/auth.php 更新完成后,基于原来的配置设置认证选项,如果不做改动,认证服务将基于 Laravel Laravel 5.2 命令现在只支持自处理命令,不再支持独立的命令和处理器。 如果你想要继续使用独立的命令和处理器,可以安装提供向后兼容支持的 Laravel Collective 包:https://github.com/LaravelCollective/bus 配置 开发环境 添加一个 env 配置项到配置文件 app.php 中: 'env' => env('APP_ENV' 中文学习资源 9 Session 数据库 Session 驱动 我们为框架编写了新的 database Session 驱动,该驱动包含更多的用户信息,例如用户 ID、IP 地址以及用户代理,如果你想要继续使用之前的 database 驱动,需要在配置文 件 session.php 中指定 legacy-database 驱动。 如果你想要使用新的驱动,还需要添加 user_id (nullable0 码力 | 377 页 | 4.56 MB | 1 年前3
Learning Laravelguaranteed to be correct nor accurate, please send your feedback and corrections to info@zzzprojects.com https://riptutorial.com/ 1 Chapter 1: Getting started with Laravel Remarks Laravel StackOverflow Slack Driven Development (TDD) in Laravel is fun and easy to implement. Hosted on GitHub and available at https://github.com/laravel/laravel, Laravel boasts of a micro- services architecture, making it tremendously MVC Laravel uses the MVC model, therefore there are three core-parts of the framework which work https://riptutorial.com/ 2 together: models, views and controllers. Controllers are the main part where0 码力 | 216 页 | 1.58 MB | 1 年前3
《Slides Dev Web》 12. Risques applicatifs
applications : c’est nous qui en sommes responsables OWASP1 • Open Web Application Security Project 1https://owasp.org/ 1 • Fondation pour améliorer la sécurité des webapps • Fondée en 2004, internationale 2https://owasp.org/www-project-mobile-top-10/ 3https://owasp.org/Top10/#methodology 4https://www.first.org/cvss/calculator/3.0 5https://cwe.mitre.org/top25/archive/2022/2022_cwe_top25.html 6https://www 6https://www.owasp.org/index.php/Category:OWASP_Top_Ten_Project 7https://owasp.org/Top10/fr/ 8https://www.hahwul.com/cullinan/history-of-owasp-top-10/ 9https://cheatsheetseries.owasp.org/cheatsheets/NPM_Security_Cheat_Sheet0 码力 | 12 页 | 474.37 KB | 1 年前3
《Slides Dev Web》 09. Services Web
– orientée service2 : atome : service (traitement) : RPC (SOAP) 1https://en.wikipedia.org/wiki/Resource-oriented_architecture 2https://fr.wikipedia.org/wiki/Architecture_orient%C3%A9e_services 1 Service Enveloppe, Entête, Corps, Erreurs 3https://upload.wikimedia.org/wikipedia/commons/3/3f/Concept_WS.jpg 4https://en.wikipedia.org/wiki/Mashup_(web_application_hybrid) 5https://science.howstuffworks.com/inn com/innovation/repurposed-inventions/5-web-mashups.htm 6https://developers.google.com/apis-explorer/ 7https://ifttt.com/ 8https://en.wikipedia.org/wiki/List_of_web_service_specifications 2 • Squelette : <0 码力 | 6 页 | 47.90 KB | 1 年前3
《Slides Dev Web》 03. Laravel
02.22, v10 : 07.02.23 1https://laravel.com/ 2http://laravel.io/forum 3http://fr.wikipedia.org/wiki/SOLID_(informatique) 4http://taylorotwell.com/ 5https://getcomposer.org/ 6https://github.com/search?l= l=PHP&q=stars%3A%3E0&ref=searchresults&type=Repositories 7https://madewithlaravel.com/ 1 Principales fonctionnalités • Routes RESTful • ORM (Eloquent, implémentation du pattern Active Record) • Migrations 8http://packalyst.com/ 9https://laravel.com/docs/master/lifecycle 10https://laravel.com/docs/5.1/contributions#coding-style 11https://styleci.io/ 12https://glitch.com/ 13https://repl.it/ 14https://www.gitpod.io/0 码力 | 8 页 | 224.34 KB | 1 年前3
共 22 条
- 1
- 2
- 3













