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 function register() | |
{ | |
if (\App::environment('production')) { | |
$this->app->bind('path.public', function() { | |
return base_path().'/../public_html'; | |
}); | |
} | |
} |
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
$buscas_agrupadas_clique = $this->Busca->find("all", array("conditions" => $conditions, "order" => "Busca.id DESC", "group" => "Busca.clique_id" )); | |
$buscas = array(); | |
foreach($buscas_agrupadas_clique as $index => $bac): | |
$buscas[] = $this->Busca->find("all", array( | |
"conditions" => array( | |
"Busca.clique_id" => $bac["Busca"]["clique_id"] | |
) | |
)); | |
$buscas_agrupadas_clique[$index]['Busca']['companhias'] = @$buscas[$index][0]['Busca']['companhia_aerea'] . ", " . @$buscas[$index][1]['Busca']['companhia_aerea'] . ", " . @$buscas[$index][2]['Busca']['companhia_aerea']; |
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
// CONSTRUTOR | |
public function __construct(InvoiceInterface $invoice, InvoiceForm $invoiceForm, EditInvoiceForm $editInvoiceForm) | |
{ | |
parent::__construct(); | |
Breadcrumbs::addCrumb(trans('pages.allinvoice'), route('invoices.index')); | |
$this->invoice = $invoice; | |
$this->invoiceForm = $invoiceForm; |
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
{{Form::select('classroom', | |
array('Alunos' => $students, 'Turmas' => $classrooms), 'null', | |
array('id'=>'classroom', 'class'=>'form-control chosen-select', 'multiple'=>'true', | |
'data-placeholder'=>trans('words.select') .'...') | |
) | |
}} |