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; | |
use App\Http\Controllers\Controller; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Str; | |
use Illuminate\Support\Facades\Cache; | |
use SimpleSoftwareIO\QrCode\Facades\QrCode; | |
use Memcache; | |
use Illuminate\Support\Facades\Auth; |
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 | |
use App\Http\Controllers\Controller; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\Auth; | |
class QRLoginTwoController extends Controller | |
{ | |
public function qrtesting() | |
{ |
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; | |
use Illuminate\Http\Request; | |
class DropzoneController extends Controller | |
{ | |
function index() | |
{ |
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 | |
//app/Http/Controllers/Admin/SubscriptionController.php | |
namespace App\Http\Controllers\Admin; | |
use Illuminate\Http\Request; | |
use App\Http\Controllers\Controller; | |
/** |
Stripe's platform includes webhooks that will notify you when actions take place on your account. You can be notified when things changes in your Stripe dashboard.
In your Stripe Dashboard, go to the Developer section, then click on the Webhooks tab.
You should add a receiving endpoint by clicking Add Endpoint*. Fill in the public URL provided by ngrok, or any other public URL that can reach the webhook monitor.
** make sure to add http:yourwebsite.com/stripe/webhook **
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
//react frontend | |
import { GoogleLogin } from 'react-google-login'; | |
import FacebookLogin from 'react-facebook-login'; | |
class LoginPage extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
userId: '', | |
password: '', |
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
var REGION_CAR_DELIVERY = turf.polygon([[ | |
[ -118.2472203, 34.0805791 ], | |
[ -118.2458824, 34.0831055 ], | |
[ -118.2441979, 34.0848758 ], | |
[ -118.241408, 34.0872652 ], | |
[ -118.2399476, 34.0900534 ], | |
[ -118.2407174, 34.0913652 ], | |
[ -118.2430294, 34.0937757 ], | |
[ -118.2455076, 34.0964647 ], | |
[ -118.2473742, 34.098147 ], |
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
// simply return a valid GeoJSON and it will be rendered on the map | |
var REGION_CAR_DELIVERY = turf.polygon([[ | |
[ -118.2472203, 34.0805791 ], | |
[ -118.2458824, 34.0831055 ], | |
[ -118.2441979, 34.0848758 ], | |
[ -118.241408, 34.0872652 ], | |
[ -118.2399476, 34.0900534 ], | |
[ -118.2407174, 34.0913652 ], | |
[ -118.2430294, 34.0937757 ], | |
[ -118.2455076, 34.0964647 ], |
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
const data = [ | |
{ | |
"id": 5363606323483, | |
"created_at": "2023-04-19T06:10:09-04:00", | |
"currency": "USD", | |
"name": "#1049", | |
"note_attributes": [ | |
{ | |
"name": "user_email", |