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 folder in 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 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
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 41: Middleware 130 Introduction 130 Remarks 130 Examples 130 Defining a Middleware 130 Before vs. After Middleware 131 Route Middleware 131 Chapter 42: Multiple DB Connections in Laravel 133 Examples0 码力 | 216 页 | 1.58 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
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 izing-content-efficiency/http-caching 16https://blog.teamtreehouse.com/the-definitive-guide-to-get-vs-post 7 Figure 1: “GETorPOST” 8Bux Rémy • Dans0 码力 | 11 页 | 91.09 KB | 1 年前3
《Slides Dev Web》 01. Cours devweb
: VueJS, Node.js, jQuery, AJAX, JSON, … • Déploiement et configuration Serveur • Webservices : REST vs SOAP • Sécurité : Technologies, prévention des risques courants • (Responsive) Web Design • (Syndication haut testable et fonctionnel Évaluation des projets - suite • Note finale : – Code : 50% ∗ Absence bugs, qualité code, lisibilité, respect conventions et bonnes pratiques ∗ Déploiement, configuration0 码力 | 7 页 | 129.56 KB | 1 年前3
《Slides Dev Web》 05. JavaScript & DOM
js JavaScript • Différentes implémentations13 : navigateur, srv, apps, … • Permissif : du mauvais code est peu maintenable – Design Patterns14 – Bonnes pratiques15 • Interface pour scripter le navigateur type="text/javascript"> document.getElementById("intro").onclick = change; • Conseillé d’inclure le code (attribut src) language="JavaScript" org/en/docs/Web/Events/DOMContentLoaded 27https://nodejs.org 28https://www.reddit.com/r/node/comments/nx9qqr/deno_vs_nodejs_a_comparison_you_need_to_know/ 29https://www.npmjs.com 30https://colorlib.com/wp/npm-packages-node-js/0 码力 | 10 页 | 91.95 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
《Slides Dev Web》 11. HTTPS
décoder la requête HTTPS 6. Le serveur répond à la requête en chiffrant avec la CS 7. Le navigateur décode la réponse avec la CS • En images2, ou ici3 ou en slides4 • 2-5 en TCP 1https://en.wikipedia.o com/faq/ssl.auto.html 18http://security.stackexchange.com/questions/1599/what-is-the-difference-between-ssl-vs-ssh-which-is-more- secure 60 码力 | 6 页 | 109.17 KB | 1 年前3
《Slides Dev Web》 03. Laravel
respecte PSR-210 – Vous aussi avec StyleCI11 • Editeurs et IDE : PhpStorm, glitch12, brackets, VS Code, repl.it13, Gitpod14… • Tests : unitaires, Jmeter, Selenium, … • Outils : devtools Chrome ou FF,0 码力 | 8 页 | 224.34 KB | 1 年前3
共 19 条
- 1
- 2













