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
{ | |
"status": true, | |
"code": 0, | |
"message": "success", | |
"data": { | |
"keyword": "fox", | |
"eatdrink": [ | |
{ | |
"id": 10, | |
"title": "MR. FOX", |
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
{ | |
"status": true, | |
"code": 0, | |
"message": "success", | |
"data": [ | |
{ | |
"id": 3, | |
"name": "Birthday Treats & Surprises", | |
"image_url": "/storage/app/uploads/public/5a8/bd6/a96/5a8bd6a96928e604186117.png", | |
"slug": null, |
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
package main | |
import ( | |
"fmt" | |
"net/http" | |
// "io/ioutil" | |
_"reflect" | |
"encoding/json" | |
// "log" | |
// "decoder/json" |
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\Http\Controllers\Api; | |
use Illuminate\Http\Request; | |
use App\Http\Controllers\Controller; | |
use App\Http\Controllers\__GlobalHelper; | |
use App\Http\Controllers\FileController; | |
use App\Transformers\BenefitCategoryTransformer; |
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
{ | |
"status": true, | |
"code": 0, | |
"message": "success", | |
"data": { | |
"id": 1, | |
"name": "Basic", | |
"slug": "basic", | |
"description": "<p>Test Category description</p>", | |
"image": "http://ismaya-web.festiware.com/storage/app/uploads/public/5a8/bec/485/5a8bec485c19b281755766.jpg", |
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 GuzzleHttp\Client; | |
Class IP { | |
public static function getIpInfo($ip) | |
{ | |
$client = new Client(); | |
$res = $client->request('GET', 'http://ip-api.com/json/'.$ip); | |
return (string) $res->getBody(); | |
} | |
} |
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 | |
function login(Request $req, $is_admin = 0){ | |
$cred = $req->email_or_username; | |
if($is_admin == 1){ | |
$user = User::where('userlevel', 5)->where('email', $cred)->orWhere('username', $cred)->first(); | |
} | |
else { |
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
#!/bin/bash | |
# Name: Check for domain name availability | |
# linuxconfig.org | |
# Please copy, share, redistribute and improve | |
# modify by Ayat Maulana | |
if [ "$#" == "0" ]; then | |
echo "You need tu supply at least one argument!" |
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\Http\Controllers\Admin\Notification; | |
use LaravelFCM\Message\OptionsBuilder; | |
use LaravelFCM\Message\PayloadDataBuilder; | |
use LaravelFCM\Message\PayloadNotificationBuilder; | |
use FCM; | |
use \App\FcmToken; |