Initial pass at Laravel 7 support #673

This commit is contained in:
Nabeel Shahzad
2020-05-15 18:20:16 -04:00
parent 885e1d599e
commit 6078163d75
27 changed files with 1659 additions and 1281 deletions

View File

@@ -93,12 +93,12 @@ abstract class Command extends \Illuminate\Console\Command
*/
public function runCommand($cmd, $return = false, $verbose = true): string
{
if (\is_array($cmd)) {
$cmd = implode(' ', $cmd);
if (!\is_array($cmd)) {
$cmd = explode(' ', $cmd);
}
if ($verbose) {
$this->info('Running "'.$cmd.'"');
$this->info('Running "'.implode(' ', $cmd).'"');
}
$val = '';

View File

@@ -2,10 +2,12 @@
namespace App\Contracts;
use Illuminate\Http\Resources\Json\JsonResource;
/**
* Base class for a resource/response
*/
class Resource extends \Illuminate\Http\Resources\Json\Resource
class Resource extends JsonResource
{
/**
* Iterate through the list of $fields and check if they're a "Unit"