使⽤Laravel 8
PHP主流框架打造
RESTful API"title": "我是標題⽂字", "content": "我是內容", "created_at": "2021-09-08 14:07:22", "updated_at": "2021-09-08 14:07:22" } } 201 CREATED https://localhost/api/v1/articles Headers Headers "title": "我是標題⽂字", "content": "我是內容", "created_at": "2021-09-08 14:07:22", "updated_at": "2021-09-08 14:07:22" } } 201 CREATED Request Response { "title": "我是標題⽂字", "title": "我是標題⽂字", "content": "我是內容", "created_at": "2021-09-08 14:07:22", "updated_at": "2021-09-08 14:07:22" } } 200 OK 查看資源列表 GET https://localhost/api/v1/articles {0 码力 | 22 页 | 3.41 MB | 1 年前3
Learning LaravelExamples 10 Multi Authentication 10 Chapter 4: Authorization 14 Introduction 14 Examples 14 Using Gates 14 Authorizing Actions with Gates 14 Policies 15 Writing Policies 15 Authorizing Actions with Job 45 Chapter 13: Cross Domain Request 46 Examples 46 Introduction 46 CorsHeaders 46 Chapter 14: Custom Helper function 48 Introduction 48 Remarks 48 Examples 48 document.php 48 HelpersServiceProvider if(Gate::denies('view-content', $content)){ /* user cannot view content */ } https://riptutorial.com/ 14 Note: You are not required to pass the currently authenticated user to these method, Laravel takes0 码力 | 216 页 | 1.58 MB | 1 年前3
《Slides Dev Web》 10. Rwdembed, object, video{ max-width: 100%; } – La découper 9https://www.smashingmagazine.com/2014/05/14/responsive-images-done-right-guide-picture-srcset/ 10https://ericportis.com/etc/smashing-mag-pictu bookmarklet13 pour afficher les media queries – mais surtout tester sur mobile • Et Après ? MOBILE FIRST14, OFFLINE FIRST15, PWA16 • framework ou from scratch ? Références • Exemples – Site17 support du – Making sites more responsive, responsibly25 13https://sparkbox.github.io/mediaQueryBookmarklet/ 14https://www.lukew.com/resources/mobile_first.asp 15https://offlinefirst.org/ 16https://developers.google0 码力 | 7 页 | 76.36 KB | 1 年前3
《Slides Dev Web》 01. Cours devweb
s-2023-2024 11http://wiki.dbpedia.org/ 12https://opendata.swiss/fr/ 2 ∗ Product Hunt13, makeuseof14, … ∗ Volées précédentes15 • Commencer tôt pour se libérer les dernières semaines de l’année Calendrier Projet PHP 8 39 9 40 10 Rendu intermédiaire 41 S. thématique 11 42 12 43 13 44 Rendu intermédiaire 14 45 16 46 17 48 18 Présentations 49 19 Présentations 50 20 Examens 51 Présentations 21 Début TB 2 Projet Echéances – En début de semaine, pour chacun des projets : 13https://www.producthunt.com/topics/web-app 14http://www.makeuseof.com/tag/best-websites-internet/ 15https://github.com/HE-Arc/ 16https://teams.microsoft0 码力 | 7 页 | 129.56 KB | 1 年前3
《Slides Dev Web》 05. JavaScript & DOM
Applications Desktop : Electron6, sciter7 *Script • ECMAScript : Norme depuis 1997 – Juin 2023 : ECMA-262 14th edition8 – Support9 des différentes implémentations – Conversions avec BabelJS10 • JavaScript : implémentations13 : navigateur, srv, apps, … • Permissif : du mauvais code est peu maintenable – Design Patterns14 – Bonnes pratiques15 • Interface pour scripter le navigateur – Accès et modification du contenu typescriptlang.org/ 12http://coffeescript.org/ 13https://en.wikipedia.org/wiki/List_of_ECMAScript_engines 14https://addyosmani.com/resources/essentialjsdesignpatterns/book/ 15http://jstherightway.org/ 2 – Bookmarklets160 码力 | 10 页 | 91.95 KB | 1 年前3
《Slides Dev Web》02. Introduction aux frameworks PHP
L’évolution de PHP a fait que les usagers du langage, créateur de frameworks, d’outils (comme Composer14), ont senti le besoin d’émettre des recommendations afin d’aller vers un plus interopérable. Durant 11https://kinsta.com/fr/blog/php-8/ 12http://php.net/manual/en/history.php.php 13https://en.wikipedia.org/wiki/PHP 14http://getcomposer.org/ 8 Figure 5: source15 9 (1) Donc, ce ne sont pas Gandalf (sans sa barbe) 55ef26178/picbot/Image s/meme10.jpg 20https://en.wikipedia.org/wiki/Principle_of_least_privilege 14 {# 02-twig/templates/collaborateur.html #} {%- extends "base.html" -%} {% block corps -%}
The Laravel Handbook
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 to go from here or ctrl-s) and reload in the browser, the homepage content will switch to displaying this string: 14 So now you know for sure that this file is responsible for what’s shown on that URL! Now let’s add repository, push the repository to GitHub, so that you have the code up there, ready to be deployed: 77 14. Deployment 78 It’s all fun and all, but now we want to deploy the application on a real server,0 码力 | 111 页 | 14.25 MB | 1 年前3
《Slides Dev Web》 04. HTML 5à l’UX • Utilise moins d’espace qu’une app native • Avantages des 2 mondes (natif et web) • Article14 d’Alex Russel 15.06.15 • Vue d’ensemble par Wikipedia15 • Support tardif par iOS16 (notification: PWA24 – Appscope25 11https://html5weekly.com/ 12https://caniuse.com/ 13https://whatwebcando.today/ 14https://infrequently.org/2015/06/progressive-apps-escaping-tabs-without-losing-our-soul/ 15https://en0 码力 | 3 页 | 29.58 KB | 1 年前3
《Slides Dev Web》 11. HTTPS
win.tue.nl/hashclash/rogue-ca/ 5 – Let’s Encrypt14 – CA Cert15 – SSLforFree16 • Différences TLS / SSH : Snailbook17, StackExchange18 Sources 14https://letsencrypt.org/ 15http://www.cacert.org/ 16https://www0 码力 | 6 页 | 109.17 KB | 1 年前3
《Slides Dev Web》 03. Laravel
Vous aussi avec StyleCI11 • Editeurs et IDE : PhpStorm, glitch12, brackets, VS Code, repl.it13, Gitpod14… • Tests : unitaires, Jmeter, Selenium, … • Outils : devtools Chrome ou FF, Emmet15, git • Doc 8http://packalyst com/docs/5.1/contributions#coding-style 11https://styleci.io/ 12https://glitch.com/ 13https://repl.it/ 14https://www.gitpod.io/ 15http://emmet.io/ 2 Figure 1: Rôle du front controller 3 Figure 2: Architecture0 码力 | 8 页 | 224.34 KB | 1 年前3
共 21 条
- 1
- 2
- 3













