mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-02 22:48:02 +00:00
148 - Viewing an Unused Invitation
This commit is contained in:
13
app/Invitation.php
Normal file
13
app/Invitation.php
Normal 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user