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 StudentApp\Services\Email; | |
abstract class EmailService | |
{ | |
protected $emailService; | |
protected $template; | |
protected $logger; |
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 StudentApp\Services; | |
class EmailService extends Service | |
{ | |
public function sendPasswordResetToken($code, $email, $firstname, $lastname) | |
{ | |
/* | |
* Load the HTML from templates file |
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
$container['EmailService'] = function($c) { | |
return new \StudentApp\Services\EmailService($c); | |
}; | |
// Replace with this | |
$container['\StudentApp\Services\EmailService::class'] = function($c) { | |
return new \StudentApp\Services\EmailService(); | |
}; |
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
/* | |
* Email Verification | |
*/ | |
$container['EmailService'] = function($c) { | |
return new \StudentApp\Services\EmailService($c); | |
}; | |
/* | |
* Email Verification | |
*/ |
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
object(StudentApp\Models\MobileVerification)#101 (23) { | |
["table":protected]=> | |
string(19) "mobile_verification" | |
["connection":protected]=> | |
NULL | |
["primaryKey":protected]=> | |
string(2) "id" | |
["keyType":protected]=> | |
string(3) "int" | |
["perPage":protected]=> |
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
$userValidation->is_used = 1; | |
$userValidation->verified_at = $carbon::now(); | |
$userValidation->user->update([ | |
'email_verified' => 1 | |
]); | |
$userValidation->save(); |
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 | |
// {NONE, LIKE, LOVE, WOW, HAHA, SAD, ANGRY, THANKFUL} | |
require __DIR__ . '/vendor/autoload.php'; | |
use Intervention\Image\ImageManagerStatic as Image; | |
$pageID = ''; | |
$accessToken = ''; |
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
ffmpeg \ | |
-re -y \ | |
-loop 1 \ | |
-f image2 \ | |
-i img_0.jpg \ | |
-i audio.mp3 \ | |
-acodec libfdk_aac \ | |
-ac 1 \ | |
-ar 44100 \ | |
-b:a 128k \ |
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
'use strict' | |
let Promise = require('bluebird'); | |
let fs = Promise.promisifyAll(require('fs')); | |
let Cheerio = require('cheerio'); | |
let Request = require('request'); | |
let ToughCookie = require('tough-cookie'); | |
class Session { |
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
'use strict' | |
let Promise = require('bluebird') | |
let _ = require('lodash') | |
class Event { | |
constructor(session) { | |
this.session = session; | |
this.scrapedIDs = []; | |
} |