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 | |
use Illuminate\Database\Seeder; | |
class Countries2TableSeeder extends Seeder | |
{ | |
/** | |
* Run the database seeds. | |
* | |
* @return void |
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 | |
use Illuminate\Support\Facades\Schema; | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Database\Migrations\Migration; | |
class CreateCountriesTable extends Migration | |
{ | |
/** | |
* Run the migrations. |
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
$crl = curl_init(); | |
$post_data = array ( | |
"front_image" => new \CURLFile('/home/vagrant/code/tokenregistration/public/favicon.png', 'image/png','testpic1'), | |
"back_image" => new \CURLFile('/home/vagrant/code/tokenregistration/public/favicon.png', 'image/png', 'testpic2'), | |
"type" => "PASSPORT", | |
"document_name" => 'normal curl', | |
"document_description" => '11', | |
"document_number" => '123', | |
"issuing_country" => 'GBR', | |
"issue_date" => '2010-01-01', |
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 | |
public function uploadDoc() | |
{ | |
$image = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAQDAwQDAwQEAwQFBAQFBgoHBgYGBg0JCggKDw0QEA8NDw4RExgUERIXEg4PFRwVFxkZGxsbEBQdHx0aHxgaGxr/2wBDAQQFBQYFBgwHBwwaEQ8RGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhr/wgARCAH7AxsDAREAAhEBAxEB/8QAHQAAAAcBAQEAAAAAAAAAAAAAAQIDBAUGBwAICf/EABsBAAMBAQEBAQAAAAAAAAAAAAABAgMEBQYH/9oADAMBAAIQAxAAAAD38HA1m20ahNg5EAAQ4fOQAExGLXI4OFwAANigR8HCAOAFSFIXJmCTzERGtFpjCUkWGAAAAompL4QiBoUAPpo1oQIgRAHK+ci0LOGBPK+aBPlJKXUJJiAAAcAsAARwcHByoHIDBVHoZyGbIS8CYVcAjAOEIwEICN5pzr1PBwAEHz9zLHr4OEIABg4CjEfAJJQ4OGUswhFwykmDhAAhwCUk4j7kzQsNWabSjluIAOx2ggLBwcB5UhnfNha5AyAUKnkAHUczh8l1HSdANvm+c9ALZRt2dUNaOEYYCABAssGwaGWUoSiIJNFTiUQKpyDImzqrEq4OL4ls06S4YBwGJfb8cttyqNRme8NyenzYgAjFARwgK4kwAAAIcAgAcHD4YJCwChABCTwyhH65HAWDeLNy8BMEWOkEAuieZsQ4Dy5DK+SCqNJwisNJzOAqntzoBzZaYtda5AzfKBVAMLhCgrlpQUBDg4BAocBR8AoACToCtMDpxsaMBgFvmTj4EwUERDOh8hkD4vhgD/bgnejir/P6DLm7BthK4ZqRJYuOTCmaY51yOGCQALXDKIzgTQHIoAYAKUf0YPsNWmi6p6kWskXJgcAkDpJCkUThWcDCC |
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 | |
public function createCustomerAccount() | |
{ | |
$base64 = base64_encode("username:password"); //I have replaced my username/password which i got from document | |
$client = new \GuzzleHttp\Client(); | |
$response = $client->request('POST', "https://staging.identitymind.com/im/account/consumer", [ | |
'headers' => ["Content-Type" => "application/json",'Authorization' => "Basic $base64"], | |
\GuzzleHttp\RequestOptions::JSON => [ | |
'man' => 'JohnDoe',//Account name for the user//Maximum length is 60 characters |
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
# .bashrc | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/opt/simba/spark/lib/64 | |
export ODBCINI=/etc/odbc.ini | |
export ODBCINSTINI=/usr/local/odbc | |
export SIMBASPARKINI=/etc/simba.sparkodbc.ini |