Learning LaravelHandling 3 Versions 3 Examples 4 Welcome to Laravel tag documentation! 4 Starter Guide 4 Getting Started 4 Laravel Views 5 Chapter 2: Artisan 6 Syntax 6 Parameters 6 Examples 8 Introduction 8 List commands using PHP code 9 Creating and registering new artisan command 9 Chapter 3: Authentication 10 Examples 10 Multi Authentication 10 Chapter 4: Authorization 14 Introduction 14 Examples 14 Using Gates Policies 15 Authorizing Actions with Policies 15 Chapter 5: Blade Templates 17 Introduction 17 Examples 17 Views: Introduction 17 Control Structures 18 Conditionals 18 'If' statements 18 'Unless'0 码力 | 216 页 | 1.58 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
 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 develop code that is both concise and easily read. What Makes Laravel Different? There are many ways in which Laravel differentiates itself from other frameworks. Here are a few examples that we0 码力 | 139 页 | 1.13 MB | 1 年前3
 《Slides Dev Web》 10. Rwdla largeur de l’écran • CSS3 • Responsive Web Design (1), Exemple1 1https://alistapart.github.io/code-samples/responsive-web-design/ex/ex-site-FINAL.html 1 Techniques • Media queries : Taille de l’écran nsive-images-done-right-guide-picture-srcset/ 10https://ericportis.com/etc/smashing-mag-picture-examples/art-direction.html 11https://css-tricks.com/responsive-images-youre-just-changing-resolutions-use-srcset/ com/dd/2013/01/13/30-new-inspiring-responsive-design-websites/ 21https://designshack.net/articles/css/20-amazing-examples-of-using-media-queries-for-responsive-web-design/ 22https://johnpolacek.github.io/scrolldeck.js/decks/responsive/0 码力 | 7 页 | 76.36 KB | 1 年前3
 《Slides Dev Web》 04. HTML 5com 3https://www.soundstep.com/blog/experiments/jsdetection/ 4https://auduno.github.io/clmtrackr/examples/facesubstitution.html 5https://www.html5rocks.com/ 6https://developers.google.com/web/ 7https://www0 码力 | 3 页 | 29.58 KB | 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
共 20 条
- 1
 - 2
 













