148 - Viewing an Unused Invitation

This commit is contained in:
Adam Wathan
2017-12-08 12:44:32 -05:00
parent 6f4da445d2
commit ac4d968597
7 changed files with 98 additions and 0 deletions

13
app/Invitation.php Normal file
View File

@@ -0,0 +1,13 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Invitation extends Model
{
public static function findByCode($code)
{
return self::where('code', $code)->first();
}
}