Please, use the package https://github.com/vluzrmos/lumen-cors.
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
<style> | |
*, | |
*::after, | |
*::before { | |
box-sizing: border-box; |
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\Commands; | |
use App\Commands\Command; | |
use Illuminate\Queue\SerializesModels; | |
use Illuminate\Queue\InteractsWithQueue; | |
use Illuminate\Contracts\Bus\SelfHandling; | |
use Illuminate\Contracts\Queue\ShouldBeQueued; | |
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 | |
/** | |
* @package RedRokk | |
* @version 1.0.0 | |
* | |
* Plugin Name: Empty Widget | |
* Description: Single Widget Class handles all of the widget responsibility, all that you need to do is create the html. Just use Find/Replace on the Empty_Widget keyword to rebrand this class for your needs. | |
* Author: RedRokk Interactive Media | |
* Version: 1.0.0 | |
* Author URI: http://www.redrokk.com |
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 | |
/** | |
* @property CI_DB_active_record $db | |
* @property CI_DB_forge $dbforge | |
* @property CI_Benchmark $benchmark | |
* @property CI_Calendar $calendar | |
* @property CI_Cart $cart | |
* @property CI_Config $config | |
* @property CI_Controller $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
<!-- configure a url que irá receber os dados --> | |
<input id="fileupload" type="file" name="Filedata" data-url="<?php echo site_url('admin/portfolio/save_photo/' . $gallery->id); ?>" multiple /> | |
<div id="progress" class="progress progress-striped active"> | |
<div class="bar" style="width: 0;"></div> | |
</div> | |
<div id="upload_result"></div> | |
<hr /> | |
<!-- /end multiple upload --> |
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 | |
function __format($campo='',$mascara=''){ | |
//remove qualquer formatação que ainda exista | |
$sLimpo = preg_replace("(/[' '-./ t]/)",'',$campo); | |
// pega o tamanho da string e da mascara | |
$tCampo = strlen($sLimpo); | |
$tMask = strlen($mascara); | |
if ( $tCampo > $tMask ) { | |
$tMaior = $tCampo; |
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
/** | |
* gulpfile para automatizar a compilação feita com o Duo.js. | |
* Author: Fabio Vedovelli <vedovelli@gmail.com> | |
* http://vedovelli.com.br/ | |
* Inspirado em https://github.com/mozilla/galaxy.js/blob/master/gulpfile.js | |
*/ | |
var gulp = require('gulp'); | |
/** |
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\Support\Validators\Rules; | |
use App\Support\Helpers\Dates as DateHelper; | |
class DateField | |
{ | |
/** | |
* @param string $attribute |
OlderNewer