{"id":18696658,"url":"https://github.com/dukeann/school_blog","last_synced_at":"2025-04-12T07:31:31.200Z","repository":{"id":43633360,"uuid":"71741693","full_name":"DukeAnn/school_blog","owner":"DukeAnn","description":"基于laravel5.2的博客系统","archived":false,"fork":false,"pushed_at":"2017-02-08T01:52:12.000Z","size":24606,"stargazers_count":6,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-02-27T00:01:15.705Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/DukeAnn.png","metadata":{"files":{"readme":"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}},"created_at":"2016-10-24T01:38:21.000Z","updated_at":"2020-01-08T09:27:01.000Z","dependencies_parsed_at":"2022-09-18T11:02:56.310Z","dependency_job_id":null,"html_url":"https://github.com/DukeAnn/school_blog","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DukeAnn%2Fschool_blog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DukeAnn%2Fschool_blog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DukeAnn%2Fschool_blog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DukeAnn%2Fschool_blog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DukeAnn","download_url":"https://codeload.github.com/DukeAnn/school_blog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223502954,"owners_count":17156084,"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","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-07T11:20:12.309Z","updated_at":"2024-11-07T11:20:12.876Z","avatar_url":"https://github.com/DukeAnn.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"#基于laravel5.2的博客系统\n\u003e此项目是我大学毕业设计所写的，我基本上功能上是按Wordpress写的一个博客系统，其中可能会有bug，因为我当时在工作，每天只能晚上写。\n如果有什么问题可以发我邮箱:adk@adki.me\n\n[演示地址：http://blog.adki.me/](http://blog.adki.me/)\n\n##安装方法\n上传完网站程序后对网站目录进行权限设置执行：\n```shell\n$ chown www:www -R 你的项目所在目录\n\n例如：我的目录是/home/liangzhi/桌面/html/my/laravel-blog-demo,www-data为运行apache的用户\n\n$ chown www-data:www-data -R /home/liangzhi/桌面/html/my/laravel-blog-demo\n\n```\n\n进入网站目录，执行更新composer依赖：\n```shell\n$ composer update\n```\n\n配置laravel框架的配置文件\n首先把`app/Providers/AppServiceProvider.php`文件中：\n```php\n$seo_index = Seo::findOrFail(1);\n$seo_photography = Seo::findOrFail(2);\n$seo_blog = Seo::findOrFail(3);\n$links = Link::all();\nview()-\u003eshare('seo_index',$seo_index);\nview()-\u003eshare('seo_photography',$seo_photography);\nview()-\u003eshare('seo_blog',$seo_blog);\nview()-\u003eshare('links',$links);\n```\n\n这段代码剪切出来，执行完下面的命令后再粘贴回去\n\n\n修改数据库用户与密码\n\n```shell\n$  cp .env.example  .env\n```\n\n将.env中的数据库名字，数据库用户，密码修改成你环境的配置\n\n\n执行laravel数据库表创建命令\n\n```shell\n$ php artisan migrate\n```\n\n执行laravel数据填充命令\n\n```shell\n$ php artisan db:seed\n```\n重新生成密钥\n\n```shell\n$ php artisan key:generat\n```\n\n\n\n\n执行完成之后访问网址，享受自己的博客平台吧！！！\n\n默认用户名：adk@adki.me 密码：111111\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdukeann%2Fschool_blog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdukeann%2Fschool_blog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdukeann%2Fschool_blog/lists"}