Rangliste almost done
This commit is contained in:
parent
12651fc2e8
commit
43fd8c8cbf
579 changed files with 172489 additions and 127 deletions
|
|
@ -3,6 +3,7 @@
|
|||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use App\User;
|
||||
|
||||
class Payment extends Model
|
||||
{
|
||||
|
|
@ -21,13 +22,13 @@ class Payment extends Model
|
|||
$payment= Payment::create([
|
||||
'user_id' => $user_id,
|
||||
'season_id'=> $season_id,
|
||||
'paid_date'=> $paid_date
|
||||
'paid_date'=> $paid_date ? User::toDBDate($paid_date):null
|
||||
]);
|
||||
|
||||
} else {
|
||||
$payment->user_id = $user_id;
|
||||
$payment->season_id = $season_id;
|
||||
$payment->paid_date = $paid_date;
|
||||
$payment->paid_date = $paid_date ? User::toDBDate($paid_date):null;
|
||||
}
|
||||
|
||||
$payment->save();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue