iboot/core 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

iboot/core

最新稳定版本:v2.0.2

Composer 安装命令:

composer require iboot/core

包简介

This is a core package for iboot project

README 文档

README

Description.

This is a core package management

Add config for Laravel 10

File package.json


{
    "private": true,
    "scripts": {
        "dev": "npm run development",
        "development": "mix",
        "watch": "mix watch",
        "watch-poll": "mix watch -- --watch-options-poll=1000",
        "hot": "mix watch --hot",
        "prod": "npm run production",
        "production": "mix --production"
    },
    "devDependencies": {
        "axios": "^1.1.2",
        "laravel-mix": "^6.0.49",
        "popper.js": "^1.16.1"
    },
    "dependencies": {
        "autoprefixer": "10.4.5",
        "glob": "^10.3.10"
    }
}

Create new project and add file webpack.mix.js

const mix = require('laravel-mix');
const glob = require('glob');
const path = require('path');

/*
 |--------------------------------------------------------------------------
 | Mix Asset Management
 |--------------------------------------------------------------------------
 |
 | Mix provides a clean, fluent API for defining some Webpack build steps
 | for your Laravel applications. By default, we are compiling the CSS
 | file for the application as well as bundling up all the JS files.
 |
 */

mix.options({
  processCssUrls: false,
  clearConsole: true,
  terser: {
    extractComments: false,
  }
})

// Run all webpack.mix.js in app
glob.sync(path.resolve(__dirname) + '/vendor/iboot/**/webpack.mix.js').forEach(item => require(item))
glob.sync(path.resolve(__dirname) + '/packages/**/webpack.mix.js').forEach(item => require(item))

How to install?

composer require iboot/core

Run Environment

php artisan core:environment
  • Change your config/auth.php file:
'providers' => [
    'users' => [
        'driver' => 'eloquent',
        'model' => \IBoot\Core\App\Models\User::class,
    ],
];
  • Install node_modules:
npm install

Run demo

php artisan ser
npm run watch

http://localhost:8000/admin

Email: admin@icitech.net
Password: password

统计信息

  • 总下载量: 101
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-10-04