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
<select id="subject_id" name="subject_id" placeholder="Selecione um assunto..." > | |
<option value="">Selecione um assunto...</option> | |
@foreach ($subjects as $subject) | |
<option value="{{$subject->id}} "> | |
{{$subject->description}} | |
</option> | |
@endforeach | |
</select> |
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\Controller; | |
use App\Controller\AppController; | |
use Cake\Network\Email\Email; | |
/** | |
* Users Controller | |
* | |
* @property \App\Model\Table\UsersTable $Users |
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 safed\Traits; | |
Trait DataTablesTrait{ | |
/** | |
* receices the model collection with records and return a json needed for the datatable | |
* receives de name of the Controller to generate correct URLs | |
* receives the customfields (for relations) that you want to return with the json |
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
build_settings: | |
verbose: false | |
prefer_symlink: false | |
setup: | |
composer: | |
action: "install" | |
prefer_dist: false | |
test: |
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 safed\Http\Middleware; | |
use Artesaos\Defender\Facades\Defender; | |
use Closure; | |
class Permission | |
{ | |
/** |
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
$validator | |
->add('occurrence_date', 'custom', [ | |
'rule' => function ($value, $context) { | |
Log::write('debug',$value); | |
$dia = intval(substr($value, 0,2)); | |
$mes = intval(substr($value, 3,2)); | |
$ano = intval(substr($value, 6,4)); | |
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 | |
use Illuminate\Support\Facades\Auth; | |
use Illuminate\Support\Facades\DB; | |
use App\User; | |
use Illuminate\Foundation\Testing\WithoutMiddleware; | |
use Illuminate\Foundation\Testing\DatabaseMigrations; | |
use Illuminate\Foundation\Testing\DatabaseTransactions; |
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
<div class="form-group"> | |
<label for="only-date">Data Emissão</label> | |
<div class="input-group date" id="dataEmissao"> | |
<input type="text" class="form-control" placeholder="Informe a data de emissão" name="dataEmissao"> | |
<span class="input-group-addon"> | |
<span class="fluigicon fluigicon-calendar"></span> | |
</span> | |
</div> | |
</div> |
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
@extends('template') | |
@section('content') | |
<head> | |
<script type="text/javascript"> | |
$(document).ready(function() | |
{ | |
$("#valor").maskMoney({ | |
prefix: "R$: ", | |
decimal: ",", |
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 resolveTemplate($template,$data){ | |
// search pattern | |
$pattern = '/{{([^}]+)}}/'; | |
$callback = function ($match) use($data){ | |
//var_dump($matches); | |
$string = trim($match[1]); |
OlderNewer