this project for tracking crypto crance
composer install
cp .env.example .env
php artisan key:generate
Route::get('/', function () {
// This REQ GET price
$client = new \GuzzleHttp\Client();
// this API
$res = $client->get('https://api.coinstats.app/public/v1/coins?skip=0&limit=10');
$content = (string) $res->getBody();
// RET
$content = json_decode($content, true);
return view('welcome',compact('content'));
});
Route::get('/api_u', function () {
// This REQ GET price
$client = new \GuzzleHttp\Client();
// this API
$res = $client->get('https://api.coinstats.app/public/v1/coins?skip=0&limit=10');
$content = (string) $res->getBody();
// RET
$content = json_decode($content, true);
return view('api');
});
Route::get('/api', function () {
// This REQ GET price
$client = new \GuzzleHttp\Client();
// this API
$res = $client->get('https://api.coinstats.app/public/v1/coins?skip=0&limit=10');
$content = (string) $res->getBody();
// RET
$content = json_decode($content, true);
return ($content);
});
#Api - Route:
Route::get('/api', function () {
// This REQ GET price
$client = new \GuzzleHttp\Client();
// this API
$res = $client->get('https://api.coinstats.app/public/v1/coins?skip=0&limit=10');
$content = (string) $res->getBody();
// RET
$content = json_decode($content, true);
return ($content);
});
#Home - Route:
Route::get('/', function () {
// This REQ GET price
$client = new \GuzzleHttp\Client();
// this API
$res = $client->get('https://api.coinstats.app/public/v1/coins?skip=0&limit=10');
$content = (string) $res->getBody();
// RET
$content = json_decode($content, true);
return view('welcome',compact('content'));
});