public function files()
    {
        return $this->morphToMany(
            config('media.model', \Routegroup\Media\File::class),
            'mediables',
            null,
            null,
            'media_id'
        )
            ->withPivot('type')
            ->whereNotNull('mediables.type')
            ->withTimestamps();
    }
public function files()
    {
        return $this->morphToMany(
            config('media.model', \Routegroup\Media\File::class),
            'mediables',
            null,
            null,
            'media_id'
        )
            ->withPivot('type')
            ->whereNotNull('mediables.type')
            ->withTimestamps();
    }
public function files ( ) { return $ this -> morphToMany ( config ( 'media.model' , \ Routegroup \ Media \ File :: class ) , 'mediables' , null , null , 'media_id' ) -> withPivot ( 'type' ) -> whereNotNull ( 'mediables.type' ) -> withTimestamps ( ) ; }
Has many files.

@return \Illuminate\Database\Eloquent\Relations\BelongsToMany
Has many files .