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
/* | |
* Original script by: Shafiul Azam | |
* Version 4.0 | |
* Modified by: Luigi Balzano | |
* Description: | |
* Inserts Countries and/or States as Dropdown List | |
* How to Use: | |
In Head section: |
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
@Override | |
protected void onResume() { //will be called in any cases | |
super.onResume(); | |
// getIntent() should always return the most recent intent hence a viable candidate for | |
// displaying messages from notifications | |
//Make provisions to receive the intent and parse the expected response in a desired format | |
if(getIntent().hasExtra(PushIt.TYPE)){ | |
String notification_type= getIntent().getStringExtra(PushIt.TYPE);//detect message type |
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
public class App extends Application { | |
@Override | |
public void onCreate() { | |
super.onCreate(); | |
//call the asynctask class here to initialize the library; | |
new PushItInitialize().execute(); | |
} |
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
@Override | |
protected void onNewIntent(Intent intent) { | |
//needed to receive a new intent in case the activity is already running when message arrives | |
setIntent(intent); | |
super.onNewIntent(intent); | |
} |
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
$api = "http://push.cellcore.com.ng/api/v1/push"; | |
$header = array( | |
'Authorization' => "API_KEY" | |
); | |
$params = array( | |
'type' => "txt", | |
'payload' => "Thanks for choosing Push It....", | |
'group_msg'=>"1", |
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
{ | |
"result": 200, | |
"message": "Messages were sent successfully", | |
"transaction_code":"892893892893" | |
} |
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
@extends('layouts.app') | |
@section('content') | |
<div class="container auth"> | |
<div class="row"> | |
<div class="col-md-12"> | |
<div class="auth-heading"> | |
<h4 class="text-center" style="color:rgba(0, 0, 0, 1)"><strong>ALL CASES</strong></h4> | |
<h5 class="text-center" style="color:rgba(0, 0, 0, 1)">List of all cases and Timeline for each</h5> |
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
public static function upload(UploadedFile $file) | |
{ | |
$fileMedia = new static; | |
$file->name = time().'_'. strtolower( $file->getClientOriginalName() ); | |
Image::make($file)->resize(1360, 760)->save(config('admin.fileUploadDirectory') . $file->name); | |
// $file->move(config('admin.fileUploadDirectory'), $file->name); | |
return $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
<?php | |
namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
class EnsureQueueListenerIsRunning extends Command | |
{ | |
/** | |
* The name and signature of the console command. |
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
/** | |
* Redirect the User to Paystack / Paypal Payment Page | |
* @param Request $request | |
* @return URL | |
*/ | |
public function redirectToGateway(Request $request) | |
{ | |
//Check if user is logged in | |
if(Auth::check()){ | |
//Check if the subscription for Professional Plan |
OlderNewer