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\Exceptions; | |
use RuntimeException; | |
class BadRequestException extends HttpException | |
{ | |
/** |
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\Helpers; | |
class Cupom | |
{ | |
public static function generate($len = 5) | |
{ | |
$chars = strtoupper(md5(uniqid(mt_rand()))); |
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; | |
listen [::]:80 default_server ipv6only=on; | |
root /var/www/landing; | |
index index.html index.htm; | |
# Make site accessible from http://localhost/ | |
server_name localhost; |
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\Units\Core\Validation; | |
use Illuminate\Validation\Validator; | |
use App\Units\Core\Validation\ValidatorException; | |
trait Validates | |
{ | |
/** |
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\Units\Core\Validation; | |
use Illuminate\Contracts\Support\Arrayable; | |
use Illuminate\Contracts\Support\Jsonable; | |
use Illuminate\Support\MessageBag; | |
/** | |
* Class ValidatorException |
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\Units; | |
use Exception; | |
use Illuminate\Auth\AuthenticationException; | |
use Illuminate\Foundation\Exceptions\Handler; | |
class ExceptionHandler extends Handler | |
{ |
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 | |
'cotacao1-tam-id1-pg' => [ | |
[ | |
'num', | |
'connections' => [], | |
'segments' => [] | |
], | |
[ | |
'f2' | |
], |
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
//promocao regras | |
Vue.component('promocao-regras', { | |
template: '<div class="form-inline">' + | |
'<div class="form-group">' + | |
'<label class="control-label">Regra </label>' + | |
'<input type="text" class="form-control" v-model="newItem" placeholder="Adicione uma regra" />'+ | |
'<button type="button" class="btn btn-success" v-on:click="addItem">Adicionar</button>'+ | |
'</div>'+ | |
'</div>' + | |
'<div class="form-group">'+ |
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
{ | |
"name": "dotenv/socialize", | |
"description": "A simple laravel library to authenticate with instagram.", | |
"type": "package", | |
"license": "MIT", | |
"keywords": ["php", "laravel", "library", "dotenv", "socialize", "social", "social-media", "tiago-perrelli"], | |
"authors": [ | |
{ | |
"name": "Tiago Perrelli", | |
"email": "[email protected]" |
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
{ | |
"name": "codecasts/laravel", | |
"description": "The Laravel Framework - CODECASTS Skeleton.", | |
"keywords": ["framework", "laravel", "codecasts"], | |
"license": "MIT", | |
"type": "project", | |
"repositories": [ | |
{ | |
"type": "path", | |
"url": "../Dotenv_libraries/Socialize/", |
OlderNewer