An open API service indexing awesome lists of open source software.

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)

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