定制 seandowney/backpackeventscrud 二次开发

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

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

seandowney/backpackeventscrud

Composer 安装命令:

composer require seandowney/backpackeventscrud

包简介

Events management interface for Laravel 5 using Backpack CRUD.

README 文档

README

Latest Version on Packagist Software License Total Downloads

An admin interface to easily add/edit/remove Events, using Laravel Backpack.

Install

1) In your terminal:

$ composer require seandowney/backpackeventscrud

2) Add the service provider to your config/app.php file:

SeanDowney\BackpackEventsCrud\EventsCRUDServiceProvider::class,

3) Publish the config file & run the migrations

$ php artisan vendor:publish --provider="SeanDowney\BackpackEventsCrud\EventsCRUDServiceProvider" #publish config, view  and migration files
$ php artisan migrate #create the events tabl

4) [Optional] Add a menu item for it in resources/views/vendor/backpack/base/inc/sidebar.blade.php or menu.blade.php:

<li class="treeview">
  <a href="#"><i class="fa fa-group"></i> <span>Events</span> <i class="fa fa-angle-left pull-right"></i></a>
  <ul class="treeview-menu">
	<li><a href="{{ url(config('backpack.base.route_prefix', 'admin').'/event') }}"><i class="fa fa-file-o"></i> <span>Events</span></a></li>
	<li><a href="{{ url(config('backpack.base.route_prefix', 'admin').'/venue') }}"><i class="fa fa-file-o"></i> <span>Venues</span></a></li>
  </ul>
</li>

Usage Guide

Front End

Route::get('events', ['uses' => '\SeanDowney\BackpackEventsCrud\app\Http\Controllers\EventController@index']);
Route::get('events/{event}/{subs?}', ['as' => 'view-event', 'uses' => '\SeanDowney\BackpackEventsCrud\app\Http\Controllers\EventController@view'])
    ->where(['event' => '^((?!admin).)*$', 'subs' => '.*']);

You can use your own Frontend Controller and routes instead of the base routes.

There are base views with the package which can be modified in your own code by adding your own to `/resources/views/vendor/seandowney/eventscrud/`.

In the Event model there are a few helpful methods (next, upcoming, prev) which can be used in a View Composer Eg

View::composer('_partials.sidebar', function ($view) use ($events) {
    $view->with('events', $events->upcoming());
    $view->with('ticket_vendors', config('seandowney.eventscrud.ticket_vendors'));
});

Config

Ticket Vendors can be edited in the `config/seandowney/eventscrud.php`

Ticket Vendors are used to display the registration form on the front end. Eg Choose Eventbrite, add the Eventbrite event id to the backend field and then on the Frontend an Eventbrite form is displayed to allow the users to register for tickets using Eventbrite.

You can add other vendors yourself by adding more views to `/resources/views/vendor/seandowney/eventscrud/ticket_vendors/`

The package is not intended to be a complete replacement for Eventbrite or similar services.

The frontend provided is just a starting point and will not be developed further.

Change log

Please see CHANGELOG for more information what has changed recently.

Testing

// TODO

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email sean@considerweb.com instead of using the issue tracker.

Credits

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-12-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固