Laravel 6.0 中文文档作为服务器, 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 35 需要先确保 Apache 启用了 mod_rewrite 模块以支 持 .htaccess 解析。 如果 Laravel 自带的 .htaccess 文件不起作用,试试将其中内容做 如下替换: Options +FollowSymLinks -Indexes require laravel/valet 最新的 Valet 源码下载好之后,运行 install 命令: valet install valet restart 升级之后,需要 re-park 和 re-link 站点。 访问站点 Valet 安装完成后,就可以启动服务站点,Valet 为此提供了两个命 令:park 和 link。 park 命令 在 Mac 系统中创建一个新目录,例如 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 260 Route::get('cookie/get', function(\Illuminate\Http\Re quest $request) { $cookie = $request->cookie('name'); dd($cookie); }); 先访问 http://blog.test/cookie/add0 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 5.6 中文文档public/.htaccess 文件支持隐藏 URL 中的 index.php,如过你的 Laravel 应用使用 Apache 作为服务器,需要先确保 Apache 启 用了 mod_rewrite 模块以支持 .htaccess 解析。 如果 Laravel 自带的 .htaccess 文件不起作用,试试将其中内容做如下替换: Options +FollowSymLinks RewriteEngine require laravel/valet 最新的 Valet 源码下载好之后,运行 install 命令: valet install valet restart 升级之后,需要 re-park 和 re-link 站点。 访问站点 Valet 安装完成后,就可以启动服务站点,Valet 为此提供了两个命令:park 和 link。 本文档由 Laravel 学院提供 应用,同样,你可以按照应 用的需要增删 package.json 中的扩展包。 扩展包安装好之后,可以使用 npm run dev 命令来编译前端资源,Webpack 是为现代 JavaScript 应用提供的模块捆绑器,当你执行 npm run dev 命令的时候,Webpack 将会执行 webpack.mix.js 中的指令: npm run dev 默认情况下,Laravel 自带的 webpack0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 5.3 中文文档Webpack & Laravel Elixir Laravel Elixir 6.0 和 Laravel 5.3 一起发布,新版本将捆绑支持 Webpack 和 Rollup JavaScript 模块。 默认情况下,Laravel 5.3 的 gulpfile.js 文件现在已经使用 Webpack 来编译 JavaScript: elixir(mix => { mix.sass('app ECMAScript 2015,模块管理, 最小化以及合并原生 JavaScript 文件。 使用模块编写 ES2015 的时候,可以选择 Webpack 或 Rollup ,如果你对这些工具很陌生,别担心, Elixir 会为你处理所有背后的复杂逻辑。默认情况下,Laravel 的 gulpfile 使用 webpack 来编译 JavaScript,当然,你也可以选择使用自己喜欢的模块管理器。 Webpack 的更多功能,可以利用应用根目录下的 webpack.config.js 文件,Elixir 将会读取该文件并将其中的配置用于构建过程。 Rollup 和 Webpack 相似,Rollup 是为 ES2015 准备的下一代模块管理器,该方法接收一个相对 于 resources/assets/js 目录的文件数组,然后在 public/js 目录下生成单个文件: elixir(function(mix) {0 码力 | 691 页 | 9.37 MB | 1 年前3
Laravel 5.1 中文文档public/.htaccess 文件支持 URL 中隐藏 index.php,如过你的 Laravel 应用 使用 Apache 作为服务器,需要先确保 Apache 启用了 mod_rewrite 模块以支持.htaccess 解析。 如果 Laravel 自带的.htaccess 文件不起作用,试试将其中内容做如下替换: Options +FollowSymLinks RewriteEngine coffee(['app.coffee', 'controllers.coffee']); }); 5.2 Browserify Elixir 还提供了 browserify 方法,从而让你可以在浏览器中引入模块并使用 EcmaScript 6。 该任务假定你的脚本都存放在 resources/assets/js 而且将结果文件存放到 public/js/bundle.js: elixir(function(mix)0 码力 | 307 页 | 3.46 MB | 1 年前3
Laravel 5.2 中文文档coffee(['app.coffee', 'controllers.coffee']); }); 5.2 Browserify Elixir 还提供了 browserify 方法,从而让你可以在浏览器中引入模块并使用 EcmaScript 6。 该任务假定你的脚本都存放在 resources/assets/js 而且将结果文件存放 到 public/js/bundle.js: elixir(function(mix)0 码力 | 377 页 | 4.56 MB | 1 年前3
The Laravel Handbook
running with Laravel, starting from zero knowledge. I will only teach you the basics, and once you’re done with this you’ll have the knowledge you need to dive deeper. 1. Introduction to Laravel 4 Open the newly created project 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 We have a bunch of folders and a bunch of files. The first thing you’re going to look at is the .env file. It contains a lot of configuration options, called environment0 码力 | 111 页 | 14.25 MB | 1 年前3
Laravel 3.2 Documentationmakes schema changes you can update your local copy from the repository and run migrations. Now you're up to date, too! Unit-Testing is an important part of Laravel. Laravel itself sports hundreds out in the IRC channel is a really great way to learn more about web-development using Laravel. You're welcome to ask questions, answer other people's questions, or just hang out and learn from other people's that point to them. 15 In the following example the first parameter is the route that you're "registering" with the router. The second parameter is the function containing the logic for that0 码力 | 139 页 | 1.13 MB | 1 年前3
Laravel 5.0 Documentation
utilizes Psysh by Justin Hileman, a more robust REPL for PHP. If you liked Boris in Laravel 4, you're going to love Psysh. Even better, it works on Windows! To get started, just try: php artisan tinker to start a worker in "daemon mode", meaning the worker will continue to process jobs without ever re-booting the framework. This results in a significant reduction in CPU usage at the cost of a slightly the enhanced password reminder engine, consult the documentation. Laravel 4.1 features a totally re-written routing layer. The API is the same; however, registering routes is a full 100% faster compared0 码力 | 242 页 | 1.44 MB | 1 年前3
Learning LaravelCreate a new test class migrate:install Create the migration repository migrate:refresh Reset and re-run all migrations migrate:reset Rollback all database migrations migrate:rollback Rollback the last notation: view('parts.header.navigation'); Within a view file, such as resources/views/example.php, you're free to include both HTML and PHP together:Hello world! malicious injection of HTML in the view). If you would like to bypass this behavior, for example if you're trying to output a block of HTML content resulting from a PHP expression, use the following syntax:0 码力 | 216 页 | 1.58 MB | 1 年前3
《Slides Dev Web》 05. JavaScript & DOM
• Syntaxe proche de C, Java • Faiblement typé : – Pas de déclaration, type déterminé par la dernière affectation – Risque : typo => nouvelle variable. Utiliser const et let • Types : – Primitifs : Boolean retourner ou non une valeur • Sans retour, valeur spéciale : undefined • Pas de surcharge (la dernière définie prime) • function est un type • Fonctions imbriquées, anonymes • Fonctions globales : 16http://www lastGraf contient le denier du tableau allGrafs • Insertion : – Recherche du parent – Recherche du frère gauche – Insertion depuis le parent Avec jQuery • Création et ajout : 33https://developer.mozilla0 码力 | 10 页 | 91.95 KB | 1 年前3
共 15 条
- 1
- 2













