This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Convert date and time from Excel into a PHP DateTime object | |
* | |
* Based on similar function from PHPExcel library. | |
* | |
* @see https://stackoverflow.com/a/11172688/401980 | |
* @see http://www.cpearson.com/excel/datetime.htm | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Providers; | |
use Illuminate\Support\Facades\URL; | |
use Illuminate\Support\ServiceProvider; | |
use Illuminate\Support\Str; | |
class AppServiceProvider extends ServiceProvider | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE p, pm | |
FROM wp_posts p | |
INNER | |
JOIN wp_postmeta pm | |
ON pm.post_id = p.ID | |
WHERE p.post_type = 'page' | |
AND p.post_date < (NOW() - INTERVAL 120 DAY); |
OlderNewer