Skip to content

Instantly share code, notes, and snippets.

View csinghdev's full-sized avatar
👨‍💻

Chandresh csinghdev

👨‍💻
View GitHub Profile
@csinghdev
csinghdev / SendDocLinkToUsers.php
Created June 14, 2020 05:18
Command for sending Doc links to users. File Path: app/Console/Commands/SendDocLinkToUsers.php
<?php
namespace App\Console\Commands;
use App\Notifications\SendDocLinkNotification;
use App\User;
use Illuminate\Console\Command;
class SendDocLinkToUsers extends Command
{
@csinghdev
csinghdev / .travis.yml
Created July 14, 2020 02:49
Travis-CI configuration file for testing Laravel Application containing REST APIs
language: php
php:
- 7.3
- 7.4
os: linux
before_script:
- composer install
https://jennamolby.com/how-to-use-cookies-to-capture-url-parameters/
// Parse the URL
function getParameterByName(name) {
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)");
var results = regex.exec(location.search);
return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
}