Valet switch PHP version with these commands
Install PHP 5.6 and switch Valet to PHP 5.6
valet stop
brew unlink php71
brew install php56
brew install php56-mcrypt
brew link php56
valet start
| <?php | |
| $results = $this->resource->get(array('id','column1','column2','column3', 'etc')); | |
| $fileName = 'my-export-'.Carbon::now()->timestamp; | |
| $export = $this->excel->create($fileName, function($excel) use ($results) { | |
| $excel->setTitle('Our new awesome title') | |
| ->setCreator('Maatwebsite') | |
| ->setCompany('Maatwebsite') |
| <?php | |
| class AreaCalculator { | |
| public function calculate($shapes) | |
| { | |
| //using is_a | |
| if(is_a($shape, 'Square') // | |
| { |
Valet switch PHP version with these commands
Install PHP 5.6 and switch Valet to PHP 5.6
valet stop
brew unlink php71
brew install php56
brew install php56-mcrypt
brew link php56
valet start
| /** theme "easy on the eyes" for Adminer by [email protected] */ | |
| /** customized by RobertoPC in https://gist.github.com/robertopc/bf2edac131bbaf789343fa9ce3ceb2e4 **/ | |
| @import url(//fonts.googleapis.com/css?family=Roboto+Mono:400,900); | |
| /* for font awesome */ | |
| *:not(.fa) { | |
| font-family: 'Roboto Mono', sans-serif; | |
| } |