Combination of initial files and some new code for login and user registration.

This commit is contained in:
James Cole
2014-06-29 22:12:33 +02:00
parent a3a30bd5e1
commit 5d430e7dad
72 changed files with 9779 additions and 913 deletions

21
app/models/Component.php Normal file
View File

@@ -0,0 +1,21 @@
<?php
class Component extends Eloquent
{
public function componentType()
{
return $this->belongsTo('ComponentType');
}
public function transactions()
{
return $this->belongsToMany('Transaction');
}
public function user()
{
return $this->belongsTo('User');
}
}