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 ZipFiles extends ZipArchive | |
{ | |
public function Compact($cwd) { | |
$open = opendir($cwd); | |
while($folder = readdir($open)) | |
{ | |
if ($folder != '.' && $folder != '..') | |
{ | |
if (is_dir($cwd.'/'.$folder)) | |
{ |
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
//Model | |
<?php | |
namespace App; | |
use Illuminate\Database\Eloquent\Model; | |
use Codecasts\Presenter\Presentable; | |
class Tblpreco extends Model | |
{ | |
use Presentable; |
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
##Model## | |
class Role_User extends Model | |
{ | |
protected $table = 'role_user'; | |
protected $fillable = ['id','user_id','role_id']; | |
public function users() | |
{ | |
return $this->belongsTo('App\User'); | |
} |
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\Validation; | |
Class CheckBoolean | |
{ | |
public static function validateBoolean(array $booleans) : boolean | |
{ | |
if(in_array(true, $booleans)){ | |
return (boolean) true; | |
} | |
return (boolean) false; |
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
JAVA_HOME=/usr/lib/jvm/java-8-oracle/bin | |
export JAVA_HOME | |
PATH=$PATH:$JAVA_HOME | |
export PATH | |
export ANDROID_HOME=/home/alisson/Android/Sdk | |
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools | |
export JAVA_HOME=/usr/lib/jvm/java-8-oracle | |
export PATH="$PATH:/opt/yarn-[version]/bin" |