Merge pull request #3 from Attendize/master

Realign with master project
This commit is contained in:
Sam Bell 2018-04-26 09:17:41 +01:00 committed by GitHub
commit 2fc6e90432
3 changed files with 6 additions and 8 deletions

View File

@ -557,7 +557,7 @@ class EventCheckoutController extends Controller
/*
* Update the event stats
*/
$event_stats = EventStats::firstOrNew([
$event_stats = EventStats::updateOrCreate([
'event_id' => $event_id,
'date' => DB::raw('CURRENT_DATE'),
]);

View File

@ -48,7 +48,7 @@ class EventStats extends \Illuminate\Database\Eloquent\Model
*/
public function updateViewCount($event_id)
{
$stats = $this->firstOrNew([
$stats = $this->updateOrCreate([
'event_id' => $event_id,
'date' => DB::raw('CURRENT_DATE'),
]);
@ -72,7 +72,7 @@ class EventStats extends \Illuminate\Database\Eloquent\Model
*/
public function updateSalesVolume($event_id)
{
$stats = $this->firstOrNew([
$stats = $this->updateOrCreate([
'event_id' => $event_id,
'date' => DB::raw('CURRENT_DATE'),
]);
@ -92,7 +92,7 @@ class EventStats extends \Illuminate\Database\Eloquent\Model
*/
public function updateTicketsSoldCount($event_id, $count)
{
$stats = $this->firstOrNew([
$stats = $this->updateOrCreate([
'event_id' => $event_id,
'date' => DB::raw('CURRENT_DATE'),
]);

View File

@ -10,7 +10,7 @@ Open-source ticket selling and event management platform
https://www.attendize.com
> PLEASE NOTE: Attendize is in the early stages of development and therefore is likely to contain bugs and unfinished features. Be wary about using Attendize in a production environment.
> PLEASE NOTE: Attendize is in the early stages of development and therefore is likely to contain bugs and unfinished features.
> Please ask any questions/report bugs in our new support forum: https://attendize.com/forum/
@ -20,8 +20,6 @@ Demo Event Page: http://attendize.website/e/799/attendize-test-event-w-special-g
*Attendize* is an open-source event ticketing and event management application built using the Laravel PHP framework. Attendize was created to offer event organisers a simple solution to managing general admission events, without paying extortionate service fees.
The current version (v1.X.X) will not receive any significant feature improvements, only security fixes. All effort will go into developing <a href="https://github.com/Attendize/Attendize/tree/develop">v2.0.0</a>.
Current Features (v1.X.X)
---
- Beautiful mobile friendly event pages
@ -49,7 +47,7 @@ Current Features (v1.X.X)
- Ability to ask custom questions during checkout
- Browser based QR code scanner for door management
Upcoming changes in v2.0.0
Roadmap
---
- Theme support
- Plugin Support