定制 czemu/nova-calendar-tool 二次开发

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

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

czemu/nova-calendar-tool

最新稳定版本:1.3.1

Composer 安装命令:

composer require czemu/nova-calendar-tool

包简介

Calendar tool for Laravel Nova.

README 文档

README

This is a package for Laravel Nova which allows you to create, update and delete events on the calendar. It also has a Google Calendar integration.

Screeenshots

Nova Calendar Tool - screen 1 Nova Calendar Tool - screen 2 Nova Calendar Tool - screen 3

Requirements

Installation

Install the package via composer:

composer require czemu/nova-calendar-tool

Publish the migration:

php artisan vendor:publish --provider='Czemu\NovaCalendarTool\ToolServiceProvider' --tag="migrations"

Run the migration:

php artisan migrate

Publish the config (optional):

php artisan vendor:publish --provider='Czemu\NovaCalendarTool\ToolServiceProvider' --tag="config"

Register the tool in the tools method of the NovaServiceProvider:

// app/Providers/NovaServiceProvider.php

// ...

public function tools()
{
    return [
        // ...
        new \Czemu\NovaCalendarTool\NovaCalendarTool,
    ];
}

Google Calendar Integration

This step is optional. If you want to synchronize your events with Google Calendar you have to publish the configuration file from spatie/laravel-google-calendar package:

php artisan vendor:publish --provider="Spatie\GoogleCalendar\GoogleCalendarServiceProvider"

This will create the config/google-calendar.php file with the following content:

<?php

return [

    /*
     * Path to the json file containing the credentials.
     */
    'service_account_credentials_json' => storage_path('app/google-calendar/service-account-credentials.json'),

    /*
     *  The id of the Google Calendar that will be used by default.
     */
    'calendar_id' => env('GOOGLE_CALENDAR_ID'),
];

So next, you have to insert GOOGLE_CALENDAR_ID=your_id into the .env file (it's in the Google Calendar settings page) and the account credentials into the storage/app/google-calendar/service-account-credentials.json file (you can obtain it from Google API Console). Both of these things are explained here.

Artisan Commands

Export all events to Google Calendar

php artisan nova-calendar:export

Import all events from Google Calendar

php artisan nova-calendar:import

Credits

License

The MIT License (MIT). Please see the LICENSE.md file for more information.

统计信息

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

GitHub 信息

  • Stars: 30
  • Watchers: 2
  • Forks: 26
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-06-29