mkdir babel-webpack && cd babel-webpack
npm init -y
npm install --save-dev @babel/core babel-loader @babel/preset-env
npm install --save-dev webpack webpack-cli webpack-dev-server
import {Person} from './Person'; | |
class Student extends Person { | |
constructor(name){ | |
super(name) | |
this.job = "Student" | |
} | |
work(){ | |
console.log(`${this.name} Studying.`) | |
} |
class Person { | |
constructor(name){ | |
this.name = name | |
} | |
work(){ | |
console.log(`${this.name} has no job to`) | |
} | |
} | |
export { Person } |
src ve dist klasörlerimizi oluşturalım | |
``` | |
mkdir src dist | |
``` |
curl -k -s -w "Connect time: %{time_connect} Time to first byte: %{time_starttransfer} Total time: %{time_total} \n" -o /dev/null https://emlaksitem.com/ |
<?php | |
namespace App\Models; | |
use Jenssegers\Mongodb\Eloquent\Model; | |
class MongoNotification extends Model | |
{ | |
protected $connection = "mongodb"; | |
protected $table = "notifications"; |
<?php | |
namespace App\Notifications; | |
use Illuminate\Bus\Queueable; | |
use Illuminate\Notifications\Messages\MailMessage; | |
use Illuminate\Notifications\Notification; | |
class SubscriptionStarted extends Notification | |
{ |
<?php | |
$user = \App\User::first(); | |
$user->notify(new \App\Notifications\SubscriptionStarted()); |
Example /etc/nginx/nginx.conf
using FastCGI (e.g. to PHP-FPM) with FastCGI cache enabled. This will capture returned data and persist it to a disk based cache store for a configurable amount of time, great for robust full page caching.
Will need to create a directory to hold cache files, for the example given here that would be:
$ sudo mkdir -p /var/cache/nginxfastcgi
$ chown www-data: /var/cache/nginxfastcgi