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();
        });
    }
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();
        });
    }
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 ( ) ; } ) ; }
Deduce relational arttributes.

@return void
Deduce relational arttributes .