laravel new project-name --jet
cd ./project-name
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 Tests\Concerns; | |
use App\Models\User; | |
use Tymon\JWTAuth\Facades\JWTAuth; | |
trait AttachJwtToken | |
{ | |
/** |
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
//A simplified version of work begun by Tzapu and chriscook8 | |
//for saving local WiFi SSID and Passwords to the ESP8266. | |
//Uses ESP8266 internal memory instead of the problematic EEPROM. | |
//To input local SSID and Password, connect to WiFi "ESP8266", | |
//and point your browser to "192.168.4.1". | |
#include "ESP8266WiFi.h" | |
#include <ESP8266mDNS.h> | |
#include <WiFiClient.h> | |
#include <BlynkSimpleEsp8266.h> |
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 | |
Route::filter('stripe.plans.free', function() { | |
if (Auth::guest() || Auth::user()->subscribed()) { | |
return; | |
} | |
$user = Auth::user(); | |
$chosenPlan = 'free'; |