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
UrlSigner.temporarySign('http://secured.domain/tempSigner', 24, { user : 1 }); |
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 App\Http\Requests; | |
class UserStoreRequest extends BaseFormRequest | |
{ | |
/** | |
* Determine if the user is authorized to make this request. | |
* | |
* @return bool |
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 App\Http\Requests; | |
use Illuminate\Contracts\Validation\Validator; | |
use Illuminate\Foundation\Http\FormRequest; | |
use Illuminate\Http\Exceptions\HttpResponseException; | |
use Illuminate\Http\JsonResponse; | |
use Waavi\Sanitizer\Laravel\SanitizesInput; |
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 App\Http\Controllers\API\v1\Users; | |
use App\Http\Controllers\Controller; | |
use App\Http\Requests\UserStoreRequest; | |
class UserController extends Controller | |
{ | |
public function store(UserStoreRequest $request) |
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 App\Http\Requests; | |
use Illuminate\Foundation\Http\FormRequest; | |
class UserStoreRequest extends FormRequest | |
{ | |
/** | |
* Determine if the user is authorized to make this request. |
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 App\Http\Controllers\API\v1\Users; | |
use App\Http\Controllers\Controller; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\Validator; | |
use App\Entities\Models\User; | |
class UserController extends Controller |
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
public static function validIdentification($number) | |
{ | |
if (strlen($number) !== 9) { | |
return false; | |
} | |
$newNumber = strtoupper($number); | |
$icArray = []; | |
for ($i = 0; $i < 9; $i++) { | |
$icArray[$i] = $newNumber{$i}; |
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
server { | |
listen 80 default_server; | |
server_name dev ipv6only=on; | |
root /usr/share/nginx/html; | |
index index.php index.html index.htm; | |
location /mynodeapp { |
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
"deploy": { | |
"production": { | |
"user": "server-user", | |
"host": "server-ip", | |
"repo": "[email protected]/vuejspm2.git", | |
"ref": "origin/master", | |
"path": "/var/www/production", | |
"post-deploy": "npm install && npm run build && pm2 startOrRestart ecosystem.json --env production" | |
}, | |
"development": { |
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
{ | |
"apps" : { | |
"name" : "vuejs", | |
"script" : "./server.js", | |
"watch" : true, | |
"instances" : 4, | |
"exec_mode" : "cluster", | |
"env": { | |
"COMMON_VARIABLE": "true" | |
}, |
NewerOlder