cnvs / studio
v1.1.0
2020-08-26 01:34 UTC
Requires
- php: ^7.2
- ext-json: *
- laravel/framework: ^6.0|^7.0
This package is auto-updated.
Last update: 2020-08-26 01:43:08 UTC
README
简介
虽然Canvas没有规定您前端的具体设计,但它确实提供了一个使用Bootstrap和Vue的基本起点,这对于许多应用将是有帮助的。
安装
您可以使用composer将Studio安装到您的Laravel项目中
composer require austintoddj/studio
一旦安装了austintoddj/studio
包,您可以使用studio:install
Artisan命令安装前端脚手架
php artisan studio:install
安装了austintoddj/studio
Composer包并生成了前端脚手架后,您的package.json
文件将包含安装和编译所需的依赖项
# Using NPM npm install npm run dev # Using Yarn yarn yarn dev
配置
编译Studio的资产后,主配置文件将位于config/studio.php
。此文件允许您自定义应用程序使用该包的各个方面。
Studio默认在/studio
处提供一个简单的UI。这可以通过更新path
选项来更改
/* |-------------------------------------------------------------------------- | Base Route |-------------------------------------------------------------------------- | | This is the URI path where Studio will be accessible from. You are free | to change this path to anything you like. Note that the URI will not | affect the paths of its internal API that aren't exposed to users. | */ 'path' => env('STUDIO_PATH_NAME', 'studio'), /* |-------------------------------------------------------------------------- | User Identifier |-------------------------------------------------------------------------- | | This is the publicly identifying attribute given in the URL to expose | users. By default, the User ID will be used. Note that "username" | requires a canvas_user_meta record to exist and be defined. | | Supported Identifiers: "id", "username" | */ 'identifier' => env('STUDIO_USER_IDENTIFIER', 'id'),
许可证
Studio是开源软件,采用MIT许可证。