Laravel 5.0 Documentation
Structures iii. Extending Blade xxi. Unit Testing i. Introduction ii. Defining & Running Tests iii. Test Environment iv. Calling Routes From Tests v. Mocking Facades vi. Framework Assertions vii. Helper Rackspace, and Amazon EC2. Supporting automated Nginx configuration, SSH key access, Cron job automation, server monitoring via NewRelic & Papertrail, "Push To Deploy", Laravel queue worker configuration bug reports. "Bug reports" may also be sent in the form of a pull request containing a failing unit test. However, if you file a bug report, your issue should contain a title and a clear description of0 码力 | 242 页 | 1.44 MB | 1 年前3
《Slides Dev Web》 12. Risques applicatifs
internationale, sans but lucratif • Référence principale dans le domaine • Propose : – Top 10 (web et mobile2) : Méthode3, CVSS4, CWE5 – Grande communauté d’experts – Formation, documentation et ressources requêtes : – formulaires – URL – … • Type de code injectable : TOUS ! 2https://owasp.org/www-project-mobile-top-10/ 3https://owasp.org/Top10/#methodology 4https://www.first.org/cvss/calculator/3.0 5https://cwe • Utiliser un framework – ces bonnes pratiques sont déjà implémentées • Suites et logiciels de test Références • Référence – OWASP33, webinar fr 201634 – WebAuthn : w3c35, MDN36 • Exemples, explications0 码力 | 12 页 | 474.37 KB | 1 年前3
The Laravel Handbook
around since 2011, well before modern frontend tools like React and Vue.js existed. It stood the test of time. And it evolved over the years to a serious and complete solution for building Web Applications file resources/views/welcome.blade.php : You can clear all the content of this file, and typetest
into it. Save (cmd-s or ctrl-s) and reload in the browser, the homepage content will switch routes/web.php , add: //... Route::get('/test', function () { return view('welcome'); }); This will render the welcome view also when the /test route is called: 15 You can show a different0 码力 | 111 页 | 14.25 MB | 1 年前3
《Slides Dev Web》 10. Rwdmodes d’interaction (ex: tactile, hover, …) – … • 1 seul site à gérer : m.cool.com ni de cool.com/mobile • Le même contenu pour tous • Souvent basé sur la largeur de l’écran • CSS3 • Responsive Web Design Règles CSS selon medium (souvent min-, max-width) • Opérateurs : only, not, and • Au moins 3 layouts : mobile, tablet, desktop • Resolution breakpoints : 320, 480, 600, 768, 1024, 1200px • Souvent ces règles Outils • Tester – Simulateur mobile des devtools, largeur browser – bookmarklet13 pour afficher les media queries – mais surtout tester sur mobile • Et Après ? MOBILE FIRST14, OFFLINE FIRST15, PWA160 码力 | 7 页 | 76.36 KB | 1 年前3
Laravel 6.0 中文文档的基础上继续进行优化, 包括引入语义化版本、兼容 Laravel Vapor、优化授权响应、支持任 务中间件、新增懒集合、优化数据库子查询、将前端脚手架提取到独 立的 Composer 包 laravel/ui、以及多个 bug 修复和可用性的提 升。 语义化版本 Laravel 框架包 laravel/framework 现在遵循语义化版本标准。这使 得框架得以和其他已经遵循该版本标准的 Laravel ->orderBy('arrived_at', 'desc') ->limit(1) )->get(); Laravel UI 之前版本 Laravel 提供的典型的前端脚手架代码现在被提取到独立 的 Composer 扩展包 laravel/ui 中,这样一来可以让 UI 脚手架代 码的开发和维护与主框架分离。所以,在默认框架脚手架代码中,现 在已经剔除了 Bootstrap 和 Vue un.com 11 如果想要恢复之前版本的 Vue/Bootstrap 脚手架代码,可以安 装 laravel/ui 扩展包,并使用 Artisan 命令 ui 来安装前端脚手架 代码: composer require laravel/ui php artisan ui vue --auth 升级指南 重要更新概览 影响较大 授权资源 & viewAny 字符串 & 数组辅助函数0 码力 | 1442 页 | 14.66 MB | 1 年前3
《Slides Dev Web》 08 . RSSch/sites/ingenierie/ Bachelor_Modules_Annees_Fich/12-13/Niveau-3/ ING-DM3254-12-D%C3%A9veloppement%20web%20et%20mobile-V1.docxUn nouveau cours Mon, 27 Oct 2008 09:39:21 GMT ch/sites/ingenierie/ Bachelor_Modules_Annees_Fich/12-13/Niveau-3/ ING-DM3254-12-D%C3%A9veloppement%20web%20et%20mobile-V1.docxhttp://dgr.he-arc.ch/atom/1234 2008-10-27T18:30:02Z Un 0 码力 | 7 页 | 52.98 KB | 1 年前3
《Slides Dev Web》 04. HTML 5: Service Workers • API d’accès à la caméra3, avec du webGL4… • Bachelor NIFFF 2014 : une webapp mobile pour LACIS • Plein d’exemples – html5 rocks!5 => web.dev6 – Chrome Experiments7 – MDN8 – html50 码力 | 3 页 | 29.58 KB | 1 年前3
《Slides Dev Web》02. Introduction aux frameworks PHP
ré-écriture des URL, …) • Object Relational Mapping5 – Active Record, Table Data Gateway, Data Mapper, … • UI Patterns6 MVC for webdev Conventions • Nommage – Classes – Base de données – Fichiers et dossiers //blog.mazenod.fr/2010/01/design-pattern-mvc-zoom-sur-la- couche-modele-dal-dao-orm-crud/ 6http://ui-patterns.com/ 2 Figure 1: MVC 3 Bonnes pratiques • Heavy Model, Light Controller • Don’t Repeat com/docs/master/eloquent 26https://en.wikipedia.org/wiki/List_of_object-relational_mapping_software#PHP 17 URI as UI Pensez à Wikipedia. Les adresses des pages font partie de l’expérience utilisateur. Un utilisateur0 码力 | 24 页 | 1.03 MB | 1 年前3
Laravel 5.6 中文文档的发布,所以这也是自 Laravel Spark 发布以来第一次重大版本升级。Spark 6.0 为 Stripe 和 Braintree 引入 了按座定价功能,以及本地化、Bootstrap 4、增强 UI 和 Stripe Elements 支持。 注:本文档只是概述了框架大部分引人注目的重要升级,要了解详细升级日志可以查看 GitHub 上到 change logs。 日志优化 Laravel 议, 而业务逻辑应该放到 services 这种目录之下。所以推荐大家在生成模型类的时候指定生成到 app/Models 目录下: php artisan make:model Models/Test 根目录 App 目录 app 目录包含了应用的核心代码,注意不是框架的核心代码,框架的核心代码在 /vendor/laravel/framework 里面,此外你为应用编写的代码绝大 artisan storage:link 命令生成这个软链接。 Tests 目录 tests 目录包含自动化测试文件,其中默认已经提供了一个开箱即用的 PHPUnit 示例;每一个测试类都要以 Test 开头,你可以通过 phpunit 或 php vendor/bin/phpunit 命令来运行测试。 Vendor 目录 vendor 目录包含了应用所有通过 Composer 加载的依赖。0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 5.3 中文文档token)变得轻松,你还可以允许用户通 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 6 过 Web UI 创建“个人访问令牌”。为了让你更快上手,Passport 内置了一个 Vue 组件,该组件提供 了 OAuth2 后台界面功能,允许用户创建客户端、撤销访问令牌,以及更多其他功能: < artisan storage:link 命令生成这个软链接。 Tests 目录 tests 目录包含自动化测试,其中已经提供了一个开箱即用的 PHPUnit 示例;每一个测试类都要 以 Test 开头,你可以通过 phpunit 或 php vendor/bin/phpunit 命令来运行测试。 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel Cache::get 方法以我们期望的方式被调用: use Illuminate\Support\Facades\Cache; /** * A basic functional test example. * * @return void */ public function testBasicExample() { Cache::shouldReceive('get')0 码力 | 691 页 | 9.37 MB | 1 年前3
共 17 条
- 1
- 2













