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
# Essa é a configuração para usar com o AMPPS com MySQL | |
export PATH="/Applications/AMPPS/php/bin:/Applications/AMPPS/mysql/bin:$PATH" | |
export PATH=~/.composer/vendor/bin:$PATH | |
# Esta aqui para voce utilizar os alias do MAMP | |
export PATH="/Applications/MAMP/bin/php/php5.5.10/bin:$PATH" | |
export PATH=~/.composer/vendor/bin:$PATH |
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 | |
class AdminController extends BaseController { | |
/** | |
* Controller constructor. Force Token protection, | |
* and force out-of-filter auth for this | |
* controller in dashboard page. | |
* | |
* @return void |
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 | |
Route::group(array('domain' => '{account}.myapp.com'), function() | |
{ | |
// conteúdo aqui | |
}); |
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
class Usuario extends Eloquent { | |
/** | |
* Atributo - Magic Method | |
* | |
* Intercepta o setter do campo indicado em | |
* set(Campo)Attribute e executa o código | |
* antes de inserir o valor no objeto. | |
* | |
* @param string $value |
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
'use strict'; | |
// Youtube avilability detector | |
// --- | |
// Cases: $scope.youtubeAvilable | |
// null - Not completed the request yet | |
// true - Youtube API and iframe loaded | |
// false - Youtube API and iframe could not be laoded | |
$scope.youtubeAvilable = null; |
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
;extension=php_mbstring.dll | |
;extension=php_exif.dll ; Must be after mbstring as it depends on it | |
;extension=php_mysqli.dll | |
;extension=php_oci8_12c.dll ; Use with Oracle Database 12c Instant Client | |
;extension=php_odbc.dll | |
;extension=php_openssl.dll | |
;extension=php_pdo_firebird.dll | |
;extension=php_pdo_mysql.dll | |
;extension=php_pdo_oci.dll | |
;extension=php_pdo_odbc.dll |
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 PhpCsFixer\Config; | |
use PhpCsFixer\Finder; | |
$rules = [ | |
'array_indentation' => true, | |
'array_syntax' => ['syntax' => 'short'], | |
'binary_operator_spaces' => [ | |
'default' => 'single_space', |