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::extend('at_least_one_filled', function($attribute, $value, $parameters, $validator) { | |
if (is_array($value)) { | |
$filteredArray = array_filter($value); | |
return count($filteredArray) > 0; | |
} else { | |
return !empty($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
# So, Microsoft made their Office suite dark-mode compatible, sort of. | |
# Thing is, it looks absolutely terrible and there is no simple way to turn it off. | |
# Oh wait, there is! Paste these commands in your terminal to excempt the app from Dark Mode in Mac OS. | |
defaults write com.microsoft.Excel NSRequiresAquaSystemAppearance -bool yes | |
defaults write com.microsoft.Word NSRequiresAquaSystemAppearance -bool yes | |
defaults write com.microsoft.Outlook NSRequiresAquaSystemAppearance -bool yes | |
defaults write com.microsoft.Powerpoint NSRequiresAquaSystemAppearance -bool yes |
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 ThemosisValetDriver extends BasicValetDriver | |
{ | |
/** | |
* Determine if the driver serves the request. | |
* | |
* @param string $sitePath | |
* @param string $siteName | |
* @param string $uri |
OlderNewer