Laravel 5.1 中文文档需要的话,你可以配置尽可能多的共享目录: folders: - map: ~/Code to: /home/vagrant/Code 如果想要开启 NFS,只需简单添加一个标识到同步文件夹配置: folders: - map: ~/Code to: /home/vagrant/Code type: "nfs" 2.2.4 配置 Nginx 站点 homestead.app to: /home/vagrant/Code/Laravel/public 你可以通过设置 hhvm 为 true 让所有的 Homestead 站点使用 HHVM: sites: - map: homestead.app to: /home/vagrant/Code/Laravel/public hhvm: true 优惠券 如果你想要在创建订购的时候使用优惠券,可以使用 withCoupon 方法: $user->subscription('monthly') ->withCoupon('code') ->create($creditCardToken); 2.2 检查订购状态 用户订购你的应用后,你可以使用各种便利的方法来简单检查订购状态。首先,如果用户有 一个有效的订购,则0 码力 | 307 页 | 3.46 MB | 1 年前3
Laravel 5.2 中文文档void */ public function bind($abstract, $concrete = null, $shared = false) { // } Code Style Fixer 可以使用 PHP-CS-FIXER 在代码提交前修复代码风格。 在此之前,需要安装全局工具,然后通过在项目根目录下运行如下命令检查代码风格: php-cs-fixer Laravel 中文学习资源 17 - map: ~/Code to: /home/vagrant/Code 如果要开启 NFS,只需简单添加一个标识到同步文件夹配置: folders: - map: ~/Code to: /home/vagrant/Code type: "nfs" 配置 Nginx 站点 对 homestead.app to: /home/vagrant/Code/Laravel/public 你还可以通过设置 hhvm 为 true 让所有的 Homestead 站点使用 HHVM: sites: - map: homestead.app to: /home/vagrant/Code/Laravel/public hhvm: true0 码力 | 377 页 | 4.56 MB | 1 年前3
Laravel 5.0 Documentation
the major changes: The old app/models directory has been entirely removed. Instead, all of your code lives directly within the app folder, and, by default, is organized to the App namespace. This application. This would include controllers, routes, Eloquent models, Artisan commands, assets, and other code specific to your application. To start, install a new Laravel 5 application into a fresh directory to copy any additional Composer dependencies into your 5.0 application. This includes third-party code such as SDKs. Some Laravel-specific packages may not be compatible with Laravel 5 on initial release0 码力 | 242 页 | 1.44 MB | 1 年前3
Learning LaravelList all registered routes filtered by multiple methods 8 Running Laravel Artisan commands using PHP code 9 Creating and registering new artisan command 9 Chapter 3: Authentication 10 Examples 10 Multi Using View::composer 24 Closure-based composer 24 Class-based composer 24 Execute arbitrary PHP code 25 Chapter 6: Cashier 26 Remarks 26 Examples 26 Stripe Setup 26 Chapter 7: Change default routing engine does not share with other popular ones is her permissiveness; allowing the use of plain PHP code in Blade templating engine files. It is important to note that Blade templating engine files have0 码力 | 216 页 | 1.58 MB | 1 年前3
Laravel 3.2 DocumentationArtisans Laravel is a clean and classy framework for PHP web development. Freeing you from spaghetti code, Laravel helps you create wonderful applications using simple, expressive syntax. Development should lightweight PHP frameworks. More experienced users will appreciate the opportunity to modularize their code in ways that are not possible with other frameworks. Laravel's flexibility will allow your organization application over time as is needed and its expressiveness will allow you and your team to develop code that is both concise and easily read. What Makes Laravel Different? There are many ways in which0 码力 | 139 页 | 1.13 MB | 1 年前3
The Laravel Handbook
using Laravel Breeze 12. Only authenticated users can add items to the database 13. Push the app code to GitHub 14. Deployment 15. Dynamic routes 16. Non-web routes 17. Creating commands 18. Where VS Code. This should be the file structure: 8 While you’re here I recommend you install the extensions Laravel Extra Intellisense Laravel Artisan Laravel Blade Snippets PHP tools for VS Code We see in the browser. 11 Open the routes folder and you’ll 4 files. Open web.php : This is the code that displays the sample home page of the Laravel application: 12 We made a request to the /0 码力 | 111 页 | 14.25 MB | 1 年前3
《Slides Dev Web》02. Introduction aux frameworks PHP
• Composants de haut-niveau réutilisables (faible couplage) • Règles de codage et d’architecture • Code sûr et efficace • Facilite les tests et la gestion de projets complexes • Utilisation de Design Patterns host.tld/controller/action[/key/val] • Arborescence : – Imposée ou libre selon frameworks – Pas de code (minimum) sous la racine web • Conventions obligatoires ou non, mais RECOMMANDEES dans tous les cas formulaires • Authenfication, Sessions, Permissions, Roles, ACL • Pagination • I18n • Génération de code • Mail • Connecteurs aux webservices 7https://12factor.net/ 8https://12factor.net/fr/ 4 Figure0 码力 | 24 页 | 1.03 MB | 1 年前3
《Slides Dev Web》 12. Risques applicatifs
risques liés à Node JS9 Injection de code • Données mal validées : possibilité d’exécuter du code • Passées par requêtes : – formulaires – URL – … • Type de code injectable : TOUS ! 2https://owasp. envoyées au SGBD • Obtention d’un résultat non prévu par le développeur • Deviner la structure du code pour l’exploiter • SQL est puissant : UNION, INTO DUMPFILE, … Exemples10 SELECT titre, num FROM entités HTML • Vérifications strictes dans le code • Eviter les noms prévisibles pour une appli critique Cross Site Scripting (XSS) • Injection de code (html et script) 10https://fr.wikipedia.org/wiki/Injection_SQL0 码力 | 12 页 | 474.37 KB | 1 年前3
Laravel 5.6 中文文档to: /home/vagrant/Code 如果你只是创建了很少的站点,使用一般的映射就够了。不过,随着站点数量的增加,你就会遇到性能问题,尤其是在包含大量文件的低端机器或项 目中,性能问题可能会非常明显。如果你不幸遇到了这个问题,可以尝试映射每个项目到各自的 Vagrant 文件夹: folders: - map: ~/code/project1 to: /home/vagrant/code/project1 - map: ~/code/project2 to: /home/vagrant/code/project2 如果要开启 NFS,只需简单添加一个标识到同步文件夹配置: folders: - map: ~/Development to: /home/vagrant/Code type: cademy.org 14 你还可以通过 options 传递其他 Vagrant 支持的同步文件夹选项: folders: - map: ~/code to: /home/vagrant/code type: "rsync" options: rsync__args: ["--verbose", "--archive"0 码力 | 377 页 | 14.56 MB | 1 年前3
《Slides Dev Web》 06. HTTP & AJAX
de,en;q=0.7,en-us;q=0.3[CRLF] Referer: http://web-sniffer.net/[CRLF] [CRLF] • Réponse HTTP Status Code: HTTP/1.1 302 Found Date: Mon, 16 Nov 2009 08:01:35 GMT Server: Apache Location: http://www.sbb.ch/fr/ données • Cache 12https://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_ajax_load 13https://code.tutsplus.com/tutorials/jquery-succinctly-jquery-and-ajax--net-33856 6 – Client : Construire des promesses24 plutôt que les callbacks Traitement d’erreurs • Utiliser les entêtes HTTP25 – Champ Status – Code d’erreur • En PHP header("Status: Message d'erreur explicite", true, 400); • Afficher le message0 码力 | 11 页 | 91.09 KB | 1 年前3
共 19 条
- 1
- 2













