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
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
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
Laravel 6.0 中文文档@param bool $allowed * @param string $message * @param mixed $code * @return void */ public function __construct($allowed, $message = '', $code = null) Illuminate\Contracts\Auth\Access\Gate 契约 影响级别:低 1aravel/laravel 仓库 的 resources/sass 或 resources/js 目录下,不要提交编译后的文 件,因为它们的尺寸往往很大,框架维护者没法对其进行代码审查 (Code Review)。不怀好意的人可能会借此注入恶意代码到 Laravel 中,为了避免这种情况发生,仓库里所有编译后的文件只能由 Laravel 框架维护者生成和提交。 安全漏洞 如果你在 Laravel - map: ~/code/project1 to: /home/vagrant/project1 注:map 表示宿主机 Web 项目根目录,to 表示映射到 的虚拟机 Web 项目根目录,Windows 下需要将 ~ 替换 成完整的目录路径,比 如 C:\Users\user\Code\project1。 你需要将每个项目映射自己的对应目录而不是映射整个 ~/code 目 录: folders:0 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 5.3 中文文档够了): folders: - 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: true 在 定 义 站 点 时 设 置 schedule 为 true: sites: - map: homestead.app to: /home/vagrant/Code/Laravel/public schedule: true 该站点的 Cron 任务会被定义在虚拟机的 /etc/cron.d 目录下。 端口转发配置 默认情况下,Homestead0 码力 | 691 页 | 9.37 MB | 1 年前3
共 19 条
- 1
- 2













