this project for tracking crypto crance

Install composer

composer install

copy .env

cp .env.example .env

generate

php artisan key:generate

Routes :

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'));
});