{"id":18704791,"url":"https://github.com/lancewan/laravelhub","last_synced_at":"2025-07-30T17:41:03.668Z","repository":{"id":140686644,"uuid":"93353832","full_name":"lanceWan/laravelhub","owner":"lanceWan","description":"5.5版基础教程笔记","archived":false,"fork":false,"pushed_at":"2017-06-22T12:26:59.000Z","size":2375,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-14T08:42:01.757Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://lancewan.github.io/laravelhub/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lanceWan.png","metadata":{"files":{"readme":"docs/README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-05T01:42:34.000Z","updated_at":"2019-09-06T03:59:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"2f89088e-abe8-4e59-82b5-7a4736175cca","html_url":"https://github.com/lanceWan/laravelhub","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lanceWan/laravelhub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lanceWan%2Flaravelhub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lanceWan%2Flaravelhub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lanceWan%2Flaravelhub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lanceWan%2Flaravelhub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lanceWan","download_url":"https://codeload.github.com/lanceWan/laravelhub/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lanceWan%2Flaravelhub/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267912136,"owners_count":24164504,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T12:08:20.661Z","updated_at":"2025-07-30T17:41:03.513Z","avatar_url":"https://github.com/lanceWan.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 序言\n\n## Laravel5.5 入门教程\n本教程将介绍如何使用 `Laravel` 一步一步构建一个简单的问答应用，通过本教程，你将学到 `Laravel` 基础知识。不仅如此，本教程还会对这些基础知识点进行延伸扩展。\n\n## Laravel 安装指南\n\u003e 本教程注重实战，开发环境根据自己的爱好去搭建。跟着本教程学习的小伙伴，默认您已了解 `Laravel` 的基本知识。所以开发环境搭建部分省略，如果这方面有疑问可以进群讨论交流。\n\n## 服务器要求\nLaravel 框架会有一些系统上的要求，你需要确保你的开发环境安装了下面的几个拓展：\n* PHP \u003e= 5.6.4\n* OpenSSL PHP Extension\n* PDO PHP Extension\n* Mbstring PHP Extension\n* Tokenizer PHP Extension\n* XML PHP Extension\n* **fileinfo**\n\n## 安装 Laravel\nLaravel 使用 `Composer` 来管理代码依赖。所以，在使用 `Laravel` 之前，请先确认你的电脑上安装了 `Composer`。\n\u003e 对于没有任何 `Composer` 基础的小伙伴建议看一下网上的教程，这里给大家建议一下：\n*  [后盾网 Composer 教程](http://www.houdunren.com/houdunren18_49_.html)\n\n### 通过 Laravel 安装工具\n首先，使用 Composer 下载 Laravel 安装包：\n\n```\ncomposer global require \"laravel/installer\"\n```\n\n请确定你已将 `~/.composer/vendor/bin` 路径加到 `PATH`，只有这样系统才能找到 `laravel` 的执行文件。\n\n一旦安装完成，就可以使用 `laravel new` 命令在指定目录创建一个新的 `Laravel` 项目。\n\n### 通过 Composer Create-Project\n除此之外，你也可以通过 `Composer` 在命令行运行 `create-project` 命令来安装 `Laravel`：\n```\ncomposer create-project --prefer-dist laravel/laravel blog\n```\n\n## 服务器配置\n在安装 `Laravel` 之后，你需要配置你的 `Web` 服务器的根目录为 `public` 目录。 这个目录的 `index.php` 文件作为所有 `HTTP` 请求进入应用的前端处理器。\n\n### Apache\nLaravel 框架通过 `public/.htaccess` 文件来让 `URL` 不需要 `index.php` 即可访问。在 `Apache` 启用 `Laravel` 之前，请确认是否有开启 `mod_rewrite` 模块，以便 `.htaccess` 文件发挥作用。\n\n如果 `Laravel` 附带的 `.htaccess` 文件在 `Apache` 中无法使用的话，请尝试下方的做法：\n\n```\nOptions +FollowSymLinks\nRewriteEngine On\n\nRewriteCond %{REQUEST_FILENAME} !-d\nRewriteCond %{REQUEST_FILENAME} !-f\nRewriteRule ^ index.php [L]\n```\n\n### Nginx\n如果你使用 `Nginx` ，在你的网站配置中加入下述代码将会转发所有的请求到 `index.php` 前端控制器。\n\n```\nlocation / {\n    try_files $uri $uri/ /index.php?$query_string;\n}\n```\n\n## 目录权限\n安装 `Laravel` 之后， `Linux` 和 `Mac` 系统需要配置一些权限 。 `storage` 和 `bootstrap/cache` 目录应该允许你的 `Web` 服务器写入，否则 `Laravel` 将无法写入。\n\n## 后续教程\n* 《Laravel 进阶教程》\n* 《Laravel 扩展》\n* 《Laravel Vue 实战》\n\n## 版权声明\n本教程归 [晚黎](http://iwanli.me) 所有\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flancewan%2Flaravelhub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flancewan%2Flaravelhub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flancewan%2Flaravelhub/lists"}