DDSameera

Member Since 5 Months Ago

Kiribathgoda

Experience Points
7,960
Total
Experience

2,040 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
1
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

  • Community Pillar

    Earned once your experience points ranks in the top 10 of all Laracasts users.

Level 2
7,960 XP
Mar
25
3 weeks ago
Activity icon

Started a new Conversation Undefined Callback Value Assignment - PHP

When i run this code, it gives "undefined"

JS Script

     var isValidAuthorizedUsers =  checkAuthorizedUser(userEmail, function (callback) {

                        return callback;
                    });

                    alert(isValidAuthorizedUsers)


 function checkAuthorizedUser(userEmail, callback) {

                $.ajax({
                    type: "GET",
                    url: "{{ url('meeting/web/checkauthorizeduser') }}/",
                    data: {
                        'userEmail': userEmail,
                        '_token': '{{csrf_token()}}',
                    },
                    dataType: 'HTML',
                    success: function (response) {
                        callback(response)
                    }
                });


            }

Mar
21
3 weeks ago
Activity icon

Awarded Best Reply on Invalidating Sessions On Other Devices Is Not Working

I forgot to add this class to middleware , then it has been fixed

   \Illuminate\Session\Middleware\AuthenticateSession::class,
Activity icon

Replied to Invalidating Sessions On Other Devices Is Not Working

I forgot to add this class to middleware , then it has been fixed

   \Illuminate\Session\Middleware\AuthenticateSession::class,
Activity icon

Started a new Conversation Invalidating Sessions On Other Devices Is Not Working

kernal.php

