Learning Laravel'password' => env('DB_PASSWORD', ''), 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', 'strict' => false, 'engine' => null, ], ], If you $ composer create-project laravel/laravel hello-world 1. Navigate to the project folder, e.g. $ cd C:\xampp\htdocs\hello-world 2. Create a controller: $ php artisan make:controller HelloController the display of that view with the "Hello World" string. We'll use artisan in the command line. $> cd your_laravel_project_root_directory $> php artisan make:controller HelloController That will just0 码力 | 216 页 | 1.58 MB | 1 年前3
Laravel 5.6 中文文档Laravel 项目的主机: cd ~ git clone https://github.com/laravel/homestead.git Homestead 克隆完成后,你需要检查 Homestead 的版本标签,因为 master 分支不会总是稳定版本,你可以在 GitHub Release Page 查找到最新稳定版本然后在 本地将其检出: cd Homestead // 文档学习如何自定义配置。 别名 你可以在 Homestead 目录下通过编辑 aliases 文件为 Homestead 机器添加 Bash 别名: alias c='clear' alias ..='cd ..' 更新完 aliases 文件后,需要通过 vagrant reload --provision 命令重启 Homestead 机器,以确保新的别名在机器上生效。 日常使用 全局访问 PATH。这些脚本允许你在系统的任意位置运行 Vagrant 命令,并且把命令执行位置指向 Homestead 的安装路径。 Mac/Linux function homestead() { ( cd ~/Homestead && vagrant $* ) } 确保将该函数中的 ~/Homestead 路径调整为指向实际的 Homestead 安装路径。这样你就可以在系统的任意位置运行 homestead0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 6.0 中文文档你可以通过克隆仓库代码来实现 Homestead 安装。将仓库克隆到 用户「家」目录下的 Homestead 目录(没有的话自己创建一个), 这样 Homestead 盒子就可以作为所有 Laravel 项目的主机: cd ~ 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 59 git clone https://github.com/laravel/homestead 克隆完成后,你需要检查 Homestead 的版本标签,因为 master 分 支不会总是稳定版本,你可以在 GitHub Release Page 查找到最新稳 定版本然后在本地将其检出: cd ~/Homestead // 检出指定版本... git checkout v9.1.0 接下来,在 Homestead 目录下运行 bash init.sh 命令来创 建 Homestead 于从客户端访问。 别名 你可以在 Homestead 目录下通过编辑 aliases 文件为 Homestead 机器添加 Bash 别名: alias c='clear' alias ..='cd ..' 更新完 aliases 文件后,需要通过 vagrant reload --provision 命令重启 Homestead 机器,以确保新的别名在机器 上生效。 本文档由学院君提供0 码力 | 1442 页 | 14.66 MB | 1 年前3
《Slides Dev Web》02. Introduction aux frameworks PHP
com/HE-Arc/php-intro-framework/17 $ sudo systemctl start httpd $ cd /var/www/html $ git clone \ > https://github.com/\ > HE-Arc/php-intro-framework $ cd php-intro-framework $ open http://localhost/php-intro-framework À partir de la version 2.0, il faut utiliser un autoloader externe, comme celui de composer (voir ci-dessous). Le code est un poil plus propre du côté de nos templates qui ne peuvent plus exécuter de0 码力 | 24 页 | 1.03 MB | 1 年前3
CakePHP Cookbook 2.x
as of 2.5 Folder::cd(string $path) string Change directory to $path. Returns false on failure: path; // Prints /foo $folder->cd('/bar'); echo $folder->path; $folder->path; // Prints /bar $false = $folder->cd('/non-existent-folder'); Folder::chmod(string $path, integer $mode = false, boolean $recursive = true, array $exceptions = array()) boolean Change the $folder->copy(array( 'to' => '/path/to/new/folder', 'from' => '/path/to/copy/from', // will cause a cd() to occur 'mode' => 0755, 'skip' => array('skip-me.php', '.git'), 'scheme' => Folder::SKIP0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 2.x
2.x Folder::cd(string $path) Return type string Change directory to $path. Returns false on failure: path; // Prints /foo $folder->cd('/bar'); echo echo $folder->path; // Prints /bar $false = $folder->cd('/non-existent-folder'); Folder::chmod(string $path, integer $mode = false, boolean $recursive = true, array $exceptions = array()) Return type boolean $folder->copy(array( 'to' => '/path/to/new/folder', 'from' => '/path/to/copy/from', // will cause a cd() to occur 'mode' => 0755, 'skip' => array('skip-me.php', '.git'), 'scheme' => Folder::SKIP, // Skip0 码力 | 820 页 | 2.52 MB | 1 年前3
CakePHP Cookbook Documentation 5.xchecking the default home page. Before you can do that, you’ll need to start the development server: cd /path/to/our/app bin/cake server Note For Windows, the command needs to be bin\cake server (note there is an upgrade CLI tool: # Install the upgrade tool git clone https://github.com/cakephp/upgrade cd upgrade git checkout 5.x composer install --no-dev With the upgrade tool installed you can now run checking the default home page. Before you can do that, you’ll need to start the development server: cd /path/to/our/app bin/cake server Note For Windows, the command needs to be bin\cake server (note0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook Documentation 5.xchecking the default home page. Before you can do that, you’ll need to start the development server: cd /path/to/our/app bin/cake server Note: For Windows, the command needs to be bin\cake server (note there is an upgrade CLI tool: # Install the upgrade tool git clone https://github.com/cakephp/upgrade cd upgrade git checkout 5.x composer install --no-dev With the upgrade tool installed you can now run checking the default home page. Before you can do that, you’ll need to start the development server: cd /path/to/our/app bin/cake server Note: For Windows, the command needs to be bin\cake server (note0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook 4.x
checking the default home page. Before you can do that, you’ll need to start the development server: cd /path/to/our/app bin/cake server Note For Windows, the command needs to be bin\cake server (note updated to 4.x or PHPUnit8. # Install the upgrade tool git clone https://github.com/cakephp/upgrade cd upgrade git checkout 4.x composer install --no-dev With the upgrade tool installed you can now run checking the default home page. Before you can do that, you’ll need to start the development server: cd /path/to/our/app bin/cake server Note For Windows, the command needs to be bin\cake server (note0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook 4.x
checking the default home page. Before you can do that, you’ll need to start the development server: cd /path/to/our/app bin/cake server Note: For Windows, the command needs to be bin\cake server (note updated to 4.x or PHPUnit8. # Install the upgrade tool git clone https://github.com/cakephp/upgrade cd upgrade git checkout 4.x composer install --no-dev With the upgrade tool installed you can now run checking the default home page. Before you can do that, you’ll need to start the development server: cd /path/to/our/app bin/cake server Note: For Windows, the command needs to be bin\cake server (note0 码力 | 967 页 | 2.88 MB | 1 年前3
共 70 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7













