austintoddj/studio

此包已被弃用且不再维护。作者建议使用 austintoddj/canvas 包。

Canvas 的中端前端。

v1.2.0 2020-09-21 20:45 UTC

This package is auto-updated.

Last update: 2020-09-25 13:36:39 UTC


README

header.png

68747470733a2f2f706f7365722e707567782e6f72672f61757374696e746f64646a2f73747564696f2f646f776e6c6f616473 68747470733a2f2f706f7365722e707567782e6f72672f61757374696e746f64646a2f73747564696f2f762f737461626c65 68747470733a2f2f706f7365722e707567782e6f72672f61757374696e746f64646a2f73747564696f2f6c6963656e7365

简介

虽然 Canvas 没有指定你的前端设计,但它确实提供了一个使用 BootstrapVue 的基本起点,这对许多应用都将很有帮助。

安装

你可以使用 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 许可证