...
protected $middlewareGroups = [
       'web' => [
            \App\Http\Middleware\EncryptCookies::class,
         
            \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
            \Illuminate\Session\Middleware\StartSession::class,
            \Illuminate\View\Middleware\ShareErrorsFromSession::class,
            \App\Http\Middleware\VerifyCsrfToken::class,
            \Illuminate\Routing\Middleware\SubstituteBindings::class,
           // \Spatie\Csp\AddCspHeaders::class
        ],
...

LoginController.php

<?php

namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use App\Providers\RouteServiceProvider;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
use Illuminate\Http\Request;
use App\Rules\Googlev3Captcha;
use Illuminate\Support\Facades\Auth;

// It should be Googlev3captcha

class LoginController extends Controller
{
    use AuthenticatesUsers;

    /**
     * Create a new controller instance.
     *
     * @return void
     */
    protected $redirectTo = RouteServiceProvider::HOME;

    public function __construct()
    {
        $this->middleware('guest')->except('logout');

    }

    /**
     * Get the maximum number of attempts to allow.
     *
     * @return int
     */
    public function maxAttempts()
    {
        return config('app.max_login_attempts', 5);
    }

    /**
     * Get the number of minutes to throttle for.
     *
     * @return int
     */
    public function decayMinutes()
    {
        return config('app.lockout_time', 5);
    }

    /**
     * Get the login username to be used by the controller.
     *
     * @return string
     */
    public function username()
    {
        return 'email';
    }


    /**
     * Validate the user login request.
     *
     * @param \Illuminate\Http\Request $request
     * @return void
     *
     * @throws \Illuminate\Validation\ValidationException
     */
    protected function validateLogin(Request $request)
    {
        $request->validate([
            'email' => 'required|string',
            'password' => 'required|string',
            'grecaptcha' => [new Googlev3Captcha]
        ]);
    }

    /**
     * The user has logged out of the application.
     *
     * @param \Illuminate\Http\Request $request
     * @return mixed
     */

    protected function authenticated(Request $request, $user)
    {
        //One Device , One User ,One Session Only
        $password = $request->get('password');

        Auth::logoutOtherDevices($password);

//        $userRoles = $user->getRoleNames()->toArray();
//        $isSuperAdmin = in_array('superadmin', $userRoles);
//        $isStudent = in_array('student', $userRoles);
//        $isLecturer = in_array('lecturer', $userRoles);
//        $isAdmin = in_array('admin', $userRoles);
//
//        $redirectUrl = "";
//        if ($isSuperAdmin || $isLecturer || $isAdmin) {
//            $redirectUrl = "/dashboard";
//        }
//
//        if ($isStudent) {
//            $redirectUrl = "/student";
//        }
//
//
//        return redirect($redirectUrl);

    }

    protected function loggedOut(Request $request)
    {
        $this->guard()->logout();
        $request->session()->flush();
        $request->session()->regenerate();
        return redirect('/login')->with('success', 'You are now signed out');

    }

    protected function credentials(Request $request)
    {


        $data = [
            'email' => $request->email,
            'password' => $request->password,
            'status' => 1
        ];


        return $data;
    }

}

Activity icon

Started a new Conversation One User One Access Only

Hi genuis,

I want to develop login functionality with restricted user access.

Eg : Student can logged in to the system in 01 session only . he cannot login in to the system 02 nd session (using another tab or any mobile device )

How can i develop this feature

Mar
11
1 month ago
Activity icon

Replied to Where Do I Put My Custom Classes And Functions In Laravel

Ok @jlrdw , i created separate folder called "CustomerClasses" in app folder.then i will put my all custom classes in to that

is that okay. ? I m really worry about the best practice

Activity icon

Started a new Conversation Where Do I Put My Custom Classes And Functions In Laravel

I integrate my site with zoom API .so i created one zoom file and use that functions in several TRAITS . (Not classes)

So , i need to keep my ZoomJWT class in proper place. please suggest me , best way to do that .

I would like to keep it as a Helper file . Is that best practice or not ? please help me

Activity icon

Replied to TraitCollids

@michaloravec , I think i will define my methods using helper classes . so i converted zoomJWT as a helper class. because it use for may traits. hope i can import those helpers in to trait.

thanks ! @michaloravec for your help !

Activity icon

Replied to TraitCollids

@michaloravec , opps. its syntax mistake. I updated my code. same scenario is there

Activity icon

Started a new Conversation TraitCollids

Dear Team, Look this error screen shot https://snipboard.io/AmuWgp.jpg

There is TraitCollids in this code. please help me to resolve it.

Please note : Don't suggest remove "ZoomJWSTrait" from ZoomMeetingTrait . because function dependencies are in there .

RecordingController.php

class RecordingController extends Controller
{

  use RecordingTrait,ZoomMeetingTrait;
...
...

ZoomMeetingTrait.php

<?php

namespace App\Traits;


trait ZoomMeetingTrait
{

    use ZoomJWTTrait, SMSTaskTrait;

ZoomJWTTrait.php

<?php
namespace App\Traits;


trait ZoomJWTTrait
{

RecordingTrait.php

<?php

namespace App\Traits;


trait RecordingTrait
{

    use ZoomJWTTrait;

Activity icon

Awarded Best Reply on Google Recaptcha Error In Laravel Site

Here is the solution .

I refered this article - IPv6 Server Administration | cPanel & WHM Documentation

I disabled iPv6 in WHM

Run this code using SSH

Mar
10
1 month ago
Activity icon

Replied to Google Recaptcha Error In Laravel Site

Here is the solution .

I refered this article - IPv6 Server Administration | cPanel & WHM Documentation

I disabled iPv6 in WHM

Run this code using SSH

Activity icon

Replied to Google Recaptcha Error In Laravel Site

@neilstee


[[email protected] ~]# ping google.com
PING google.com(dfw28s27-in-x0e.1e100.net (2607:f8b0:4000:800::200e)) 56 data bytes
64 bytes from dfw28s27-in-x0e.1e100.net (2607:f8b0:4000:800::200e): icmp_seq=1 ttl=118 time=0.756 ms
64 bytes from dfw28s27-in-x0e.1e100.net (2607:f8b0:4000:800::200e): icmp_seq=2 ttl=118 time=0.682 ms
64 bytes from dfw28s27-in-x0e.1e100.net (2607:f8b0:4000:800::200e): icmp_seq=3 ttl=118 time=0.675 ms
64 bytes from dfw28s27-in-x0e.1e100.net (2607:f8b0:4000:800::200e): icmp_seq=4 ttl=118 time=0.677 ms
64 bytes from dfw28s27-in-x0e.1e100.net (2607:f8b0:4000:800::200e): icmp_seq=5 ttl=118 time=0.719 ms
64 bytes from dfw28s27-in-x0e.1e100.net (2607:f8b0:4000:800::200e): icmp_seq=6 ttl=118 time=0.656 ms


Activity icon

Replied to Google Recaptcha Error In Laravel Site

@neilstee Here is the response


[[email protected] ~]# curl https://www.google.com/recaptcha/api/siteverify
{
  "success": false,
  "error-codes": [
    "missing-input-response",
    "missing-input-secret"
  ]
}[[email protected] ~]#




Activity icon

Started a new Conversation Google Recaptcha Error In Laravel Site

ErrorException
file_get_contents(https://www.google.com/recaptcha/api/siteverify): Failed to open stream: Connection timed out
https://acc2.boobamba.com/login
Mar
08
1 month ago
Activity icon

Started a new Conversation Looking Recommendation "PHP Handler" For Laravel Web Application

I have cPanel/WHM , i need to install php handler for my laravel application. what is best one ?

suPhp or CGI or any other ??

Mar
06
1 month ago
Activity icon

Replied to Failed To Connect To Repo.packagist.org Port 443: Connection Timed Out), Package Information Was Loaded From The Local Cache And May Be Out Of Date

I run composer diagnose in my server . here is the result

[[email protected] public_html]# composer diagnose

Checking composer.json: OK
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist:
FAIL
The following exception probably indicates you are offline or have misconfigured DNS resolver(s)
[Composer\Downloader\TransportException] curl error 28 while downloading http://repo.packagist.org/packages.json: Resolving timed out after 10000 milliseconds
Checking https connectivity to packagist: OK
Checking github.com rate limit: OK
Checking disk free space: OK
Checking pubkeys:
Tags Public Key Fingerprint: 57815BA2 7E54DC31 7ECC7CC5 573090D0  87719BA6 8F3BB723 4E5D42D0 84A14642
Dev Public Key Fingerprint: 4AC45767 E5EC2265 2F0C1167 CBBB8A2B  0C708369 153E328C AD90147D AFE50952
OK
Checking composer version: OK
Composer version: 2.0.11
PHP version: 8.0.0
PHP binary path: /opt/cpanel/ea-php80/root/usr/bin/php
OpenSSL version: OpenSSL 1.1.1h  22 Sep 2020
cURL version: 7.72.0 libz 1.2.7 ssl OpenSSL/1.1.1g
zip: extension present, unzip present

Activity icon

Started a new Conversation Failed To Connect To Repo.packagist.org Port 443: Connection Timed Out), Package Information Was Loaded From The Local Cache And May Be Out Of Date

When i run this code in development server. then it shows me the message

Loading composer repositories with package information
https://repo.packagist.org could not be fully loaded (curl error 28 while downloading https://repo.packagist.org/packages.json: Failed to connect to repo.packagist.org port 443: Connection timed out), package information was loaded from the local cache and may be out of date

Activity icon

Replied to Failed To Connect To Repo.packagist.org Port 443: Connection Timed Out

Yes , @neilstee ,you are correct. that's firewall issue . thanks

Now i need to find proper solution for this . so do i need to allow ip or port . please advise me

Activity icon

Started a new Conversation Failed To Connect To Repo.packagist.org Port 443: Connection Timed Out

When i run composer update it shows this message. I m using dedicated cPanel/whm license for this

https://repo.packagist.org could not be fully loaded (curl error 28 while downloading https://repo.packagist.org/packages.json: Failed to connect to repo.packagist.org port 443: Connection timed out), package information was loaded from the local cache and may be out of date

Activity icon

Replied to Composer\Downloader\TransportException

@siangboon , i enabled php extension curl module , then it works !

Activity icon

Replied to Root Composer.json Requires Xxxx Found Xxxx In Lock File But Not In Remote Repositories, Make Sure You Avoid Updating This Package To Keep The One From Lock File

Oh @snapey thanks for your advise. actually i thought always we should have to run composer update in production site. its my bad. anyway thanks for showing this error to me.

According to your explanation , I should have to push composer.lock code to production . am i right ? if i m wrong,please advise me

Activity icon

Awarded Best Reply on Root Composer.json Requires Xxxx Found Xxxx In Lock File But Not In Remote Repositories, Make Sure You Avoid Updating This Package To Keep The One From Lock File

Here is the solution

Step 01 Go to your laravel project folder

Step 02 Run this code

composer config -g repo.packagist composer https://packagist.org

More info: https://www.programmersought.com/article/81437406841/

Activity icon

Replied to Root Composer.json Requires Xxxx Found Xxxx In Lock File But Not In Remote Repositories, Make Sure You Avoid Updating This Package To Keep The One From Lock File

@snapey ,actually I want to keep up to date library in the production site. how can i do that ? without using composer update

also when i try to create new laravel project command,i got following result

composer create-project laravel/laravel testapp



  [InvalidArgumentException]
  Could not find package laravel/laravel with stability stable.


create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--ask] [--] [<package>] [<directory>] [<version>]




Mar
05
1 month ago
Activity icon

Replied to Root Composer.json Requires Xxxx Found Xxxx In Lock File But Not In Remote Repositories, Make Sure You Avoid Updating This Package To Keep The One From Lock File

Actually @jlrdw , my project is laravel 8 , i want to run composer update .but its failed. i don't want to upgrade or downgrade laravel version .

I want to update my library files only. please help me

Activity icon

Started a new Conversation Root Composer.json Requires Xxxx Found Xxxx In Lock File But Not In Remote Repositories, Make Sure You Avoid Updating This Package To Keep The One From Lock File

I run composer update in production server . then i got these message

Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires fideloper/proxy ^4.2, found fideloper/proxy[4.4.1] in lock file but not in remote repositories, make sure you avoid updating this package to keep the one from lock file.
  Problem 2
    - Root composer.json requires firebase/php-jwt ^5.2, found firebase/php-jwt[v5.2.1] in lock file but not in remote repositories, make sure you avoid updating this package to keep the one from lock file.
  Problem 3
    - Root composer.json requires fruitcake/laravel-cors ^2.0, found fruitcake/laravel-cors[v2.0.3] in lock file but not in remote repositories, make sure you avoid updating this package to keep the one from lock file.
  Problem 4
    - Root composer.json requires guzzlehttp/guzzle ^7.2, found guzzlehttp/guzzle[7.2.0] in lock file but not in remote repositories, make sure you avoid updating this package to keep the one from lock file.
  Problem 5
    - Root composer.json requires laravel/framework ^8.0, found laravel/framework[v8.28.1] in lock file but not in remote repositories, make sure you avoid updating this package to keep the one from lock file.
  Problem 6
    - Root composer.json requires laravel/sanctum ^2.6, found laravel/sanctum[v2.9.0] in lock file but not in remote repositories, make sure you avoid updating this package to keep the one from lock file.
  Problem 7
    - Root composer.json requires laravel/tinker ^2.0, found laravel/tinker[v2.6.0] in lock file but not in remote repositories, make sure you avoid updating this package to keep the one from lock file.
  Problem 8
    - Root composer.json requires laravel/ui ^3.1, found laravel/ui[v3.2.0] in lock file but not in remote repositories, make sure you avoid updating this package to keep the one from lock file.
  Problem 9
    - Root composer.json requires spatie/laravel-activitylog ^3.16, found spatie/laravel-activitylog[3.16.1] in lock file but not in remote repositories, make sure you avoid updating this package to keep the one from lock file.
  Problem 10
    - Root composer.json requires spatie/laravel-backup ^6.14, found spatie/laravel-backup[6.14.4] in lock file but not in remote repositories, make sure you avoid updating this package to keep the one from lock file.
  Problem 11
    - Root composer.json requires spatie/laravel-csp ^2.6, found spatie/laravel-csp[2.6.4] in lock file but not in remote repositories, make sure you avoid updating this package to keep the one from lock file.
  Problem 12
    - Root composer.json requires spatie/laravel-permission ^3.17, found spatie/laravel-permission[3.18.0] in lock file but not in remote repositories, make sure you avoid updating this package to keep the one from lock file.
  Problem 13
    - Root composer.json requires yajra/laravel-datatables-oracle ^9.13, found yajra/laravel-datatables-oracle[v9.15.2] in lock file but not in remote repositories, make sure you avoid updating this package to keep the one from lock file.
  Problem 14
    - Root composer.json requires barryvdh/laravel-ide-helper ^2.9, found barryvdh/laravel-ide-helper[v2.9.0] in lock file but not in remote repositories, make sure you avoid updating this package to keep the one from lock file.
  Problem 15
    - Root composer.json requires facade/ignition ^2.3.6, found facade/ignition[2.5.13] in lock file but not in remote repositories, make sure you avoid updating this package to keep the one from lock file.
  Problem 16
    - Root composer.json requires fakerphp/faker ^1.9.1, found fakerphp/faker[v1.13.0] in lock file but not in remote repositories, make sure you avoid updating this package to keep the one from lock file.
  Problem 17
    - Root composer.json requires mockery/mockery ^1.3.1, found mockery/mockery[1.4.2] in lock file but not in remote repositories, make sure you avoid updating this package to keep the one from lock file.
  Problem 18
    - Root composer.json requires nunomaduro/collision ^5.0, found nunomaduro/collision[v5.3.0] in lock file but not in remote repositories, make sure you avoid updating this package to keep the one from lock file.
  Problem 19
    - Root composer.json requires phpunit/phpunit ^9.3, found phpunit/phpunit[9.5.2] in lock file but not in remote repositories, make sure you avoid updating this package to keep the one from lock file.

comoposer.json

{
    "name": "laravel/laravel",
    "type": "project",
    "description": "The Laravel Framework.",
    "keywords": [
        "framework",
        "laravel"
    ],
    "license": "MIT",
    "require": {
        "php": "^7.4.1|^8.0",
        "fideloper/proxy": "^4.2",
        "firebase/php-jwt": "^5.2",
        "fruitcake/laravel-cors": "^2.0",
        "guzzlehttp/guzzle": "^7.2",
        "laravel/framework": "^8.0",
        "laravel/sanctum": "^2.6",
        "laravel/tinker": "^2.0",
        "laravel/ui": "^3.1",
        "spatie/laravel-activitylog": "^3.16",
        "spatie/laravel-backup": "^6.14",
        "spatie/laravel-csp": "^2.6",
        "spatie/laravel-permission": "^3.17",
        "yajra/laravel-datatables-oracle": "^9.13"
    },
    "require-dev": {
        "barryvdh/laravel-ide-helper": "^2.9",
        "facade/ignition": "^2.3.6",
        "fakerphp/faker": "^1.9.1",
        "mockery/mockery": "^1.3.1",
        "nunomaduro/collision": "^5.0",
        "phpunit/phpunit": "^9.3"
    },
    "config": {
        "optimize-autoloader": true,
        "preferred-install": "dist",
        "sort-packages": true
    },
    "extra": {
        "laravel": {
            "dont-discover": []
        }
    },
    "autoload": {
        "psr-4": {
            "App\": "app/",
            "Database\Factories\": "database/factories/",
            "Database\Seeders\": "database/seeders/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\": "tests/"
        }
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "scripts": {
        "post-autoload-dump": [
            "Illuminate\Foundation\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover --ansi"
        ],
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate --ansi"
        ]
    }
}

composer diagnose

[[email protected] public_html]# composer diagnose
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? yes
Checking composer.json: OK
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com rate limit: OK
Checking disk free space: OK
Checking pubkeys:
Tags Public Key Fingerprint: 57815BA2 7E54DC31 7ECC7CC5 573090D0  87719BA6 8F3BB723 4E5D42D0 84A14642
Dev Public Key Fingerprint: 4AC45767 E5EC2265 2F0C1167 CBBB8A2B  0C708369 153E328C AD90147D AFE50952
OK
Checking composer version: OK
Composer version: 2.0.11
PHP version: 8.0.2
PHP binary path: /opt/cpanel/ea-php80/root/usr/bin/php
OpenSSL version: OpenSSL 1.1.1j  16 Feb 2021
cURL version: 7.75.0 libz 1.2.7 ssl OpenSSL/1.1.1j
zip: extension present, unzip present
[[email protected] public_html]#


Mar
03
1 month ago
Activity icon

Started a new Conversation Composer\Downloader\TransportException

When i run composer codes , it shows me this error. how can i fix this ?


Already up to date.
HEAD is now at 95f1198 Custom Seeder Commands Run 3
Loading composer repositories with package information
https://repo.packagist.org could not be fully loaded (curl error 28 while downloading https://repo.packagist.org/packages.json: Failed to connect to repo.packagist.org port 443: Connection timed out), package information was loaded from the local cache and may be out of date


  [Composer\Downloader\TransportException]
  curl error 28 while downloading https://repo.packagist.org/p2/fideloper/proxy.json: Failed to connect to repo.packagist.org port 443: Connection timed out


Mar
01
1 month ago
Activity icon

Awarded Best Reply on How To Double Encode The UUID Before Making An API Request.

Found the solution


        $uuId = $recordingSettings['uu_id'];

        //Double URL Encode
        $uuId = urlencode($uuId);
        $uuId = urlencode($uuId);

        
        $updateSettingsUrl ="/meetings/" . $uuId . "/recordings/settings";
        $updateMeetingSettingResponse = $this->zoomPatch($updateSettingsUrl, $patchData);

         $updateMeetingSettingsStatus = $updateMeetingSettingResponse->status();
Activity icon

Replied to How To Double Encode The UUID Before Making An API Request.

Found the solution


        $uuId = $recordingSettings['uu_id'];

        //Double URL Encode
        $uuId = urlencode($uuId);
        $uuId = urlencode($uuId);

        
        $updateSettingsUrl ="/meetings/" . $uuId . "/recordings/settings";
        $updateMeetingSettingResponse = $this->zoomPatch($updateSettingsUrl, $patchData);

         $updateMeetingSettingsStatus = $updateMeetingSettingResponse->status();
Activity icon

Started a new Conversation How To Double Encode The UUID Before Making An API Request.

I want to pass UUID parameter to ZOOM API So I refered this API page https://marketplace.zoom.us/docs/api-reference/zoom-api/cloud-recording/recordingsettingsupdate

Here is the unclear part.

If a UUID starts with “/” or contains “//” (example: “/ajXp112QmuoKj4854875==”), you must double encode the UUID before making an API request.

So I modified my code.

 $uuId = $recordingSettings['uu_id'];
        $uuId =  htmlentities( $uuId, ENT_QUOTES, "UTF-8", true);
        $updateSettingsUrl = "/meetings/".$uuId."/recordings/settings";
       $updateMeetingSettingResponse = $this->zoomPatch($updateSettingsUrl, $patchData);

It doesnt work . I have no idea about Double Encoding. please help me to resolve this .

Activity icon

Replied to How To Prevent Stretch Bootstrap4 Flex

@sergiu17 when i delete first column, then i can see huge space in there. :( i dont want to see it

https://snipboard.io/emQsfp.jpg

Activity icon

Replied to How To Prevent Stretch Bootstrap4 Flex

@sergiu17 , ALSO I added style="width: 33.33%"> same result is there

Activity icon

Replied to How To Prevent Stretch Bootstrap4 Flex

I added "w-25" @sergiu17

<div class="flex-lg-column w-25 align-items-center pr-2" >

Desktop one is correct. but mobile one is not right. :(

Desktop : https://snipboard.io/v9MWAg.jpg Mobile : https://snipboard.io/wgDcUQ.jpg

Activity icon

Started a new Conversation How To Prevent Stretch Bootstrap4 Flex

Please look this screenshot. when i delete last 'flex' , then second flex will stretch. how should I overcome this problem ?

https://snipboard.io/9mIArS.jpg

Feb
28
1 month ago
Activity icon

Replied to Loop Row In Bootstrap Every 3 Columns

@chaudigv Good question. It 's TIP only

Feb
26
1 month ago
Activity icon

Started a new Conversation UTC Time Convert To Local One In Laravel 8

How can i convert following time into Sri Lanka time.

"recording_start" => "2021-02-26T03:49:20Z"
  "recording_end" => "2021-02-26T03:49:26Z"

I tried. this one not works

     $recordingStart = \Carbon\Carbon::parse($recordingStart)->toDateTimeString();
  $recordingStart = \Carbon\Carbon::createFromFormat('Y-m-d H:i:s', $recordingStart, 'Asia/Colombo');
dd($recordingStart);