Amranidev\ScaffoldInterface\Datasystem\Datasystem::getAttributes PHP Method

getAttributes() private method

Deduce relational arttributes.
private getAttributes ( ) : void
return void
    private function getAttributes()
    {
        collect($this->foreignKeys)->each(function ($key, $value) {
            $Schema = collect(Schema::getColumnListing($key));
            $Schema = $Schema->reject(function ($value, $key) {
                return str_contains($value, 'id');
            });
            $this->relationAttributes[$key] = $Schema->toArray();
        });
    }