Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed Group 1.docx
Binary file not shown.
Binary file removed Group 11.docx
Binary file not shown.
Binary file removed Group 12.docx
Binary file not shown.
Binary file removed Group 2.docx
Binary file not shown.
Binary file removed Group 3.docx
Binary file not shown.
Binary file removed Group 4.docx
Binary file not shown.
Binary file removed Group 5.docx
Binary file not shown.
Binary file removed Group 6.docx
Binary file not shown.
Binary file removed Group 8.docx
Binary file not shown.
Binary file removed Group 9.pdf
Binary file not shown.
Binary file added Group_10-Project-Part_2.pdf
Binary file not shown.
Binary file added Migrations/.DS_Store
Binary file not shown.
45 changes: 45 additions & 0 deletions Migrations/2014_10_12_000000_create_users_table.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('email')->unique();
$table->string('password', 60);
$table->longText('address');
$table->string('city');
$table->string('state');
$table->string('country');
$table->date('date_of_birth');
$table->string('gender');
$table->integer('phoneno');
$table->integer('zipcode');
$table->string('image');
$table->longText('quote');
$table->string('status');
$table->rememberToken();
$table->timestamps();
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('users');
}
}
37 changes: 37 additions & 0 deletions Migrations/2016_02_28_161656_create_purchases_table.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreatePurchasesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('purchases', function (Blueprint $table) {
$table->increments('id');
$table->integer('cvv');
$table->integer('creditcardnumber');
$table->integer('cardname');
$table->integer('price');
$table->date('expirydate');
$table->date('date');
$table->longText('address');
$table->timestamps();
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('purchases');
}
}
33 changes: 33 additions & 0 deletions Migrations/2016_02_28_161714_create_reports_table.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateReportsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('reports', function (Blueprint $table) {
$table->increments('id');
$table->longText('description');
$table->longText('reason');
$table->string('status');
$table->timestamps();
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('reports');
}
}
42 changes: 42 additions & 0 deletions Migrations/2016_02_28_161725_create_events_table.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateEventsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('events', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->longText('desc');
$table->longText('address');
$table->string('city');
$table->string('state');
$table->string('country');
$table->date('timings');
$table->integer('ticket');
$table->integer('ratings');
$table->boolean('recommended');
$table->boolean('reviewed');
$table->boolean('addedByUser');
$table->timestamps();
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('events');
}
}
34 changes: 34 additions & 0 deletions Migrations/2016_02_28_161746_create_searches_table.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSearchesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('searches', function (Blueprint $table) {
$table->increments('id');
$table->string('event');
$table->string('city');
$table->string('state');
$table->string('country');
$table->timestamps();
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('searches');
}
}
Binary file added Models/.DS_Store
Binary file not shown.
25 changes: 25 additions & 0 deletions Models/Event.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Event extends Model
{
//
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email', 'password', 'desc','country','ticket',
];

/**
* The attributes excluded from the model's JSON form.
*
* @var array
*/

}
23 changes: 23 additions & 0 deletions Models/Purchase.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Purchase extends Model
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'cardname', 'cvv', 'creditcardnumber','price','expirydate',
];

public function events() {
return $this->hasOne('Event');
}


}
15 changes: 15 additions & 0 deletions Models/Report.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Report extends Model
{
//

public function events() {
return $this->hasOne('Event');
}

}
14 changes: 14 additions & 0 deletions Models/Search.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Search extends Model
{
//
public function events() {
return $this->hasOne('Event');
}

}
40 changes: 40 additions & 0 deletions Models/User.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?php

namespace App;

use Illuminate\Foundation\Auth\User as Authenticatable;

class User extends Authenticatable
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email', 'password',
];

/**
* The attributes excluded from the model's JSON form.
*
* @var array
*/
protected $hidden = [
'password', 'remember_token',
];

public function reports() {
return $this->hasMany('Report');
}

public function searches() {
return $this->hasMany('Search');
}

public function purchase() {
return $this->hasMany('Purchase');
}


}
Binary file modified Web Application Requirements.docx
Binary file not shown.