/(]*)(>)/
This file contains hidden or 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
| public function createStripeSession(Request $request) | |
| { | |
| $trip = Trip::find( session('trip_id') ); | |
| \Stripe\Stripe::setApiKey( <dat secret key boi> ); | |
| $cartBooking = session('cart_booking'); | |
| if ($cartBooking->payment_type == 'deposit') { | |
| $total = $cartBooking->getDepositCost(); | |
| } else { | |
| $total = $cartBooking->getFullCost(); |
This file contains hidden or 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 Tests\Browser; | |
| use App\Charter; | |
| use App\Events\Bookings\NewBookingRequest; | |
| use App\Trip; | |
| use Illuminate\Foundation\Testing\DatabaseMigrations; | |
| use Laravel\Dusk\Browser; | |
| use Tests\DuskTestCase; |
This file contains hidden or 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\Traits; | |
| use Illuminate\Support\Facades\Schema; | |
| use Error; | |
| use Auth; | |
| trait HasDrafts | |
| { | |
| /** | |
| * Get the draft data for a model. | |
| * |
This file contains hidden or 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 PhpCsFixer\Config; | |
| use PhpCsFixer\Finder; | |
| $rules = [ | |
| 'array_indentation' => true, | |
| 'array_syntax' => ['syntax' => 'short'], | |
| 'binary_operator_spaces' => [ |
This file contains hidden or 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
| FROM php:7.3-apache | |
| RUN apt-get update -yqq && \ | |
| apt-get install -y apt-utils zip unzip && \ | |
| apt-get install -y nano && \ | |
| apt-get install -y libzip-dev libpq-dev && \ | |
| apt-get install -y libxml2-dev && \ | |
| apt-get install -y libmcrypt-dev && \ | |
| a2enmod rewrite && \ | |
| docker-php-ext-install pdo && \ | |
| docker-php-ext-install pdo_mysql && \ |
This file contains hidden or 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
| import config from '../config' | |
| import sharp from 'sharp' | |
| import S3 from 'aws-sdk/clients/s3' | |
| class ImageCop { | |
| constructor(key) { | |
| this.key = key | |
| this.config = config | |
| this.sharp | |
| this.s3 = this.initializeS3() |
This file contains hidden or 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
| import firebase from 'firebase' | |
| import moment from 'moment' | |
| const db = firebase.firestore() | |
| const listingIndex = 'listings' | |
| import Factory from './factory' | |
| export default { | |
| factory: new Factory({ | |
| index: 'listings' | |
| }), |
This file contains hidden or 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\Providers; | |
| use Illuminate\Support\ServiceProvider; | |
| use GuzzleHttp\Exception\GuzzleException; | |
| use GuzzleHttp\Client; | |
| use App\EndPoint; | |
| use App\Lead; | |
| use App\ResponseRecord; |