承接 vanguardapp/announcements 相关项目开发

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

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

vanguardapp/announcements

最新稳定版本:v8.0

Composer 安装命令:

composer require vanguardapp/announcements

包简介

Announcements plugin for Vanguard

README 文档

README

???? Announcements plugin for Vanguard - Advanced PHP Login and User Management system.

Installation

This plugin requires Vanguard 4.0.0 or greater.

Installation via Composer

To install the plugin first you will need to pull it via composer by running the following command

composer require vanguardapp/announcements 

The composer will install the plugin for you as well as it's dependencies.

The next step is to register the plugin by adding the \Vanguard\Announcements\Announcements::class to the list of Vanguard plugins inside the VanguardServiceProvider:

protected function plugins() { return [ //... \Vanguard\Announcements\Announcements::class, ]; }

As soon as your plugin is registered, you should publish the plugins static assets and migrations by running the following command:

php artisan vendor:publish --provider="Vanguard\Announcements\Announcements" --tag="public" --tag="migrations" 

And, as the last step of the installation, you will need to run the following commands to make all the necessary database modifications:

php artisan migrate php artisan db:seed --class="Vanguard\Announcements\Database\Seeders\AnnouncementsDatabaseSeeder" 

At this point the plugin will be fully installed and ready to go.

Manual Installation

If you plan to make the modifications to the plugin and customize it to fit your needs, it's much easier if you add it to your project manually.

To do so, you will need to download the ZIP archive from GitHub by clicking the green "Clone or download" button and then choosing the "Download ZIP" option from the dropdown.

Once you have the ZIP file on your computer, extract it to the plugins/Announcements folder (you will need to create this folder since it probably won't be present in your Vanguard installation).

Next step is to update your main composer.json file located in Vanguard's root directory and add the following object to the repositories array:

{ "type": "path", "url": "./plugins/Announcements" } 

This will tell the composer that your plugin is located in /plugins/Announcements directory and that it should be installed from there.

Now, add the following to the composer's require section

"vanguardapp/announcements": "*" 

And run composer update.

Composer will now install the plugin from your local directory instead of pulling it from GitHub, which means that you will be able to make the changes to the plugin itself and customize it to fit your needs.

The rest of the process is the same as when the plugin is installed by directly fetching it via composer from the GitHub repository, so you will need to do all the same steps as above, which in short involves updating the VanguardServiceProvider and running the commands to publish plugin's static assets and to update the database.

License

This plugin is an open-source software licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固