This file contains hidden or 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
| var formFooter = document.getElementById("form-footer"); | |
| formFooter.addEventListener("submit", function(evt) { | |
| evt.preventDefault(); | |
| formFooter.classList.add("form-submit"); | |
| var name = document.getElementById("name"); | |
| var email = document.getElementById("email"); | |
| var telephone = document.getElementById("telephone"); | |
| var cellphone = document.getElementById("cellphone"); |
This file contains hidden or 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 Smart\Traits\Models; | |
| use File; | |
| use Illuminate\Http\UploadedFile; | |
| trait CoverTrait{ | |
| /** | |
| * Upload image when image is set | |
| * |
This file contains hidden or 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 Sherlock\Traits; | |
| trait DateTrait { | |
| protected $months = [ | |
| 'Jan' => 'janeiro', | |
| 'Feb' => 'fevereiro', | |
| 'Mar' => 'março', | |
| 'Apr' => 'abril', | |
| 'May' => 'maio', |
This file contains hidden or 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\Auth; | |
| use Illuminate\Http\Request; | |
| use App\Http\Controllers\Controller; | |
| use App\Models\User; | |
| use Illuminate\Support\Facades\Validator; | |
| use Illuminate\Support\Facades\Auth; | |
| use SammyK\LaravelFacebookSdk\LaravelFacebookSdk; |
This file contains hidden or 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 ArtisanPlus\Repositories; | |
| use Illuminate\Support\Facades\Schema; | |
| use Carbon\Carbon; | |
| class TableRepository { | |
| /** | |
| * Implements orderBy in query | |
| * |
This file contains hidden or 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
| const quiz = new Vue({ | |
| el: "#quiz", | |
| data() { | |
| return { | |
| product: {}, | |
| show: {}, | |
| choices: { | |
| questions: [], | |
| options: [] | |
| }, |
This file contains hidden or 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 | |
| Validator::extend('cpf', function($attribute, $value, $params, $validator){ | |
| $cpf = $value; | |
| $cpf = preg_replace('/[^0-9]/', '', $cpf); | |
| $cpf = str_pad($cpf, 11, '0', STR_PAD_LEFT); | |
| if (strlen($cpf) != 11) | |
| return false; | |
| $cpfsCheck = [ | |
| '00000000000', | |
| '11111111111', |
This file contains hidden or 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
| /** | |
| * Converts a string to camel case. | |
| * Example: fucking_string => fuckingString | |
| * | |
| * @param {String} str the string to convert | |
| * @return {String} | |
| */ | |
| Vue.filter('camelCase', function (str) { | |
| return str.toLowerCase() | |
| .replace( /[-_]+/g, ' ') |
This file contains hidden or 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 Smart\Traits\Models; | |
| trait RoleTrait { | |
| /** | |
| * Roles existed in application | |
| * | |
| * @var | |
| */ | |
| protected $configRoles; |
This file contains hidden or 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 | |
| class FreightPostOfficeService { | |
| /** | |
| * Source zip code to calculate the freight | |
| * | |
| * @var | |
| */ | |
| public $sourceZipCode; | |
| /** |