Laravel 5.0 Documentation
extremely quickly. Homestead includes Nginx 1.6, PHP 5.6, MySQL, Postgres, Redis, Memcached, Beanstalk, Node, Gulp, Grunt, & Bower. Homestead includes a simple Homestead.yaml configuration file for managing currently built and tested using Vagrant 1.6. Ubuntu 14.04 PHP 5.6 HHVM Nginx MySQL Postgres Node (With Bower, Grunt, and Gulp) Redis Memcached Beanstalkd Laravel Envoy Fabric + HipChat Extension Router::bind method. The Closure you pass to the bind method will receive the value of the URI segment, and should return an instance of the class you want to be injected into the route: Route::bind('user'0 码力 | 242 页 | 1.44 MB | 1 年前3
The Laravel Handbook
autoprefixer If you don’t have npm installed yet, install Node.js first. This command will create a package.json file, a package-lock.json and a node_modules folder. Then run this: npx tailwindcss init config.js files. (see my npx tutorial if you’re new to that, it’s installed automatically with Node.js, as npm ). Now open tailwind.config.js and add this: /** @type {import('tailwindcss').Config} Route::get('/dogs/daisy', function () { return view('dog'); }) What we do instead is, we have a dynamic segment in the URL: Route::get('/dogs/{slug}', function () { return view('dog'); }) slug is a0 码力 | 111 页 | 14.25 MB | 1 年前3
Laravel 3.2 Documentation$callback); 16 Wildcards Forcing a URI segment to be any digit: Route::get('user/(:num)', function($id) { // }); Allowing a URI segment to be any alpha-numeric string: Route::get('post/(:any)' without limitations: Route::get('files/(:all)', function($path) { // }); Allowing a URI segment to be optional: Route::get('page/(:any?)', function($page = 'index') { // }); The 404 frameworks, where the first segment is the controller name, the second is the method, and the remaining segments are passed to the method as arguments. If no method segment is present, the "index" method0 码力 | 139 页 | 1.13 MB | 1 年前3
Learning Laravelresolves Eloquent models defined in routes or controller actions whose variable names match a route segment name. For example: Route::get('api/users/{user}', function (App\User $user) { return $user->email; }); In this example, since the Eloquent $user variable defined on the route matches the {user} segment in the route's URI, Laravel will automatically inject the model instance that has an ID matching Redirect::route('loginPage'); Route Parameters You can use route parameters to get the part of the URI segment. You can define a optional or required route parameter/s while creating a route. Optional parameters0 码力 | 216 页 | 1.58 MB | 1 年前3
《Slides Dev Web》 05. JavaScript & DOM
hors-browser – Node.js, Spidermonkey, Rhino – script d’app (Qt, Notepad++, …) 1 • Langage cible de compilateurs : emscripten1, WebAssembly2 • Embarqué : Espruino3, robotique : Node Bots4, CylonJS5 DOMContentLoaded would be much more appropriate, so be cautious. MDN: DOMContentLoaded26 Node.js27 / Deno28 • Node.js : une implémentation hors navigateur – environnement d’exécution + bibliothèques – 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/ 5 – gulp, grunt, bower, yarn0 码力 | 10 页 | 91.95 KB | 1 年前3
Laravel 5.1 中文文档盒子! Homestead 可以运行在 Windows、Mac 以及 Linux 系统上,其中已经安装好了 Nginx、 PHP5.6、MySQL、Postgres、Redis、Memcached、Node 以及很多其它开发牛逼 Laravel 应用所需要的东西。 注意:如果你使用的是 Windows,需要开启系统的硬件虚拟化(VT-x),这通常可以通过 BIOS 来开启。 Homestead 进行构建和测试。 1.1 包含软件 Ubuntu 14.04 PHP 5.6 HHVM Nginx MySQL Postgres Node (With PM2, Bower, Grunt, and Gulp) Redis Memcached Beanstalkd Laravel Envoy 者压根 不使用。 2、安装 & 设置 2.1 安装 Node 在开始 Elixir 之前,必须首先确保 Node.js 在机器上已经安装: node -v 默认情况下,Laravel Homestead 包含你需要的一切;然而,如果你不使用 Vagrant,你也 可以通过访问 Node 的下载页面轻松的安装 Node。 2.2 Gulp 接下来,需要安装 Gulp 作为全局0 码力 | 307 页 | 3.46 MB | 1 年前3
Laravel 5.2 中文文档盒子! Homestead 可以运行在 Windows、Mac 以及 Linux 系统上,其中已经安装好了 Nginx、 PHP7.0、MySQL、Postgres、Redis、Memcached、Node 以及很多其它开发 Laravel 应用所需要的东西。 注:如果你使用的是 Windows,需要开启系统的硬件虚拟化(VT-x),这通常可以通过 BIOS 来开启。 预装软件 Ubuntu PHP 7.0 HHVM Xdebug Nginx MySQL SQLite 3 Postgres Composer Node(With PM2, Bower, Grunt, and Gulp) Redis Memcached Beanstalkd Blackfire Profiler 者压根不使用。 2、安装 & 设置 2.1 安装 Node 在开始 Elixir 之前,必须首先确保 Node.js 在机器上已经安装: node -v 默认情况下,Laravel Homestead 包含你需要的一切;然而,如果你不使用 Vagrant,你 也可以通过访问 Node 的下载页面轻松的安装 Node。 2.2 Gulp 接下来,需要安装 Gulp 作为全局0 码力 | 377 页 | 4.56 MB | 1 年前3
Laravel 5.6 中文文档盒子的释义请参考 Vagrant 官方文档), 该盒子为我们提供了一个优秀的开发环境,有了它,我们不再需要在本地环境安装 PHP、Composer、Nginx、MySQL、Memcached、Redis、Node 等其它工具软件,我们也完全不用再担心误操作搞乱操作系统 —— 因为 Vagrant 盒子是一次性的,如果出现错误,可以在数分钟内销毁并重新创 建该 Vagrant 盒子! 为什么说它是重量级 Nginx Apache(可选) MySQL MariaDB(可选) SQLite3 PostgresSQL Composer Node(With Yarn, Bower, Grunt, and Gulp) Redis Memcached Beanstalkd Mailhog Elasticsearch(可选) rsync__args: ["--verbose", "--archive", "--delete", "-zz"] rsync__exclude: ["node_modules"] 配置 Nginx 站点 对 Nginx 不熟?没关系!通过 sites 属性你可以方便地将“域名”映射到 Homestead 虚拟机的指定目录,Homestead.yaml0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 6.0 中文文档盒子的释义请参考 Vagrant 官方文档),该盒子为我们提供了一个优秀的开发环境,有了它,我 们不再需要在本地环境安装 PHP、Composer、Nginx、MySQL、 Memcached、Redis、Node 等其它工具软件,我们也完全不用再担 心误操作搞乱操作系统 —— 因为 Vagrant 盒子是一次性的,如果 出现错误,可以在数分钟内销毁并重新创建该 Vagrant 盒子! 为什么说它是重 PHP 5.6 Nginx MySQL lmm(用于 MySQL 或 MariaDB 数据库快照) SQLite3 PostgreSQL Composer Node(With Yarn, Bower, Grunt, and Gulp) Redis Memcached Beanstalkd Mailhog avahi ngrok "rsync" options: rsync__args: ["--verbose", "--archive", "--de lete", "-zz"] rsync__exclude: ["node_modules"] 配置 Nginx 站点 对 Nginx 不熟?没关系!通过 sites 属性你可以方便地将“域名”映 射到 Homestead 虚拟机的指定目录,Homestead.yaml0 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 5.3 中文文档Homestead 可以运行在 Windows、Mac 以及 Linux 系统上,其中已经安装好了 Nginx、PHP7.0、 MySQL、Postgres、Redis、Memcached、Node 以及很多其它开发 Laravel 应用所需要的东西。 注:如果你使用的是 Windows,需要开启系统的硬件虚拟化(VT-x),这通常可以通过 BIOS 来开 启。如果你是在 UEFI 系统上使用 HHVM Xdebug Nginx MySQL MariaDB SQLite 3 Postgres Composer Node(With PM2, Bower, Grunt, and Gulp) Redis Memcached Beanstalkd 2、安装 & 设置 首次安装 在使用 压根不使用。 2、安装 & 设置 安装 Node 在开始 Elixir 之前,必须首先确保 Node.js 在机器上已经安装: node -v npm -v 默认情况下,Laravel Homestead 包含你需要的一切;然而,如果你不使用 Vagrant,你也可以通 过访问 Node 的下载页面轻松的安装 Node。 Gulp 接下来,需要安装 Gulp0 码力 | 691 页 | 9.37 MB | 1 年前3
共 13 条
- 1
- 2













