承接 gterrusa/laravel-nova-google-calendar 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

gterrusa/laravel-nova-google-calendar

最新稳定版本:0.3.2

Composer 安装命令:

composer require gterrusa/laravel-nova-google-calendar

包简介

A Laravel Nova tool.

README 文档

README

Latest Version on Packagist Total Downloads

A Laravel Nova tool that provides an interface with Google Calendar.

Installation

You can install the package via composer:

composer require gterrusa/laravel-nova-google-calendar

You can publish the config file with:

php artisan vendor:publish --provider="GTerrusa\LaravelNovaGoogleCalendar\ToolServiceProvider"

This is the contents of the published config file:

<?php

return [
    /**
     * The accessor name of the attribute on your User model
     * to use to check if a User is an Admin.
     * Set to null to give all User's Admin privileges.
     */
    'user_admin_boolean' => null,

    /**
     * Should attendees be saved to Laravel Database?
     */
    'save_attendees_to_db' => false,

    /**
     * If saving attendees to Laravel Database, what path should be used to save them?
     */
    'attendee_create_or_update_path' => '/api/leads/createOrUpdate',

    /**
     * Additional data to send to the Laravel database.
     *
     * example:
     * 'db_attendee_additional_info' => [
     *     [
     *         'field' => 'picked_up',
     *         'label' => 'Picked Up',
     *         'input' => 'checkbox',
     *         'type' => 'boolean',
     *         'default' => false,
     *         'calendars' => [
     *             'Gift Card Pick-Up'
     *         ]
     *     ],
     *     [
     *         'field' => 'gift_card_no',
     *         'label' => 'Gift Card Number',
     *         'input' => 'text',
     *         'type' => 'string',
     *         'default' => '',
     *         'calendars' => [
     *             'Gift Card Pick-Up'
     *         ]
     *     ]
     * ],
     */
    'db_attendee_additional_info' => [],

    /**
     * The endpoint to fetch the additional data from the Laravel database.
     * Should be a 'POST' endpoint, and accept an array called 'attendees'
     * and return the same array with the additional data appended to each attendee.
     */
    'fetch_db_attendee_additional_info_path' => null,

    /**
     * An array of Calendar's that don't allow attendees to be added via the Calendar tool.
     *
     * example:
     * 'add_attendees_disabled' => ['Gift Card Pick-Up'],
     */
    'add_attendees_disabled' => [],

    /**
     * Send Google Calendar Event Summary by default?
     */
    'default_event_summary' => false,
];

Setup

  1. Follow the setup steps here
  2. Include the tool in your NovaServiceProvider
    ...
    use GTerrusa\LaravelNovaGoogleCalendar\LaravelNovaGoogleCalendar;
    
    ...

    public function tools()
    {
        return [
            ...,
            new LaravelNovaGoogleCalendar()
        ];
    }

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-12-09