Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/webdevlabs/phreak
Browse files Browse the repository at this point in the history
  • Loading branch information
webdevlabs committed Jan 19, 2019
2 parents 2ea5d62 + 660bf1d commit 1bcc192
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Example PDO driver fetch queries:

The *Eloquent ORM* provides a beautiful, simple ActiveRecord implementation for working with your database. Each database table has a corresponding "Model" which is used to interact with that table. Models allow you to query for data in your tables, as well as insert new records into the table.

*Examples of phreak eloquent usage can be found at the '**modules/elog**' made for demonstration.*
*Examples of phreak eloquent usage can be found at the '**modules/eloq**' made for demonstration.*

Full documentation can be found at [Eloquent's](https://laravel.com/docs/5.7/eloquent) page.

Expand Down
7 changes: 3 additions & 4 deletions app/commands/clearPushSubscriptions.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
<?php

namespace App\Commands;

use System\DB;

class clearPushSubscriptions
{

public function __construct ()
public function __construct()
{
$results = DB::column("SELECT COUNT(*) from `push_subscriptions` WHERE `added` < (NOW() - INTERVAL 1 DAY)");
$results = DB::column('SELECT COUNT(*) from `push_subscriptions` WHERE `added` < (NOW() - INTERVAL 1 DAY)');
echo 'Deleted '.$results.' records from database';
}

}

0 comments on commit 1bcc192

Please sign in to comment.