mongodump -d DATABASENAME -o EXPORTDIR
mongorestore --uri CONNECTIONSTRONG -d NEWDATABASENAME EXPORTEDDIR
FROM php:7.4.0-cli | |
WORKDIR /var/www/html | |
RUN apt-get update && apt-get install -y \ | |
git \ | |
zip \ | |
unzip \ | |
libmcrypt-dev \ | |
libonig-dev \ |
const UserTypes = Object.freeze({ | |
DEFAULT: "DEFAULT", | |
MANAGER: "MANAGER", | |
ADMIN: "ADMIN", | |
}); | |
class DefaultService { | |
run() { | |
console.log(DefaultService.name); | |
} |
import { | |
UseInterceptors, | |
NestInterceptor, | |
ExecutionContext, | |
CallHandler | |
} from "@nestjs/common"; | |
import { Observable } from "rxjs"; | |
import { map } from "rxjs"; | |
import { plainToInstance } from "class-transformer"; |
<?php | |
... | |
use Illuminate\Database\Query\Expression; | |
... | |
return new class extends Migration | |
{ | |
/** | |
* Run the migrations. |
<?php | |
... | |
use Illuminate\Database\Query\Expression; | |
... | |
return new class extends Migration | |
{ | |
/** | |
* Run the migrations. |
web: vendor/bin/heroku-php-apache2 public/ |
#channel ------------------- | |
<?php | |
namespace App\Channels; | |
use Illuminate\Notifications\Notification; | |
class SmsChannel | |
{ | |
public function send($notifiable, Notification $notification) |
- List php versions | |
brew list | grep php | |
- Installing wanted php version | |
brew install [email protected] | |
- Linking wanted php version | |
brew unlink php | |
brew link [email protected] --force |