austintoddj / studio
v1.2.0
2020-09-21 20:45 UTC
Requires
- php: ^7.3
- laravel/framework: ^6.0|^7.0|^8.0
Requires (Dev)
- ext-json: *
This package is auto-updated.
Last update: 2020-09-25 13:36:39 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 许可证。