Skip to content

Instantly share code, notes, and snippets.

@valterlorran
valterlorran / laravel-passport-create-client-programmatically.php
Created July 2, 2020 03:40
How to creates a laravel passport client programmatically
<?php
// Get the passport client repository
$clientRepository = app('Laravel\Passport\ClientRepository');
// for machine-to-machine authentication
$client = $clientRepository->create(null, 'myclient', '');
// gets the client's id and secret
$clientSecret = $client->secret;
$clientId = $client->id;
@tobiasfriden
tobiasfriden / Dockerfile
Last active August 24, 2025 12:26
Gstreamer WebRTC python demo working Dockerfile
FROM maxmcd/gstreamer:1.14-buster
WORKDIR /usr/src
RUN apt-get update && apt-get install -y python3-pip \
pkg-config \
libcairo2-dev \
gcc \
python3-dev \
libgirepository1.0-dev \