https://github.com/overtrue/laravel.so
Source Code of http://laravel.so (old)
https://github.com/overtrue/laravel.so
Last synced: 10 months ago
JSON representation
Source Code of http://laravel.so (old)
- Host: GitHub
- URL: https://github.com/overtrue/laravel.so
- Owner: overtrue
- License: mit
- Created: 2017-05-25T03:26:14.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-06T08:06:57.000Z (almost 7 years ago)
- Last Synced: 2025-03-19T02:37:59.809Z (10 months ago)
- Language: PHP
- Size: 6.9 MB
- Stars: 13
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [laravel.so](http://laravel.so)
http://laravel.so
# 安装
1. 克隆代码到本地
```
git clone https://github.com/laravelso/site
cd site
```
1. 安装依赖
```
composer install -vvv
```
1. 修改目录权限:
```
chmod -R 755 ./
chmod -R 777 ./storage
```
1. 编辑 .env 并正确填写数据库部分。
```
cp .env.example .env
vim .env
```
1. 导入数据库:
```
php artisan migrate
php artisan db:seed
```
用户名:`admin` 密码:`password`
# Vue 例子
1. 在项目根目录, 安装依赖
```
npm install --no-bin-links
```
1. 资源文件编译及合并
```
gulp
```
1. 设置路由 `app/Http/routes.php`
```
Route::get('example/{vue_capture?}', function () {
return view('example');
});
```
访问 [http://site.app/example]()
## PHP 扩展包开发
> 想知道如何从零开始构建 PHP 扩展包?
>
> 请关注我的实战课程,我会在此课程中分享一些扩展开发经验 —— [《PHP 扩展包实战教程 - 从入门到发布》](https://learnku.com/courses/creating-package)
# License
MIT