定制 imrancse94/grocery 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

imrancse94/grocery

最新稳定版本:1.1.0

Composer 安装命令:

composer require imrancse94/grocery

包简介

This is test library

README 文档

README

  1. composer require imrancse94/grocery

  2. php artisan vendor:publish --tag=grocery

  3. Need to install vue js npm i vue@latest vue-router yup clsx pinia sweetalert2 tailwind-merge vee-validate @vitejs/plugin-vue

  4. Need to configure vue js with vite 'resources/js/grocery/app.js', 'resources/js/grocery/grocery.css' add these line into vite.config.js file then import @vitejs/plugin-vue and include vue() under plugins like below image

  5.  import { defineConfig } from 'vite';
     import laravel from 'laravel-vite-plugin';
     import vue from '@vitejs/plugin-vue';
     export default defineConfig({
         plugins: [
             vue(),
             laravel({
                 input: [
                     'resources/css/app.css',
                     'resources/js/app.js',
                     'resources/js/grocery/app.js',
                     'resources/js/grocery/grocery.css'
                 ],
                 refresh: true,
            }),
         ],
     });
    
  6. Install tailwindcss npm install -D tailwindcss postcss autoprefixer && npx tailwindcss init -p and add necessary configuration into tailwind.config.js like below

    export default {
    content: [
    "./resources/**/*.blade.php",
    "./resources/**/*.js",
    "./resources/**/*.vue"
    
            ],
            theme: {
                darkMode: 'class',
                extend: {
                    strokeWidth: {
                        '3': '3',
                    }
                }
            },
             plugins: [],
        }
    
    
  7. Add 4 variables in .env file

       VITE_GOOGLE_RECAPTCHA_KEY=""
       GOOGLE_RECAPTCHA_SECRET=""
       ADMIN_EMAIL="user@admin.com"
       DB_CONNECTION=pgsql
    
  8. php artisan config:cache

  9. php artisan migrate

  10. php artisan db:seed --class="Imrancse94\Grocery\database\seeders\DatabaseSeeder"

  11. After successfully installation run php artisan serve and visit http://<domain-url>/grocery

Note:

You can check the repo https://github.com/imrancse94/demo-pkg-test.git I have installed the package in a fresh laravel project and added one feature test php artisan test --filter=PreOrderTest

Live url https://test.imranwebs.dev/grocery

The advantage of this package is that you can customize UI as per as your requirement

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: Vue

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-07-04