public function handle()
{
$permissions_array = ArtisanExt::checkPermissions();
$count = 0;
foreach ($permissions_array as $item => $value) {
if ($value[key($value)] == true) {
$count++;
$this->info('The ' . key($value) . ' directory is writable.');
} else {
$this->error('The ' . key($value) . ' directory is not writable.');
}
}
if ($count == count($permissions_array)) {
return $this->info('All permissions are set correctly.');
}
return $this->error('Some of your permissions are not set correctly.
Check the laravel documentation for the correct ' . 'permissions.');
}